473,378 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

TransactionScope implicitly or explicitly committed or aborted

I am attempting to use the TransactionScope class to manage my transactions.
I am running into an issue. My web server [WEB1] is in an NT work group. My
SQL Server [SQL1] is in a domain. When my code attempts to execute the
Complete method of the TransactionScope object, I get the following error:

"The transaction has already been implicitly or explicitly committed or
aborted"

I have tried altering the registry entry to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\TurnOf fRpcSecurity = 1 on both
SQL1 and WEB1. I restarted both machines to make sure that changes took
effect.

When I run the code from a web server that is on the same domain as SQL1,
the code executes successfully. It is NOT and option to add WEB1 to a
domain.

Any suggestions?
Nov 22 '05 #1
5 11120
SP
try turning off TurnOffRpcSecurity as per this article

http://support.microsoft.com/kb/Q827805

-sp

"Rick_Kierner" wrote:
I am attempting to use the TransactionScope class to manage my transactions.
I am running into an issue. My web server [WEB1] is in an NT work group. My
SQL Server [SQL1] is in a domain. When my code attempts to execute the
Complete method of the TransactionScope object, I get the following error:

"The transaction has already been implicitly or explicitly committed or
aborted"

I have tried altering the registry entry to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\TurnOf fRpcSecurity = 1 on both
SQL1 and WEB1. I restarted both machines to make sure that changes took
effect.

When I run the code from a web server that is on the same domain as SQL1,
the code executes successfully. It is NOT and option to add WEB1 to a
domain.

Any suggestions?

Nov 22 '05 #2
As I stated in my post, that has been tried. It has come to my attention
that when working with SQL 2000, the transactionscope object automatically
promotes the transaction to a distributed transaction EVERY time. Is this
behavior by design? I thought it was only supposed to promote if it had to
be distributed.

"SP" wrote:
try turning off TurnOffRpcSecurity as per this article

http://support.microsoft.com/kb/Q827805

-sp

"Rick_Kierner" wrote:
I am attempting to use the TransactionScope class to manage my transactions.
I am running into an issue. My web server [WEB1] is in an NT work group. My
SQL Server [SQL1] is in a domain. When my code attempts to execute the
Complete method of the TransactionScope object, I get the following error:

"The transaction has already been implicitly or explicitly committed or
aborted"

I have tried altering the registry entry to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\TurnOf fRpcSecurity = 1 on both
SQL1 and WEB1. I restarted both machines to make sure that changes took
effect.

When I run the code from a web server that is on the same domain as SQL1,
the code executes successfully. It is NOT and option to add WEB1 to a
domain.

Any suggestions?

Nov 22 '05 #3
SP
oops, sorry about that,

we have run into the same problem, and I can't believe that there's no
solution for this. Have you tried the DTCtester.exe from ms what did that
report?

SP

"Rick_Kierner" wrote:
As I stated in my post, that has been tried. It has come to my attention
that when working with SQL 2000, the transactionscope object automatically
promotes the transaction to a distributed transaction EVERY time. Is this
behavior by design? I thought it was only supposed to promote if it had to
be distributed.

"SP" wrote:
try turning off TurnOffRpcSecurity as per this article

http://support.microsoft.com/kb/Q827805

-sp

"Rick_Kierner" wrote:
I am attempting to use the TransactionScope class to manage my transactions.
I am running into an issue. My web server [WEB1] is in an NT work group. My
SQL Server [SQL1] is in a domain. When my code attempts to execute the
Complete method of the TransactionScope object, I get the following error:

"The transaction has already been implicitly or explicitly committed or
aborted"

I have tried altering the registry entry to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\TurnOf fRpcSecurity = 1 on both
SQL1 and WEB1. I restarted both machines to make sure that changes took
effect.

When I run the code from a web server that is on the same domain as SQL1,
the code executes successfully. It is NOT and option to add WEB1 to a
domain.

Any suggestions?

Nov 22 '05 #4
DTC actually won't work. I'm ok with that. The network admins have stated
that they will not open the ports necessary and won't add the DB servers to
the same domain as the web server. I figure that's a battle not worth
fighting.

