Windows Server 2012/win8 iis8 上安裝 asp.net 4.5 當時用了mvc5 .net framework 4.5 所以得裝下

來源:互聯網
上載者:User

標籤:

vs2013+mvc5 +.net framework 4.5  本地 iisexpress 調試一點問題沒有,當部署到本機iis時 出現 無法識別 modules錯誤,具體錯誤提示是:

鎖定是預設設定的(overrideModeDefault="Deny"),或者是通過包含 overrideMode="Deny" 或舊有的 allowOverride="false" 的位置標記明確設

 

所以沒辦法,重裝下 iis吧。。。。,通過下面的方案搞定

 

不用都看完,我裝

Installing IIS Features on Windows 8

The following procedure describes how to install IIS and the required features for the Microsoft Dynamics NAV Web client on Windows 8.

To install IIS features on Windows 8
  1. On the Start page, choose Control Panel, and then choose Programs.

  2. Under Programs and Features, choose Turn Windows features on or off.

  3. In the Windows features dialog box, expand .NET Framework 4.5 Advanced Services, and then select ASP.NET 4.5.

  4. Expand WCF Services, and then select HTTP Activation.

  5. If the .NET Framework 3.50 is installed, then expand Microsoft .NET Framework 3.5 (including .NET 2.0 and 3.0), and then select Windows Communication Foundation HTTP Activation.

  6. In the Windows features list, expand Internet Information Services, and then expand World Wide Web Services.

  7. Expand Application Development Features, and select the following features:

    • .NET Extensibility 3.5 (if .NET Framework 3.5 is installed)

    • .NET Extensibility 4.5 

    • ASP.NET 3.5 (if .NET Framework 3.5 is installed)

    • ASP.NET 4.5 

    • ISAPI Extensions 

    • ISAPI Filters 

  8. Expand Common HTTP Features, and then select the Static Content feature.

  9. Expand Security, and then select the following features:

    • Request Filtering 

    • Windows Authentication 

  10. To install Internet Information Service (IIS) Manager, under Internet Information Services, expand Web Management Tools, and then select IIS Management Console.

    This step is optional. You use Internet Information Service IIS Manager to manage local and remote web servers and sites.

  11. Choose the OK button to complete the installation.

  12. To verify that the web server has been installed correctly, start your browser, and then type http://localhost in the address.

    The default web site opens and should display an IIS 8 image.

Installing IIS Features on Windows Server 2012

The following procedure describes how to install IIS and the required features for the Microsoft Dynamics NAV Web client on Windows Server 2012.

To install IIS features on Windows Server 2012
  1. On the Start page, choose Server Manager.

  2. In the navigation pane, choose Dashboard, and then choose Add roles and features.

  3. In the Add Roles and Features Wizard, in the Before You Begin page, choose the Next button.

  4. On the Select installation type page, select Role-based or feature-based installation, and then choose the Next button.

  5. On the Select destination server page, select Select a server from the server pool, select your server from Server Pool list, and then choose the Nextbutton.

  6. In the Select Server Roles window, select Web Server (IIS), and then choose the Next button.

  7. If the Add features that are required for Web Server (IIS) dialog box appears, then choose Add Features.

    Note
    If you do not want to install the IIS Management Console, clear the Include management tools check box, and then choose the Continue button.

     

     

  8. On the Select features page, expand .NET Framework 4.5, and then select ASP.NET 4.5.

  9. Expand WCF Services, and then select HTTP Activation.

  10. In the Add features that are required for ASP.NET 4.5? dialog box, choose the Add Features button.

    The following additional features are added.

    • ASP.NET 4.5

    • ISAPI Extensions

    • ISAPI Filters

    • .NET Extensibility 4.5

  11. If .NET Framework 3.5 is installed, then do the following:

    1. Expand the .NET Framework 3.5 Features node.

    2. Select HTTP Activate.

    3. If the Add features that are required for ASP.NET 3.5 dialog box appears, choose the Add Features button.

      The following additional features are added.

      • .NET Framework 3.5 (including .NET 2.0 and 3.0)

      • .NET Extensibility 3.5

  12. On the Select Features page, choose the Next button.

  13. On the Web Server Role (IIS) page, choose the Next button.

  14. On the Select role services page, verify that the following role services are selected at a minimum.

    • Common HTTP Features 

      • Static Content 

    • Security 

      • Request Filtering 

      • Windows Authentication 

    • Application Development 

      • .NET Extensibility 3.5 (if .NET Framework 3.5 is installed)

      • .NET Extensibility 4.5 

      • ASP.NET 3.5 (if .NET Framework 3.5 is installed)

      • ASP.NET 4.5 

      • ISAPI Extensions 

      • ISAPI Filters 

    • Management Tools (optional)

      • IIS Management Console (optional)

    Note
    You can leave other role services that are selected by default as selected.

     

     

  15. Choose the Next button

  16. On the Confirm installation selections page, choose the Install button.

  17. On the Installation progress page, confirm that your installation completed successfully, and then choose the Close button.

  18. To verify that the web server has been installed correctly, start your browser, and then type http://localhost in the address.

    The default website opens and should display an IIS 8 image.

 

安裝思路參考:https://msdn.microsoft.com/en-us/library/hh167503(v=nav.71).aspx#Win8

Windows Server 2012/win8 iis8 上安裝 asp.net 4.5 當時用了mvc5 .net framework 4.5 所以得裝下

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.