這幾天重裝系統,裝了win10,居然用vs2013打開項目出現下面這個提示錯誤,搞了很久才知道原因:
Even though I am an administrator on the machine, Visual Studio is not running as administrator so it does not have permission to the IIS metabase files. One solution is to run Visual Studio as administrator. This works but you can also take ownership of the IIS metabase files to fix this too.
其實很簡單,到下面的目錄,點擊繼續即可:(Browse to C:\Windows\System32\inetsrv and then double-click the “config” directory to get this warning dialog:)
然后再到config雙擊(Browse to C:\Windows\System32\inetsrv and then double-click the “config” directory to get this warning dialog:)
Do the same for the C:\Windows\System32\inetsrv\config\export directory and also the other directories in C:\Windows\System32\inetsrv.
Now you will be able to open the Visual Studio Web Application Project without a problem.
之后,你再打開vs試試,就沒有開頭的錯誤提示了!OK!