My concern is that I don't really want to use DTC. It adds another layer of
complexity and performance inhibition. I would like for the TransactionScope
object to work as I had understood it to work (automatic promotion to DTC
only when necessary). Does anyone know if there are any plans for this to
take place?

--
Rick_Kierner
"SP" wrote:
oops, sorry about that,

we have run into the same problem, and I can't believe that there's no
solution for this. Have you tried the DTCtester.exe from ms what did that
report?

SP

"Rick_Kierner" wrote:
As I stated in my post, that has been tried. It has come to my attention
that when working with SQL 2000, the transactionscope object automatically
promotes the transaction to a distributed transaction EVERY time. Is this
behavior by design? I thought it was only supposed to promote if it had to
be distributed.

"SP" wrote:
try turning off TurnOffRpcSecurity as per this article

http://support.microsoft.com/kb/Q827805

-sp

"Rick_Kierner" wrote:

> I am attempting to use the TransactionScope class to manage my transactions.
> I am running into an issue. My web server [WEB1] is in an NT work group. My
> SQL Server [SQL1] is in a domain. When my code attempts to execute the
> Complete method of the TransactionScope object, I get the following error:
>
> "The transaction has already been implicitly or explicitly committed or
> aborted"
>
> I have tried altering the registry entry to
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\TurnOf fRpcSecurity = 1 on both
> SQL1 and WEB1. I restarted both machines to make sure that changes took
> effect.
>
> When I run the code from a web server that is on the same domain as SQL1,
> the code executes successfully. It is NOT and option to add WEB1 to a
> domain.
>
> Any suggestions?

Nov 22 '05 #5
[...]My concern is that I don't really want to use DTC. It adds another layer of complexity and performance inhibition. I would like for the TransactionScope object to work as I had understood it to work (automatic promotion to DTC only when necessary). Does anyone know if there are any plans for this to take place?
I ran into the exact same problem and have the same concern. As far as our company is concerned, using System.Transactions.TransactionScope is a NO GO.

My first intuitive comprehension of this feature, based on marketing texts and articles I've read made it look like one of the nicest addition to ADO.NET 2.0 (even if in fact it is independent from ADO).

After the reality check of a concrete implementation, I am very disapointed by the limits of this feature so far.

Any plans for a fix in the future? To bad our new architecture can't be based on this paradigm.
Feb 14 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rick_Kierner | last post by:
I am attempting to use the TransactionScope class to manage my transactions. I am running into an issue. My web server is in an NT work group. My SQL Server is in a domain. When my code...
22
by: Christoph Boget | last post by:
I am getting an error (a few among many) for the following lines of code: retval.BrokerName = (( curRow == System.DBNull.Value ) ? SqlString.Null : (string)curRow ); retval.BrokerGroupId = ((...
0
by: samiam | last post by:
I know that "a new transaction" can be started from a web method by simply using an attribute " I guess the assumption here is that if the web method returns normally, the transaction is...
6
by: Mukesh | last post by:
Hi, I am new to 2.0 framework. I am trying to use TransactionScope in the following code. I took four lables. Started TransactionScope scope. After setting values to three labels I throw an...
3
by: kikapu | last post by:
Hi to all folks, i am trying to understand the use of System.Transactions in general and TransactionScope particularly. What am i allowed to do in a using statement that wraps a...
4
by: hardieca | last post by:
Hi, I'd really like to use TransactionScope within the Business Layer of my web application. A book I'm reading makes a note that it should not be used in a shared web hosting environment...
0
by: RP | last post by:
I have a two classes, first named "ModCon" has procedures written for connections and the second named "ModRes" contains functions and procedures that can be reused. For my question it is important...
3
by: Aleksey Timonin | last post by:
Hi guys, I tried to use TransactionScope on to defferent TableAdapters like this: using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required)) {...
3
by: Michael Schöller | last post by:
Hello, First of all english is not my natural language so please fogive me some bad mistakes in gramatic and use of some vocables :). I have a great problem here. Well I will not use it...
2
by: GaryDean | last post by:
When I use transactions with sql server I usually do this... using (TransactionScope scope = new TransactionScope) { using (SqlConnection1 = new SqlConnection . . . . . and this all works...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.