Deploying a .Net 4.5 website to an IIS 7.5 server

前端 未结 5 895
野性不改
野性不改 2020-12-30 12:29

We are using Teamcity to do continuous integration builds for our website and have just upgraded our website to .Net 4.5RC. The application builds and runs in IIS express o

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 13:00

    I was facing the same issue even after using /P:VisualStudioVersion=11.0 as well as ignore managedruntime version in the proj file.

    Run the command

    C:\Windows\System32\inetsrv>appcmd set apppool /apppool.name: DefaultAppPool /managedRuntimeVersion:v4.5 
    

    After this, reset the ISS.

提交回复
热议问题