Click here to Skip to main content
13,096,798 members (83,355 online)
Rate this:
Please Sign up or sign in to vote.
Respected Developers,

In my application i am working with a web service.. after testing for several times in my local system i hosted it in webserver unfortunately i am getting "the page cannot be displayed because an internal server error has occurred" where as it is working fine in my local server..

(Note: It is showing when i am calling one of my web methods and it is showing error as a simple text MSG)

Can anybody pls solve this problem.

Thanks & Regards
Posted 6-Jun-12 4:36am
Updated 6-Jun-12 4:38am
db7uk 6-Jun-12 10:45am
Have you tried fiddler? also are you sure that the hosting of IIS is the same as your DEV PC. Is the application pool correct for the .Net framework version?
Harsha11421 6-Jun-12 10:47am
Yeah i checked pool settings everything is same as my DEV PC.
Harsha11421 6-Jun-12 10:49am
i dont know what is fiddler.. let me search for that one.. i never use feddler
Tim Corey 6-Jun-12 11:14am
Fiddler is a great tool for watching what happens behind the scenes in web traffic. It is actually Fiddler2 now:
db7uk 7-Jun-12 4:44am
Agree with you Tim. Saved my bacon several times!
Stephen Hewison 2 6-Jun-12 17:37pm
If it's IIS hosted I often find the MIME types or http handlers are missing when moving from dev to test servers.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

When a error is 500, that means it's an internal error, meaning internal to the service - the service threw an exception that was not caught.
Look in the Windows event logs on the server to see what went wrong.

Also, try:
- Go to menu Tools/Internet Options in your IE.
- Click on the Advanced tab, uncheck "Show friendly HTTP error messages" option and click Ok.
- Try accessing your web page again. Now you will see much more meaningful error message which will help you to troubleshoot the problem.

Other few possibilities:
There might be an issue in the way you have hosted your service. May be multiple config files?
Further, since you have not shared the type of webservice or what framework application it is, it can also be a cross domain policy issue after hosting on other server.

See details here: Microsoft Support: Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 500.0 – Internal Server Error"[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Agree with Sandeep.
Had the same problem took a look at the Web.config
file which was the one with the problem

It was referencing a database not on my machine.
once i changed accordingly it worked
Thanks Sandeep.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 12 Feb 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100