After you use the website's basic WCF example to complete the service contract and implement the service, if you start it directly in vs2010, it will be displayed successfully.
However, create a virtual directory in IIS and set the level to application.ProgramAlways prompt when accessing
"HTTP Error 404.2-not found the page you requested cannot be provided due to the" ISAPI and CGI restrictions "list setting on the Web server. "
Depressed ~~~~ I tried a lot of methods .. How did the other Nima users successfully configure it!
-------------
The most depressing thing is that when I think it cannot be solved, I re-read the application pool and set the. net4.0 restriction as "not allowed "... It was clear that all eyes were allowed before, and all four eyes were white and long ~~
-------------
Vomit blood, solution:
IIS-> ISAPI and CGI restrictions-> set. Net 4.0 restrictions to allow
Refresh the page.
-----------------
A violent day
For a simple question, I have spent more than a long time. Please be careful, my God ~~