tags:

views:

91

answers:

5

Hi

In my Project (ASP.NET,VB.NET ),some times Server Error is showing. When this error is shown ,Users cannot submit their Applications,so that they have to re-type full details and submit again.How can I escape from these Server Errors. I think the reason may be Memmory issues.Because if the user try to submit again(after Sign Out->Sign In ) then they can submit.Daily twicw or thrice Error is happening .If so how can i solve it.

A: 

Try debugging the error? Server Error can be caused by various reasons.

Abhishek
Can you point out Few Resons
KSCD
+1  A: 

I think that you'll need to provide a bit more info to get meaningful solutions.

  • Do you have server logs?
  • Can you debug through the app as the error occurs?
  • Does the error occur at a certain time of day, or after a certain regular action?
  • Does your app attempt to write to a file that may not be accessible?
  • is it possible that you are experiencing memory issues?

the list could go on, best to do some more investigation and if a more specific issue comes to light edit your question with the extra detail.

AFTER EDIT:

From the extra detail you've provided I wouldn't jump to memory as an issue, in signing out and back in the user is refreshing their session so everything is reset. If you are not seeing anything in your logs you'll need to look at your exception/error handling.

You just haven't provided enough info yet for us to work out the root issue, let alone suggest a solution. That's what you're seeing from all the answers here thus far. Find the event log info and there should be something there to help you, or at least something more to post here.

MadMurf
+1  A: 

The word "Server" in the phrase "Server Error" refers to your ASP.NET code. You are the server!

If you are running .NET 2.0 or later, you can look into the Application event log (use the Event Viewer applet) for warnings from "ASP.NET". They will include details of what went wrong.

You need to debug your code to find out what's causing this, but the event logs will give you a starting point.

John Saunders
+1  A: 

"Server Error" is just a generic message that indicates the the server code (your code) threw an exception that wasn't handled. It shows the user "server error" instead of a specific message so that no implementation details are exposed to outside users. In other words, without debugging or looking at a log file or something, all you can tell from "Server Error" is that an Exception of any type was thrown.

Sorry, but the information you provided is not helpful in determining the issue.

rally25rs
A: 
  • Check for potential infinite loops.
  • Check for code in the constructor that might fail (especially for web services).

I think I've had cases like this which led to 'Server Error'. I'm assuming you mean the big red 'Server Error' message?

Simon_Weaver