Click here to Skip to main content
15,906,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,
I am receiving an error in my web application.I'm describing the scenario --
There is a link button in a gridview in the page. Whenever I click the button data should be fetched from database and bind to another gridview. But whenever I click the button nothing happens and I get this error --
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Problem is I get this error only in production server. I've hosted the same code in my local IIS and also debugged it in VS2008 development server.The code runs fine without an error.
I've tried increasing the AsyncPostBackTimeout in my MasterPage scriptmanager and I've also set
ValidateRequest="false" of that page. But still the problem persists.

Please suggest how to solve this problem.
Posted
Updated 17-Apr-13 21:54pm
v2

1 solution

Hi,

There is no particular solution that will avoid this problem permanently, but temporarily we can handle this error, but exact cause for the error you will have to find, because, this error may cause due to many many reasons, in short, if anything went wrong in processing the request, this error will occur.

refer below links.

The status code returned from the server was: 500[^]
The status code returned from the server was: 500[^]
ASP.NET, The status code returned from the server was: 500[^]

hope it helps.
 
Share this answer
 
Comments
Molay Saha 19-Apr-13 4:03am    
Thank you for your solution. But could you give any suggestion about why this error comes only in production server. I've hosted the same code in my workstation IIS and it's working fine.I also don't see any error while debugging.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900