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

后端 未结 6 966
-上瘾入骨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: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

提交回复
热议问题