Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 06, 2012 11:30 PM by wikkard
May 02, 2012 10:30 PM|LINK
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;
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.
[DefinedException: Error in the application.]
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.
May 03, 2012 08:24 PM|LINK
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 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
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.
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.