dbTalk Databases Forums  

ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lance Wynn
 
Posts: n/a

Default ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-13-2008 , 10:11 AM






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.





Reply With Quote
  #2  
Old   
Lance Wynn
 
Posts: n/a

Default Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-18-2008 , 09:57 PM






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" <Lance_Wynn (AT) community (DOT) nospam> wrote

Quote:
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.





Reply With Quote
  #3  
Old   
Lance Wynn
 
Posts: n/a

Default Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-18-2008 , 09:57 PM



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" <Lance_Wynn (AT) community (DOT) nospam> wrote

Quote:
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.





Reply With Quote
  #4  
Old   
Lance Wynn
 
Posts: n/a

Default Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-18-2008 , 09:57 PM



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" <Lance_Wynn (AT) community (DOT) nospam> wrote

Quote:
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.





Reply With Quote
  #5  
Old   
Lance Wynn
 
Posts: n/a

Default Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-18-2008 , 09:57 PM



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" <Lance_Wynn (AT) community (DOT) nospam> wrote

Quote:
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.





Reply With Quote
  #6  
Old   
Lance Wynn
 
Posts: n/a

Default Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-18-2008 , 09:57 PM



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" <Lance_Wynn (AT) community (DOT) nospam> wrote

Quote:
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.





Reply With Quote
  #7  
Old   
Lance Wynn
 
Posts: n/a

Default Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-18-2008 , 09:57 PM



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" <Lance_Wynn (AT) community (DOT) nospam> wrote

Quote:
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.





Reply With Quote
  #8  
Old   
Lance Wynn
 
Posts: n/a

Default Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-18-2008 , 09:57 PM



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" <Lance_Wynn (AT) community (DOT) nospam> wrote

Quote:
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.





Reply With Quote
  #9  
Old   
Lance Wynn
 
Posts: n/a

Default Re: ASP.NET CreateUserWizard, and Transaction scope issue on remote SQLServer - 12-18-2008 , 09:57 PM



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" <Lance_Wynn (AT) community (DOT) nospam> wrote

Quote:
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.





Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.