• IIS 7.5 deploying errors and their solutions


    IIS 7.5 deploying errors and their solutions

            While deploying my web project created using VS 2010(.Net 4.0) on OS Windows 7 and IIS 7.5 I got the following errors which took some time to be resolved. I am sharing the information here so if anyone else faces the same situation, the solution is at hand.

    Error-1
    404.2 the page you are requesting cannot be served because of the ISAPI and CGI restriction list settings on the web server.
    如下图:
     
     
     
     
     
    Solution:
    1. Open IIS and click the server name.
    如下图:
     

     
    2. Go for Featured view and double click 'ISAPI and CGI Restrictions'.
    如下图:

     


    3. Right click on 'ASP.NET v4.0...' and check the allow checkbox. apply >> ok.

    如下图:

     

     

     

     

    Error-2
    This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

    Solution:
    1. Double Click on 'ApplicationPool'.
     
     

    2. Right click on the proper Application Pool for your project >> Set Application Pool Defaults >>
       Set the ".NET Framework Version to 'v4.0' here" >> OK
     
     
     
     
     
     
     
     
     
  • 相关阅读:
    numpy 笔记
    xdoj 1402 XY之说走就走的旅行
    红黑树 (洛谷 P3369 【模板】普通平衡树 )
    AVL树 (PAT甲级 Is It a Complete AVL Tree )
    xdoj-1297 Tr0y And His Startup
    C# 获取当前路径7种方法
    JQuery常用方法一览
    Jquery 处理字符串
    js 获取参数
    js cookie
  • 原文地址:https://www.cnblogs.com/jackljf/p/3589079.html
Copyright © 2020-2023  润新知