PC Review


Reply
Thread Tools Rate Thread

Using System.Transactions with Oracle

 
 
=?Utf-8?B?bXQ=?=
Guest
Posts: n/a
 
      4th Apr 2006
Hi

I trying to use System.Transactions with Oracle database. I'm getting the
"AccessViolationException" exception. I'm using
..Net Framework 2.0 and ASP.Net
Enterprise Library 2.0
Oracle 9.2.0.7
Windows XP Professional

I installed the complete ODAC before trying this. The following is the code
sample:

using (TransactionScope ts = new TransactionScope())
{
Database db1 = DatabaseFactory.CreateDatabase();
DbCommand dbc1 = db1.GetStoredProcCommand("Proc1");
db1.ExecuteNonQuery(dbc1);

Database db2 = DatabaseFactory.CreateDatabase();
DbCommand dbc2 = db2.GetStoredProcCommand("Proc1");
db2.ExecuteNonQuery(dbc2);

ts.Complete()

}

Am I missing anything here? Any help is appreciated.
 
Reply With Quote
 
 
 
 
Kevin Yu [MSFT]
Guest
Posts: n/a
 
      5th Apr 2006
Hi,

Based on my research, this might not be the trasaction problem. Could you
try to run the code again without using the trasaction? Does the
AccessViolationException throw again?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

 
Reply With Quote
 
=?Utf-8?B?bXQ=?=
Guest
Posts: n/a
 
      5th Apr 2006
You are correct. There is no transaction problem. I'm using the self signed
SSL on my web site. It looks like it caused the problems. I could not view
the pages with "https". I restarted IIS and verified that the SSL works.
After this I didn't get any "accessviolation" exceptions.

Thank you

"Kevin Yu [MSFT]" wrote:

> Hi,
>
> Based on my research, this might not be the trasaction problem. Could you
> try to run the code again without using the trasaction? Does the
> AccessViolationException throw again?
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>
>

 
Reply With Quote
 
Kevin Yu [MSFT]
Guest
Posts: n/a
 
      6th Apr 2006
Hi,

It was nice to hear that you have had the problem resolved. Thanks for
sharing your experience with all the people here. If you have any
questions, please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using oracle transactions in vb.net Diego F. Microsoft VB .NET 2 22nd May 2007 04:18 PM
Supporting Transactions A La System.Transactions in a custom system aldousd666 Microsoft ADO .NET 2 9th May 2007 02:49 PM
Oracle, Dataset Designer, and Transactions =?Utf-8?B?bWFsdG9iZWxsaQ==?= Microsoft Dot NET 2 8th Sep 2006 10:35 AM
MTS transactions problems against Oracle 9iR2 with vb.Net Rick Microsoft Dot NET 1 30th Oct 2003 02:45 PM
Oracle distributed transactions in vb6/vb.net mixed environment Klas Mellbourn Microsoft ADO .NET 2 12th Sep 2003 07:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:17 PM.