HTTP Error 404.17 - Not Found

前端 未结 9 526
-上瘾入骨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:02

    WCF mapping are not registered with IIS.

    Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation and execute servicemodelreg -i to install them manually

    0 讨论(0)
  • 2021-01-30 11:14

    enter image description hereIssue was solved by enabling the windows communication foundation -> HttpActivation on windows features.

    0 讨论(0)
  • 2021-01-30 11:14

    I struggled the whole day with this issue. Had all the config stuff right and relevant features installed on server. Found out my app was deployed in an app pool which used the .net clr runtime: Unmanaged code. Changed it to 4.0 and boom works!

    0 讨论(0)
  • 2021-01-30 11:16

    There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined

    Either you have 2 nodes for <scriptResourceHandler> in your web.config, or your .svc file has its own web.config and there's another web.config in the same IIS application that defines <scriptResourceHandler>. If this is supposed to be a self-contained site that's nested under another ASP.NET site, you would need to create it as an application through the IIS admin tool, but without knowing how your site/applications are structured, I can't offer much more help.

    0 讨论(0)
  • 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
    0 讨论(0)
  • 2021-01-30 11:22

    In case you run 32 bit apps in .net v2.0 you should set true Enable 32-bit Application to True under General section

    0 讨论(0)
提交回复
热议问题