Last post Feb 26, 2009 03:14 PM by g4j
Dec 13, 2006 10:07 AM|kira1|LINK
I have converted my project from .Net 1.1 in VS 2003 to .Net 2.0 in VS 2005 (web application).
WebForm_DoPostBackWithOptions which is missing. I have googled a long time on this and cant find a definitive answer.
Some say it is HTTP Modules that need removed from web.config but I am only using 1 NeatUpload by Brettle Development. I removed it anyway but this makes no difference.
Other advice was that WebResource.axd file was not referenced in the page source but it is.
Another suggestion I found (but with no solution) was it was a problem with
WebUIValidation.js file (but the post did not say what!).
When viewing the source in the browser __doPostBack js function is present (and works on 'delete' and 'cancel' linkbuttons - but my 'edit' and 'add' link buttons call WebForm_DoPostBackWithOptions (which I assuming is
new in 2.0 and called due to the validation) and it is not present in the page source. Do I need to manually update the WebUIValidation.js for my converted project anbd if so how do i do that?
2003 to 2005 convertion
Dec 18, 2006 05:04 AM|kira1|LINK
In case anyone else experiences this problem and finds this post I have now fixed this. Problem was that the request to the server for WebResource.axd (which nows happens in .Net 2.0) actually triggers
Application_PreRequestHandlerExecute from within Global.asax.cs
So, not only does any code in there now get run twice but for some reason my refernce to a session variable != null was throwing a .Net 500 error 'null reference' which was not visible until I used Fiddler to examine the requests to the server. The page
May 22, 2007 01:02 PM|Thelma|LINK
I also could not get session to work with Application_PreRequestHandlerExecute in ASP.NET 2.0.
Finally after alot of searching found this link:
Basically you check to see if the request uses sessions first before looking to access session variables.
Jan 21, 2008 08:11 AM|ghazzaghi|LINK
This Problem occures when you developed your project in .net1.1 and you wnt to publish it on servever with .net2.
In IIS while creating virtual directory, in the properties window of your web,in the ASP.NET Tab: in the field of asp.net version select: 1.1.4 instead of 2
Is it so easy?![;)]
Feb 26, 2009 03:14 PM|g4j|LINK
I was developing a ASP.net 2.0 website (started in Net 2.0) and had the same problem. It seem that the problem was that I had remove (commented) the <form> tag form my master page (I was using <div> as my main container). It seem that ASP.net needs these
tag do what ever they need to do.
I hope this works for you guys too.