none
WCF and Vista and localhost? RRS feed

  • Question

  • Greetings,

    I am using the simple service AutolotWcfService which is from a Troelsen book.
    I have a simple client in WPF that connects to the service just fine, and do not have any issues on XP or my Vista Machine.

    But when I type in the following in the browser http://localhost:8075/AutolotWcfService it shows up fine on my Windows XP development
    machine, however when I take the same code, and compile it on my Vista development machine it just display a blank page, and doesn't
    open up and show the xml that it did on the XP machine.  It is just a blank page.

    My sample WCF code works fine on the Vista Box with my sample WPF application, but the localhost in internet explorer doesn't show the service.
    Is there something in vista that disables the localhost from working?  I am going to have to be able to run this on both boxes with the
    possibility of working with a java app in the future, and I need to make sure that my WCF will work on both boxes, and I want to be
    able to verify that the ws* compliance is working.

    It is probably some setting in Vista that I need to disable, but I am not sure what it could be because I have tried multiple things below, and
    searched on the internet for the solutions.  The good news is that this code works on XP, but doesn't seem to migrate to Vista that well.

    Here are the things I attempted:
    1. Disabled Norton's Antivirus.
    2. Disabled Windows Firewall
    3. Verified that in my code had the "httpGetEnabled="true"" tag.
    4. Installed IIS 7, but isn't necessary (because I am not using IIS on the XP box).
        a. I will not be using IIS, but thought it was the problem.
        b. IIS is not installed on my XP machine, and system works fine.
    5. I am an administrator with full rights to my system.

    Development Environment on Vista Machine:
    1. Service Pack 2
    2. Visual studio 2008 9.0.3072.1
    3. Frame Work 3.5 sp1

    Thanks for any help or suggestions in advance!
    Thursday, November 5, 2009 6:51 PM

All replies

  • Hi ,

    In this situation please run this self-Host WCF service sample to see whether you can run it successfully.
    http://msdn.microsoft.com/en-us/library/aa738489.aspx

    You can give us more information about how you host your service in Vista to let us discuss it further with you.

    Best regards,
    Riquel
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, November 10, 2009 8:03 AM
    Moderator
  • Hi, your problem may be caused by the 'hosts' file.(C:\Windows\System32\drivers\etc\hosts)
    Please try to modify '::1    localhost' to '127.0.0.1      localhost'.
    • Edited by Quark0927 Friday, January 29, 2010 12:26 AM modify
    Friday, January 29, 2010 12:25 AM