WCF deployment problem: the content of the HTTP Error 404.17-not found request seems to be a script, so it cannot be handled by a static file handler.

Source: Internet
Author: User
WCF deployment problem: the content of the HTTP Error 404.17-not found request seems to be a script, so it cannot be handled by a static file handler.

The authors below used. Net framework4.0 beta and vs.net 2010 beta2 at the time. When I encountered this problem, I used the official version. The problem is the same, and the solution is the same.

 

 

 

After the. net3.5 WCF Service is released in iis7, the following error occurs when you access the. SVC file in IE:

HTTP Error 404.17-not found the request content seems to be a script, so it cannot be processed by a static file handler.

 

Later, it was found in

*. The SVC file has been. ASP net_isapi.dll, the handler of net framework4.0, takes over. net framework4.0 beta and vs.net 2010 beta2. The original 3.5 was discarded. development is not affected, but deployment is affected.

 

Note: According to the observation,. net3.0/3.5 does not contain the handler aspnet_isapi.dll. Therefore, when you specify a website framework in IIS, you cannot see. net3.0/3.5.

 

It cannot be processed by the. net2.0 handler aspnet_isapi.dll.

Finally, let's just get a base salary and re-register the. NET 3.5 WCF.

Result: The problem is solved! <Handler ing>. SVC is also taken over by. NET 2.0 again

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.