Script not served by static file handler on IIS7.5

前端 未结 23 1469
执念已碎
执念已碎 2020-11-30 21:11

I\'ve just tried to deploy my first web application to IIS on my Windows 7 Home Premium notebook. After creating the application, I had to change to the Classic App Pool, t

相关标签:
23条回答
  • 2020-11-30 21:29

    i received this message for an application on iis 7.5 with a classic app pool assigned to .net 2.0. i needed to go to Handler Mappings and add two script maps, both were the same with except for the name. one name was svc-ISAPI-2.0-64, the other was svc-ISAPI-2.0. The request path was .svc. And the Executable was %SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll. i restarted iis and all was happy

    0 讨论(0)
  • 2020-11-30 21:30

    I know this is an old question, but I've just had this with a 3.5 application on my rebuilt Windows 8 machine and I was still getting this after aspnet_regiis -iru and it turned out the be ASP.NET 3.5 wasn't ticked within Application Development Features (not enough reputation to post an image).

    0 讨论(0)
  • 2020-11-30 21:35

    In addition to above, if you need WCF support, you might need to run this:

    c:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe -i
    

    Replace v3.0 to whatever your current framework version is.

    0 讨论(0)
  • 2020-11-30 21:35

    I solved this problem by enabling WCF Services

    Programs and Features > NET Framework 4.5 Services > WCF Services> HTTP Activation node

    But you have to admit it guys this ENTIRE IIS setup configure/guess/trial and see/try this/try that spends 4 or 5 of our days trying to find a solution around approach IS A COMPLETE AND UTTER JOKE.

    SURELY, 'IIS' IS THE BIGGEST CONFIDENCE TRICK EVER PLAYED ON MANKIND TO DATE

    0 讨论(0)
  • 2020-11-30 21:36

    Maybe too late now, but more often than not you need to run

    aspnet_regiis.exe -i  
    

    after installing asp.net. Maybe I would do it anyway now.

    0 讨论(0)
  • 2020-11-30 21:37

    I had the same problem. When I added Static content feaute for IIS, It works fine.

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