Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Both localhost and both resolve to the same page in my web browser (they both redirect to localhost/xampp/ and respectively).

But when I try not to access my web service, localhost:49973/BaseballWebService/Service.asmx/ resolves the web service and cannot find the webservice.

I have to access my web service using my computers ip instead of localhost because I have to access the we service remotely over a local network. Anyone have an idea what could be going wrong?

share|improve this question
Could XAMPP be interfering with my web service port? The web service is launched from Visual Studio and is C# .NET? – Bryan Oct 24 '09 at 21:29
up vote 2 down vote accepted

Make sure that you aren't using 2 sites instead of 1. It's possible that you have 2 different sites that both have a /xampp folder but don't both have the BaseballWebService folder.

If a single site has both localhost (or and bindings then it must be something causing a redirect in the BaseballWebService folder. A good test is to create a test.txt or test.htm page and place it in your BaseballWebService folder to confirm that IIS is serving up that file correctly without redirecting.

I'm assuming that you're using IIS since you've tagged this as IIS.

share|improve this answer
Thanks a lot Scott! I am not sure I am using IIS. I think it is the ASP.NET development server 9.0. I uninstalled XAMPP and now when I go to localhost/ I get the message: Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. But I can view my web service at localhost:49973/BaseballWebService/Service.asmx/… – Bryan Oct 24 '09 at 22:33
I found my answer here:… . On development server localhost access only, no ip access. So I need to fire up IIS. – Bryan Oct 24 '09 at 22:37
Good find. Glad you were able to track it down. As a side, you can set IIS sites for debugging in Visual Studio/Visual Web Developer. Edit the properties of the project to tie to the IIS site. – Scott Forsyth - MVP Oct 25 '09 at 4:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.