HTTP Error 404.17 - Not Found

前端 未结 9 532
-上瘾入骨i
-上瘾入骨i 2021-01-30 10:45

IN VS 2008 i can run .svc but on production IIS 7 i can\'t. I get this error. i am using x64 win.

I run

C:\\Windows\\Microsoft.NET\\Framework\\v2.5.0.303         


        
9条回答
  •  借酒劲吻你
    2021-01-30 11:22

    I had receievd a similar error:

    HTTP Error 404.17 - Not Found
    The requested content appears to be script and will not be served by the static file handler.
    

    I tried the same code on several machines. Through some R & D, I finally found that the cause for this can be that WCF mapping are not registered with IIS.

    To solve the above error:

    1. Navigate to "C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation" at the Visual Studio command prompt
    2. Execute "servicemodelreg -i" to install the mappings manually

提交回复
热议问题