Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to debug the published web application on remote machine.

Posted on 2013-01-17
3
Medium Priority
?
337 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 1000 total points
ID: 38790418
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 1000 total points
ID: 38792275
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
ID: 38818913
Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

927 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