here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads http://stackoverflow.com/questions/13020103/webapis-messagean-error-has-occurred-on-iis7-not-in-iis-express with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack http://stackoverflow.com/questions/2640526/detailed-500-error-message-asp-iis-7-5 Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up WebApi's {“message”:“an error has occurred”} on IIS7, not in IIS Express up vote 86 down vote favorite 20 I'm working with ASP.NET MVC 4 WebApi and am having a lot of fun with it running it on my local computer on internal server IIS Express. I've configured IIS Express to serve remote machines too, and so other's in my company are using my computer as our webserver. After deciding this was a less-than-optimal solution, we decided to put the WebApi on a remote server after installing .NET 4.5. When I use fiddler and sent a POST to a controller on my local machine it returns the correct response, yet when I change the domain to the webserver running IIS7 the same POST returns a cryptic {"message":"an internal server error error has occurred"} message. Anyone have any idea what could be going on? iis-7 asp.net-mvc-4 asp.net-web-api share|improve this question edited Sep 11 '15 at 15:07 SAM I AM 1,47111827 asked Oct 22 '12 at 21:22 Nate 5,85331120 2 What's the HTTP status code on the error response? If it's 500 it's very likely the web site/application config is invalid for the remote machine with IIS 7. Create a simple HTML file on the remote machine, browse it on the remote machine if possible to make sure it can be viewed and then try to hit it from your machine to see if it is successful or not. –Sixto Saez Oct 22 '12 at 21:34 It is a 500-error. Thanks for the suggestion, but the default index.html page that the WebApi provides works. Also should add that some of the API webservices work and others don't, whereas all of them work on my local machine. –Nate Oct 22 '12 at 23:16 2 You'll need to enable IIS request tracing to get more specifics when you see a 500 error. A 500 error usually occurs before the Web API routing kicks but I guess its possible to trigger it by something your code is doing. Look at the IIS trace logging and see if that offers any clues. –Sixto Saez Oct 23 '12 at 12:10 You might be able to get the server to give you more verbose error information in its response by init
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Detailed 500 error message, ASP + IIS 7.5 up vote 119 down vote favorite 41 IIS 7.5 , 2008rc2, classic asp, 500 error msg: The page cannot be displayed because an internal server error has occurred. I need to know how to configure IIS to get a more detailed error. I've tried setting to true all of debugging options in the ASP configuration. But that didn't work. Can anyone help me? asp-classic error-handling iis-7.5 share|improve this question edited May 7 '12 at 14:32 Mr Lister 24.8k85381 asked Apr 14 '10 at 19:49 egidiocs 8453916 I am using different way to log error in text file: stackoverflow.com/questions/20475502/… Main difference -- error informatin will be stored in text file –Zam Oct 5 '15 at 14:14 add a comment| 9 Answers 9 active oldest votes up vote 157 down vote accepted I have come to the same problem and fixed the same way as Alex K. So if "Send Errors To Browser" is not working set also this: Error Pages -> 500 -> Edit Feature Settings -> "Detailed Errors" Also note that if the content of the error page sent back is quite short and you're using IE, IE will happily ignore the useful content sent back by the server and show you its own generic error page instead. You can turn this off in IE's options, or use a different browser. share|improve this answer edited Jan 21 '14 at 15:03 answered May 4 '10 at 13:43 Vaclav Elias 2,48621122 8 Error Pages -> 500 -> Edit Feature Settings -> "Detailed Error" Thanks!!!!! –Pablo Martinez May 11 '12 at 12:55 6 If it's still not working, disable friendly http error messages –Tim Partridge Feb 22 '13 at 18:53 If "Error Pages" is missing from your panel, ensure the feature is enabled: Turn Windows features on or off => WWW Services, Common HTTP Features, [x] HTTP Errors –fiat Feb 7 '14 at 3:53 @fiat To enable "Error Pages", I had to go: Turn Windows features on or off > Internet Information Services > World Wide Web Services > Common HTTP Features > [✓] HTTP Errors. –Jess Telford Nov 10 '15 at 23:09 Note: "Error Pages" and ".NET Error Pages" are different. You specifically want "Error