How to register ASP.NET 2.0 to web server(IIS7)?

后端 未结 6 967
-上瘾入骨i
-上瘾入骨i 2020-12-13 00:09

I have a web-page application already created, but when I open it in visual studio 2008, it says there that:

ASP.NET 2.0 has not been registered on the Web Server. Y

相关标签:
6条回答
  • 2020-12-13 00:12

    If anyone like me is still unable to register ASP.NET with IIS.

    You just need to run these three commands one by one in command prompt

    cd c:\windows\Microsoft.Net\Framework\v2.0.50727

    after that, Run

    aspnet_regiis.exe -i -enable

    and Finally Reset IIS

    iisreset

    Hope it helps the person in need... cheers!

    0 讨论(0)
  • 2020-12-13 00:14

    ASP .NET 2.0:

    C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir
    

    ASP .NET 4.0:

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
    

    Run Command Prompt as Administrator to avoid the ...requested operation requires elevation error


    aspnet_regiis.exe should no longer be used with IIS7 to install ASP.NET

    1. Open Control Panel
    2. Programs\Turn Windows Features on or off
    3. Internet Information Services
    4. World Wide Web Services
    5. Application development Features
    6. ASP.Net <== check mark here
    0 讨论(0)
  • 2020-12-13 00:15

    Open Control Panel - Programs - Turn Windows Features on or off expand - Internet Information Services expand - World Wide Web Services expand - Application development Features check - ASP.Net

    Its advisable you check other feature to avoid future problem that might not give direct error messages Please don't forget to mark this question as answered if it solves your problem for the purpose of others

    0 讨论(0)
  • 2020-12-13 00:19

    I got it resolved by doing Repir on .NET framework Extended, in Add/Remove program ;

    Using win2008R2, .NET framework 4.0

    0 讨论(0)
  • 2020-12-13 00:32

    If you installed IIS after the .Net framework you can solve the porblem by re-installing the .Net framework. Part of its install detects whether IIS is present and updates IIS accordingly.

    0 讨论(0)
  • 2020-12-13 00:35

    The system I was working on is Windows Server 2008 Standard with IIS 7 (I guess that my experience will apply for all Windows systems of the same age).

    Running

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
    

    SEEMED to work, as

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -lv
    

    showed the .Net framework v4 registered with IIS.

    But, running the same for .Net v2, namely

    C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir
    

    did NOT result in

    C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -lv
    

    showing the framework registered.

    (And, for me, the installer for Kofax Capture Network Server was still missing ASP.NET.)

    The solution was:

    • Open Server Manager
    • Go to Roles/Web Server (IIS)
    • Push Add Role Services
    • check ASP.NET under Application Development (and press Install)

    After that, aspnet_regiis.exe -lv (either version) shows the framework registered. (And the Kofax installer was also happy and worked.)

    0 讨论(0)
提交回复
热议问题