Click here to Skip to main content
15,867,997 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

we had an web api 2 service deployed on production server, every thing was working fine and one day we have started getting 500 error from one of the sevice

We looked into the error codes its showing un handel null exception from one method by some lamda expression

Steps that we did to reproduce the issue-

Step 1.

We pointed out the dev code to production server and tried to reproduce the issue - but it didn't helped the code works fine.

Step 2.

We haven taken all the dll's from production deployment site to test environment with database - the code works fine over here too . Not able to re produce issue.

Step 3.

We redeployed the same dll to production site ( which we have copied earlier from production only)...

And code started working, we are unable to check what was the root cause of the issue. as we were not able to reproduce it, but then all of sudden why redeployment of same dll has resolved the issue.

any guesses ???
Posted

1 solution

Do you have a StackTrace or any other details regarding this error?

A 500 error is fairly generic server-side error that could indicate a variety of things (compilation issues, exceptions etc). You might consider disabling custom errors within your web.config temporarily so that you can troubleshoot this issue. Additionally, you might try using the Developer Tools (F12) within your browser and monitoring the Network traffic (this will allow you to see the Request / Response of your specific calls and look into them a bit deeper to check for errors).

Fiddler is also an excellent tool for troubleshooting issues like these.
 
Share this answer
 
v2
Comments
HemantShrivastava 13-Nov-14 2:34am    
Thanks deepu, we tried to reproduce the issue but we couldn't; and we checked the issue with fiddler to ... but that didn't helped.

the problem is we were not able to figure out the root cause of the issue as code was working absolutely fine ,

and we are more concerned now on why the redeployment of same dll resolved the issue ?

Is this kind of deployment problems are normal in WebApi ?
Deepu S Nair 13-Nov-14 2:50am    
HI Hemant,
You may need to look at your server log to find out the actual error message. This error message can mean anything, ranging from incorrect virtual directory permission, wrong path, components are not installed properly, anything.
HemantShrivastava 13-Nov-14 4:02am    
Thanks deepu that make scenes
Deepu S Nair 13-Nov-14 8:02am    
Please mark as answer if it helps you

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

  Print Answers RSS


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