« Previous Next »

Thread: IIS7.5 400 error when serving WCF

Last post 10-07-2009 10:11 AM by jeff@zina.com. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 10-07-2009, 2:29 AM

    • BrianA
    • Not Ranked
    • Joined on 10-07-2009, 6:23 AM
    • Posts 1

    IIS7.5 400 error when serving WCF

    I have some wcf sites that work perfectly well on 2K8 running IIS7 but fail on 2K8R2 ith IIS7.5.  I traced the issue down to the change where the host file now comments out localhost by default.  My sites in question were bound to localhost.  Trying to access the site gave a 400 error.  When I finally uncommented the #127.0.0.1 localhost from the host file the site worked correctly again.

    It feels like something in the magic IIS->WCF binding that takes place still needs the phyical host file in place to correctly service "localhost" bound services.

  • 10-07-2009, 10:11 AM In reply to

    Re: IIS7.5 400 error when serving WCF

    First, nothing should ever be run as localhost, especially in production.  More importantly, this has nothing to do with IIS.  If your system cannot resolve the name "localhost" to an IP address that IIS will answer on, then using "localhpost" will never work for you.  It's a basic name resolution issue.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (2 items)
Microsoft Communities