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)

 

 

 

你可能感兴趣的:(.net,Microsoft,Module,command,asp.net,IIS)