Solved

How to debug the published web application on remote machine.

Posted on 2013-01-17
3
330 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 21

Accepted Solution

by:
masterpass earned 250 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 250 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

632 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