Problem in running .net framework 4.0 website on iis 7.0

后端 未结 12 594
忘掉有多难
忘掉有多难 2020-12-24 00:22

Hey I got problem in running .NET framework 4.0 website on IIS7.0. the error I got is like:

HTTP Error 404.2 - Not Found \

相关标签:
12条回答
  • 2020-12-24 00:23
    1. Go to the IIS Manager.
    2. open the server name like (PC-Name)\.
    3. then double click on the ISAPI and CGI Restriction.
    4. then select ASP.NET v4.0.30319(32-bit) Restriction allowed.
    0 讨论(0)
  • 2020-12-24 00:23

    If you don't have ISAPI and CGI Restrictions option listed, here is how to add it. How to add ISAPI and CGI Restrictions

    0 讨论(0)
  • 2020-12-24 00:24

    In my case, the problem was more severe: turns out asp.net was not correctly registered.

    This response worked fine.

    simply ran the following command at the command prompt

    %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i
    

    If I had been on a 32 bit system, it would have looked like the following:

    %windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -i
    
    0 讨论(0)
  • 2020-12-24 00:28

    If you look in the ISAPI And CGI Restrictions, and everything is already set to Allowed, then make sure that the ASP.NET v4.0.30319 handlers are even in the list. In my case they were not. This can be easy to overlook.


    I added one for 32 %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll and another for 64 bit %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll. You can name them both the same ASP.NET v4.0.30319.

    Check Allow extension path to execute.

    0 讨论(0)
  • 2020-12-24 00:31

    If you are running Delphi, or other native compiled CGI, this solution will work:

    1. As other pointed, go to IIS manager and click on the server name. Then click on the "ISAPI and CGI Restrictions" icon under the IIS header.

    2. If you have everything allowed, it will still not work. You need to click on "Edit Feature Settings" in Actions (on the right side), and check "Allow unspecified CGI modules", or "Allow unspecified ISAPI modules" respectively.

    3. Click OK

    0 讨论(0)
  • 2020-12-24 00:32

    Depending on the type of application, another thing to check is under the Advanced Settings for the Application Pool make sure "Enable 32-Bit Applications" is set to True.

    I'd checked everything in this thread when I had this issue but all had already been setup correctly, I found this was the problem for me.

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