472,331 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

transactions in asp.net (page directive)

psb
about a year ago, I was head deep in vb6/com+ hell. THEN, I started doing
asp.net development and went the opposite direction by only putting
transactions in the stored procs. Unfortunately, I can't isolate everything
in one db call. I started testing the Transaction=txType attribute in the
Page directive.

<%@ Page Language="vb" Transaction="Required"....%>

This page is basically a couple of datagrids (parent/child) and viewstate is
enabled for all elements on the page. I am having some strange problems.
When it errors out, I do a

Throw New Exception(strErrorMsg).

This causes the page to go to the ErrorPage.aspx defined in the web.config.
When I click the back button or type the URL and refresh the original aspx
page, I get another error, "Cannot execute transacted code" I can't execute
the page at all from anywhere. It is like this until IISRESET. I have read
in a few places that calling the SetComplete()/SetAbort() is not needed, but
something is hanging IIS out to dry.

has anyone had any problems similar to this??
~PSB
Nov 17 '05 #1
0 933

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

Similar topics

3
by: Iain Mcleod | last post by:
I wish to do a series of inserts on a sql server database in the context of a transaction. The inserts will be done as a series of stored procedure...
2
by: rjack | last post by:
I'm using VS 2005 Beta 2. In VS 2003, the Page directive in an aspx page has Language and CodeBehind attributes. You can have the language be...
1
by: Poppy | last post by:
I opened an asp page in VS.net 2002 and then saved it as an aspx page. I was prompted if I wanted to create the class file for the page and...
3
by: Iain Mcleod | last post by:
I wish to do a series of inserts on a sql server database in the context of a transaction. The inserts will be done as a series of stored procedure...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.