How do I fix 404.17 error on Win Server 2k8 and IIS7

前端 未结 16 1421
走了就别回头了
走了就别回头了 2020-11-30 11:30

I\'ve setup a new .net 2.0 website on IIS 7 under Win Server 2k8 and when browsing to a page it gives me a 404.17 error, claiming that the file (default.aspx in this case) a

相关标签:
16条回答
  • 2020-11-30 11:30

    For me, my problem came because of a setting in my project's web.config file (and also the solution, once I understood the problem).

    In my web.config file, we had these two lines in the system.webServer > handlers area:

    <remove name="WebServiceHandlerFactory-ISAPI-2.0" />
    <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    

    Notice the alternative handler has the attribute 'preCondition="integratedMode"'. So, I had to change my AppPool to use Integrated instead of Classic for my pipeline mode setting (which is the opposite of what the solutions above told me to do).

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

    http activation under WCF Services in turn on / off windows features resolved the issue.

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

    For me this got resolved by setting 32 bit application to true.

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

    For me it was HTTP Activation was not checked in the server features.

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

    Non of the above worked for me. Our server is 64 bit so setting the Application to allow 32 bit applications worked for us:

    • Go to Web Server\Application Pools
    • Right click the application pool used by your website.
    • Click on Advanced Settings...
    • Set "Enable 32-Bit Applications" to True.

    I think this was because the web application was compiled for 32 bit only.

    0 讨论(0)
  • 2020-11-30 11:41
    %windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
    

    worked for me after getting "An attempt was made to load a program with an incorrect format ..." with the 32 framework

    maybe ill save u one more sec googling

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