简体   繁体   中英

IIS 7.5 finds the local web site but can't load it

I am having this strange problem: I have just developed a WCF service (on VS2008) and created a website (ASP.net) to use that service. When I launch the website from VS2008, it works fine and I get the "You have created a service method", but if I try to open that service using IIS then it is not able to load the website at all. I get a message that "website found, waiting for reply", but the browser is not able to load the service at all.

Any help will be greatly appreciated!

There was problem with my IIS 7.5, in that ASP.NET was not registered for IIS. The following article was helpful: http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx

I used aspnet_"regiis -i" command and the websites started loading. Thanks for all the help guys!

A few troubleshooting items

  1. Make sure in inetmgr under Web Services Extension that the required frameworks are unblocked.
  2. Enable tracing to watch the messages
  3. Enable exception details in faults
  4. Make sure you are running the website under correct framework (under website properties)
  5. In web.config, clear and add handler svc-Integrated-4.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM