404.2 Error after installing .net 4.0

前端 未结 3 1267
猫巷女王i
猫巷女王i 2021-02-01 01:59

I have a project which I have upgraded to .Net 4.0, but when I try to access it, I retrieve the following error:

HTTP Error 404.2 - Not Found
The page you reques         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 02:51

    I take it you're running on IIS6 right now..

    Open the IIS manager, and go to the Web Service Extensions area.. You'll be able to enable .NET 4 in there.. All new extensions are disabled by default :)

    If you're running on IIS7, .NET might not have registered in IIS.. Then open up an admin command prompt and navigate to the .NET 4 framework folder (C:\Windows\Microsoft.NET\Framework\v4.{version}). If you're on a 64 bit machine go to the Framework64 folder instead of the Framework folder. Then run aspnet_regiis -i in there

提交回复
热议问题