Girish Nair


I am getting this error when trying to open oracle connection from visual studio 2005.

I am pasting the stack trace here.

at System.Data.Common.UnsafeNativeMethods.OraMTSJoinTxn(OciEnlistContext pCtxt, IDtcTransaction pTrans)\r\n at System.Data.OracleClient.TracedNativeMethods.OraMTSJoinTxn(OciEnlistContext pCtxt, IDtcTransaction pTrans)\r\n at System.Data.OracleClient.OciEnlistContext.Join(OracleInternalConnection internalConnection, Transaction indigoTransaction)\r\n at System.Data.OracleClient.OracleInternalConnection.Enlist(String userName, String password, String serverName, Transaction transaction, Boolean manualEnlistment)\r\n at System.Data.OracleClient.OracleInternalConnection.Activate(Transaction transaction)\r\n at System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction)\r\n at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)\r\n at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)\r\n at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)\r\n at System.Data.OracleClient.OracleConnection.Open()\r\n at MDM.Data.Dataaccess.ExecuteNonQuery(String query, CommandType commandtype, ConnectionState connectionstate)

It throws the error when using oracle MTS.

I am using oracle 9i client .

Any help will be highly appreciated.

Thanks in advance




Re: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

David R. Williamson MSFT


Hi,

We've tested with Orcacle to make sure Data-Driven testing works with Unit Tests. It's not clear to me that you are doing Data-Driven or just making database calls from a unit test.

Can you elaborate on the scenario more Detailed repro steps would be great.

Thanks,

David Williamson







Re: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

David R. Williamson MSFT

Hi,

After re-reviewing your post, I'm not sure your issue has anything to do with VS Team System Test. If you can provide more information about your scenario I can try to reroute you to a better forum.

Thanks,

David







Re: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

pmcevasco

I think this could help you http://support.microsoft.com/kb/926421

It's a bug when you have Office 2007 and SSAS 2005 or RS 2005 in the same computer.

Bye !





Re: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

Tan Check Leam

Hi,

I am having the same error message when i try to call a DLL. I am using an interop DLL for Acrobat and here's the code written.

---------------------------------------------------------------------------------------------------------------

AcroExchApp = CreateObject("AcroExch.App")
AcroExchAVDoc = CreateObject("AcroExch.AVDoc")

AcroExchAVDoc.Open(strFilePath,"")

-------------------------------------------------------------------------------------

The error happened when the object try to call the Open method. This program is running fine in my development machine but the error occured when I try to run in my UAT machine.

The differences for both machines are the UAT machine has been loaded with the local policies and joined the Domain whereas the development machine is a standalone win2k3 server.

Could it be due to the local policies which prevent the objects calling