Solved

How to debug the published web application on remote machine.

Posted on 2013-01-17
3
324 Views
Last Modified: 2013-01-25
Hi,
.Net 3.5 web application working fine on my local machine. After publishing the application to remote server it is giving the error.The error is Input string not in correct format.

How to find the cause for this error.

i tried to log the error in event log.But nothing is logged in remote server event log related to this application.

Any suggestions please.

Thanks.
0
Comment
Question by:KavyaVS
3 Comments
 
LVL 21

Accepted Solution

by:
masterpass earned 250 total points
Comment Utility
start with logging. Use something like ELMAH or NLOG and then capyure the stacktrace. Once you have the stacktrace you will know which page is producing the error.

A quick way to find would be to add this in Global.asax

protected void Application_Error(object sender, EventArgs e)
{
Exception objExpection = Server.GetLastError();
//logging here
}

Open in new window


Also here is an article about remote debugging if you are interested: http://www.codeproject.com/Articles/38132/Remote-IIS-Debugging-Debug-your-ASP-NET-Applicatio
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 250 total points
Comment Utility
You know which page it is. The error comes up usually when a string is being converted to another type such as date or integer etc. So search through the page for code that does something like that.
0
 

Author Closing Comment

by:KavyaVS
Comment Utility
Thanks.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now