Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS7 ASP.NET WebService
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
Harsha
Posted 6-Jun-12 5:36am
Edited 6-Jun-12 5:38am
v2
Comments
db7uk at 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 at 6-Jun-12 10:47am
   
Yeah i checked pool settings everything is same as my DEV PC.
Harsha11421 at 6-Jun-12 10:49am
   
i dont know what is fiddler.. let me search for that one.. i never use feddler
Tim Corey at 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: http://www.fiddler2.com/fiddler2/
db7uk at 7-Jun-12 4:44am
   
Agree with you Tim. Saved my bacon several times!
Stephen Hewison 2 at 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
good
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"[^]
  Permalink  
Rate this: bad
good
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.
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2014
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