PDA

View Full Version : need help in asp.net


paragchaure
07-09-2009, 10:14 AM
Hi all,

I developed a site it works well at localhost (IIS) but the problem is that when I upload it to the server it works for some time, for some entries & gives the error and after this error, it appears to all pages

the errors are

1. "Unspecified error"

2. error in web.config (http://www.dreamincode.net/forums/index.php?act=Attach&type=post&id=12699) though I fix it


I do not understand why it appears / displaying the error using the MS Access as database

Please help its very urgent

Brandoe85
07-09-2009, 04:24 PM
You'll need to turn error messages on or figure out a way to reproduce it on your test environment. There's no way to tell when the error messages are hidden.

HostingASPNet
07-13-2009, 06:33 AM
Hello,

You should set customErrors mode="Off", so you could see what exactly is the problem.

Regards

scottk
07-16-2009, 01:14 AM
You can also trap the error messages yourself and write them to a custom log file. This will let you have a more appealing error page while still being able to get at the diagnostics information.

In your Global.asax file:

protected void Application_Error(object sender, EventArgs e)
{
#if (!DEBUG)
Exception lastError = Server.GetLastError();
Exception actualError;
if (lastError != null)
{
actualError = lastError.GetBaseException();
try
{
Log.Exception(actualError, Request);
}
catch { }
}
Response.Redirect(Pages.GetURL(PageNames.ErrorPage));
#endif
}