Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ASP.NET CreateUserWizard, and Transaction scope issue on r..

 
   Database Help (Home) -> DTS RSS
Next:  access for others  
Author Message
Lance Wynn

External


Since: May 17, 2008
Posts: 7



(Msg. 1) Posted: Sat Dec 13, 2008 9:11 am
Post subject: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer
Archived from groups: microsoft>public>dotnet>general, others (more info?)

Hi all, I wasn't sure if this is better as a dotnet question, or a dts
question..

I have a user signup page that uses the createuserwizard. I need to add
some additional information after the ASP user is created, so I thought I'd
use Transaction scope to encapsulate the creation process so if anything
fails, it will rollback everything.

I create a private transactionscope in the page code behind, and instantiate
it in the CreateUserWizard1_CreatingUser event. In the
CreateUserWizard1_CreatedUser event, I am inserting a record into a separate
table. Then I complete the transaction, and dispose of the
transactionscope.

If an error happens I dispose of the transactionscope without completing .
This works fine when running SQLServer 2005 on my local dev box, but when I
put it on a webserver pointing at a remote DB, it just hangs until the
asp.net page gets a generic timeout error.

Here's what I have come up with so far in my debug efforts:

1. Looking at the transaction in the component services, I can see the
transaction gets created on the dbserver
2. Looking at the sql activity monitor, I can see the the spid that is
executing the create user stored proc, it shows the last command executed
as: testdb.dbo.aspnet_Membership_CreateUser;1
3. There does not appear to be any blocking at all going on, and since this
is test only, there is only the one transaction on the server.
4. The SQL server logs show no indication of an error.

If I remove the calls to transactionscope, then it works fine (albeit
without the transaction of course).

I am a bit stumped as to how to debug this issue since there are really no
meaningful errors.

If anyone can help me out on this, I would be very grateful.

 >> Stay informed about: ASP.NET CreateUserWizard, and Transaction scope issue on r.. 
Back to top
Login to vote
Lance Wynn

External


Since: May 17, 2008
Posts: 7



(Msg. 2) Posted: Thu Dec 18, 2008 8:57 pm
Post subject: Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Problem solved, as always; it was something stupid on my end. Apparently,
the Windows Firewall was running on the SQL Server, and blocking the DTC
communications causing the timeout. I opened the appropriate port, and it
started working fine.

Lance


"Lance Wynn" wrote in message
news:eyZ6#1TXJHA.4852@TK2MSFTNGP04.phx.gbl...
> Hi all, I wasn't sure if this is better as a dotnet question, or a dts
> question..
>
> I have a user signup page that uses the createuserwizard. I need to add
> some additional information after the ASP user is created, so I thought
> I'd use Transaction scope to encapsulate the creation process so if
> anything fails, it will rollback everything.
>
> I create a private transactionscope in the page code behind, and
> instantiate it in the CreateUserWizard1_CreatingUser event. In the
> CreateUserWizard1_CreatedUser event, I am inserting a record into a
> separate table. Then I complete the transaction, and dispose of the
> transactionscope.
>
> If an error happens I dispose of the transactionscope without completing .
> This works fine when running SQLServer 2005 on my local dev box, but when
> I put it on a webserver pointing at a remote DB, it just hangs until the
> asp.net page gets a generic timeout error.
>
> Here's what I have come up with so far in my debug efforts:
>
> 1. Looking at the transaction in the component services, I can see the
> transaction gets created on the dbserver
> 2. Looking at the sql activity monitor, I can see the the spid that is
> executing the create user stored proc, it shows the last command executed
> as: testdb.dbo.aspnet_Membership_CreateUser;1
> 3. There does not appear to be any blocking at all going on, and since
> this is test only, there is only the one transaction on the server.
> 4. The SQL server logs show no indication of an error.
>
> If I remove the calls to transactionscope, then it works fine (albeit
> without the transaction of course).
>
> I am a bit stumped as to how to debug this issue since there are really no
> meaningful errors.
>
> If anyone can help me out on this, I would be very grateful.
>
>
>
>

 >> Stay informed about: ASP.NET CreateUserWizard, and Transaction scope issue on r.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Informix Linked Server Distributed Transaction - I can execute a stored procedure on the SQL instance that executes a few commands against an informix database. However, when I have BizTalk execute the same stored procedure from another machine I get this error: Event Type: Warning Event Source:..

MS SQL software issue -

How to solve the SSIS deployment issue :( - Hi experts, I have no idea why development of SSIS is easy but is hard when comes to deployment with the wizard and copy the installation "deployment" folder on the destination server.. The error message is "The AcquireConnection metho...

Issue executing a package using the dtexec utility - Hello, I have created a package that loops through multiple folders and inserts (the file path and name) of any new files within these folders into a tracking table. When I run this package manually through BIDS it works correctly. This package..

Issue with opening DTS packages on a VISTA machine - have SQL Server 2005 installed on a Vista Home Premium edition machine. I want to open my DTS packages on this machine in order to have a look at them. I have installed the SQL Server 2000 DTS Designer components on this machine. I have also..
   Database Help (Home) -> DTS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]