IIS错误:•Managed handler is used; however, ASP.NET is not installed or is not installed completely.

  今天装了.NET Framework v4.0.30319, 网站发布到IIS时候,IIS出现报错页面,其错误内容如下:

 

Most likely causes:
  • Managed handler is used; however, ASP.NET is not installed or is not installed completely.
  • There is a typographical error in the configuration for the handler module list.

 

页面中提示我可能弥补此错误的步骤:

Things you can try:
  • Install ASP.NET if you are using managed handler.
  • Ensure that the handler module's name is specified correctly. Module names are case-sensitive and use the format modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule".

  

我上网搜索了一下,大概原因是说装上.net 4.0后,必须要“register IIS to framework 4”,具体注册步骤:

     1.Start->All Programs -> Microsoft Visual Studio 2010 ->Visual Studio Tools -> Visual Sutdio Command Prompt(2010)

     2.Right Click on the Visual Studio Command Prompt (2010) and select Run as Administrator incase of Windows 7 and Vista

     3. run this script:

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

       (choose one script depend on ourselves)

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值