Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have just created a sample webservice in my visualstudio.net in visual basic project.
It is having a web method Helloworld.

when I am pressing F5, an error is comming( i unchecked "show user friendly error" in IE advanced settings.
Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.


this is the url coming in IE <"http://localhost/WebService1/Service1.asmx">

Mine is Windows XP professional ,version 2002, SP3 , IIS V5.1

I am not getting how to solve this one.Kinldy help on this.

Thanks.
Posted
Updated 3-Mar-13 19:09pm
v2
Comments
nika2008 1-Mar-13 5:28am    
i am not sure try first build solution and rebuild solution??

Have a look at the following blog: HTTP 500 – Internal server error[^]
 
Share this answer
 
Comments
Naveen_143 4-Mar-13 1:01am    
Thanks for ur response. But I dint find any solution to my problem. Any links specific to WebServices Plz...
Sandeep Mewara 4-Mar-13 1:13am    
- You sure you set correct .NET framework version in IIS?
- You sure that web service is working perfectly fine in your dev environment in Visual Studio?
Naveen_143 4-Mar-13 1:31am    
- >.net framework version is set correctly in IIS .
- > in visual studio itself ,still developing, when I created a sample web servie and pressed F5, this error is coming. I dint deploy it any where.
Sandeep Mewara 4-Mar-13 2:04am    
If you see 500 internal error in VS, you should be able to debug and see it. Using VS internal webserver? What version of VS & .NET?
Sounds like you are doing something wrong at basic level and should be easy to troubleshoot for you and resolve.
Naveen_143 5-Mar-13 2:23am    
Hi, Thanks ..
It was an error from setting in IIS and .net version.
I have corrected it now.
 
Share this answer
 
Comments
Naveen_143 5-Mar-13 2:23am    
Thanks for your reply..I have solved it.
The error was coming because of some services in IIS. I have changed settings in IIS and again registered the .Net version with aspnet_iisreg -i command.

Its working fine now..
 
Share this answer
 
Comments
Sandeep Mewara 5-Mar-13 2:44am    
What exactly fixed it? What was the setting in IIS? Please share.
Naveen_143 5-Mar-13 7:30am    
I checked the event logs and error was regarding W3SVC service and I checked in net about that and did some changes. I was in a hurry so I dint make a note of what are all changes I did. Sorry for that..
Naveen_143 5-Mar-13 7:31am    
but at the end I found that .net version is not registerd so I used that commad to register asp.net version

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