I was using an ASP.NET 4.0 Framework application on windows 2003 server and it was working fine. Then, I just moved my application code to windows 2008 r2 server where i started getting issues.
There is a logic in the application to retrieve data from DB2 tables and copy that into xml file. There, i am getting an exception;
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Once you install the IIS Diagnostic Tool you need to run the Debug Diagnostic Tool to setup IIS (worker processes) to capture crash logs when these exceptions occur.
This is quite a complex topic, however Microsoft does provide some great resources on the IIS website.
I checked in the event-viewer. I am getting the below exception at the point when the routine to copy DB2 table data to xml file is called.
Exception information:
Exception type: DefinedException
Exception message: Error in the application.
System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)
The exception is not getting logged in the log file. I am using "log4net.dll" for writing to the log file. The above exception i get even when i enable 32-bit application as true in IIS.
smehta
0 Points
6 Posts
ASP.NET 4.0 application code breaking in between after moving to windows 2008 r2 server
May 02, 2012 10:30 PM|LINK
Hi,
I was using an ASP.NET 4.0 Framework application on windows 2003 server and it was working fine. Then, I just moved my application code to windows 2008 r2 server where i started getting issues.
There is a logic in the application to retrieve data from DB2 tables and copy that into xml file. There, i am getting an exception;
Source Error:
Stack Trace:
wikkard
Member
204 Points
38 Posts
Re: ASP.NET 4.0 application code breaking in between after moving to windows 2008 r2 server
May 03, 2012 03:51 AM|LINK
This is a strange one. I suggest first place you investigate is the event log.
After that I would suggest that you install the IIS Diagnostics tools to try to get some details on the error.
See http://www.microsoft.com/en-us/download/details.aspx?id=11574 for download links.
Once you install the IIS Diagnostic Tool you need to run the Debug Diagnostic Tool to setup IIS (worker processes) to capture crash logs when these exceptions occur.
This is quite a complex topic, however Microsoft does provide some great resources on the IIS website.
See http://support.microsoft.com/kb/919789 for discussion on how to use the utility.
Hope this helps.
http://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&sqi=2&ved=0CC8QFjAB&url=http%3A%2F%2Fsupport.microsoft.com%2Fkb%2F919789&ei=YwCiT8nbIMSSiQeup9GRCQ&usg=AFQjCNF3ZWnLg5K2lgvUJcM0opH4AF10_w
www.icle.com.au
www.wikkard.net
smehta
0 Points
6 Posts
Re: ASP.NET 4.0 application code breaking in between after moving to windows 2008 r2 server
May 03, 2012 08:24 PM|LINK
Hi,
I checked in the event-viewer. I am getting the below exception at the point when the routine to copy DB2 table data to xml file is called.
Exception information:
Exception type: DefinedException
Exception message: Error in the application.
System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The exception is not getting logged in the log file. I am using "log4net.dll" for writing to the log file. The above exception i get even when i enable 32-bit application as true in IIS.
The same code works fine in Windows 2003 server.
wikkard
Member
204 Points
38 Posts
Re: ASP.NET 4.0 application code breaking in between after moving to windows 2008 r2 server
May 06, 2012 11:30 PM|LINK
I have already provided you the answer above, you need to follow the steps I described and provided links for.
Once you install the iis diagnostics tools you need to configure the debug diagnostics tools to capture crash dumps from IIS.
This will tell you what page caused the crash and will capture stack dump at this time.
www.icle.com.au
www.wikkard.net