Click here to Skip to main content
15,562,015 members
Please Sign up or sign in to vote.
3.00/5 (1 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
Harsha
Posted
Updated 17-Jul-20 3:41am
v2
Comments
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?
Ahmed Raza Apr2022 13-Apr-22 4:44am    
Fgwhsjdjowhdhd
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: http://www.fiddler2.com/fiddler2/

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"[^]
 
Share this answer
 
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.
 
Share this answer
 

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