Windows Server 2012/win8 iis8 上安装 asp.net 4.5 当时用了mvc5 .net framework 4.5 所以得装下

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

时间: 2024-10-13 09:30:50

Windows Server 2012/win8 iis8 上安装 asp.net 4.5 当时用了mvc5 .net framework 4.5 所以得装下的相关文章

windows server 2012 r2 iis8.5 部署asp.net mvc4/5程序小结

windows server 2012 r2 iis8.5 部署asp.net mvc4/5程序小结 原文链接:http://www.xuanhun521.com/Blog/66d491f8-b479-437e-90a2-c24a898e44ce 基本配置 打开服务器管理器,点击添加角色和功能. 选择基于角色或基于功能的安装. 选择服务器. 选择webserver(iis) 选择角色. 打开web服务器(IIS)选项.选择常见http功能. 安全性选择中勾选常用的安全性选项. 应用程序开发选项中

Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境搭建教程

原文地址:http://www.osyunwei.com/archives/7378.html 搬运是为了自己找资料方便. 准备篇 一.环境说明: 操作系统:Windows Server 2012 R2 PHP版本:php 5.5.8 MySQL版本:MySQL5.6.15 二.相关软件下载: 1.PHP下载地址: http://windows.php.net/downloads/releases/php-5.5.8-nts-Win32-VC11-x86.zip 2.MySQL下载地址: htt

Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境搭建教程

准备篇 一.环境说明: 操作系统:Windows Server 2012 R2 PHP版本:php 5.5.8 MySQL版本:MySQL5.6.15 二.相关软件下载: 1.PHP下载地址: http://windows.php.net/downloads/releases/php-5.5.8-nts-Win32-VC11-x86.zip 2.MySQL下载地址: http://cdn.mysql.com/Downloads/MySQLInstaller/mysql-installer-com

在windows server 2012 R2 hyper-v 上布署 Citrix XenDesktop 7.6 (前言)

计划明年把Citrix的产品学习的过程全部写下来,和大家分享一下. 本文章写的是在windows server 2012 R2 hyper-v 上布署 Citrix XenDesktop 7.6的简单介绍 Hyper-V 在windows server 2012 R2下版本是3.0,稳定性要比前二个版本进步的很多,前阵看到国外的网站有介绍这方面的方章,所以最近测试了一下,发现还不错,最近会把所有的文章写出来,分享一下.

Windows Server 2008 R2系统上安装SQLServer2012集群(简略)

4台服务器(1台AD.2台SQL服务器.1台iSCSI存储服务器) 9个IP(1个AD的IP.2个SQL服务器的IP.2个心跳IP.1个iSCSI存储服务器的IP.1个集群IP.1个DTC的IP.1个集群的IP) 1.搭建域环境 DCServer的IP地址配置为192.168.80.200,DNS:192.168.80.200 在DCServer上运行dcpromo安装AD 2.node1和node2以及存储服务器加入域 3.在存储服务器上安装StarWind,再添加一个硬盘并且格式化,打开St

Windows Server 2012 KMS 服务器的安装与配置 - Klamath - 51CTO技术博客

个人比较懒,本来想写些SCVMM2012的安装配置心得,一直懒得动手,结果有人写出很详细的博文,我就更懒得动笔了,于是沉寂了几个月,最近开始捣鼓Windows Server 2012,也拿到了KMS的key,开始在单位部署Windows Server 2012了. 刚刚部署了Windows Server 2012的批量激活服务器,虽然KMS服务器做起来很简单,但我觉得还是有必要留一个文档,总有人用的到吧. 在Windows Server 2008 R2上装批量激活服务器,只需用slmgr.vbs

Windows Server 2012 在桌面上显示”我的电脑”图标

1.本地方式如果是在Windows Server 2012本地控制台下,直接按Win(键盘上的微软徽标键)+R,输入: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0 回车后,勾选所需要的桌面图标的名称,确定即可. 2.远程方式打开Windows PowerShell(一个像是命令提示符的东西[蓝底白字],但不是命令提示符),在Windows PowerShell内输入cmd回车,当返回如下信息:Microsoft Windows [版本

windows server 2003在vm上安装图解

1.在vm上的操作 2.加载镜像后正式安装windows server 2003阶段 至此,windows server 2003 安装完毕

windows server 2008 在vm上安装

vm设置 2.windows server 2008的安装 至此,windows server 2008 安装完毕.