嗨,我知道這有幾個線程,但沒有解決方案似乎爲我工作。無法訪問IIS元數據庫ASP.Net
我有一個ASP.Net網站項目,我正嘗試在Visual Studio中加載和發佈。但是,當我加載項目時出現錯誤:
Creation of the virtuald directory http://localhost:xxxx failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.
只有當我以管理員身份運行Visual Studio時,纔會出現此錯誤。如果我不作爲管理員身份運行則不會出現上述錯誤,但是當我嘗試發佈我的應用程序我得到:
Please launch Visual Studio under administrator mode to perform this deployment action
看來我贏不了!
我試過到目前爲止:
- 考慮的Ç所有權:/在Windows/System32下/ INETSRV /配置
- 我project_name.csproj文件 設置
- 回到老團隊基礎服務器檢查在管理模式中沒有問題並使用組態。
- 運行Visual Studio以非管理員(的作品,但請注意上面第二個錯誤)
<UseIISExpress>false</UseIISExpress>
沒有任何運氣至今。
額外的信息:
操作系統:Windows 8.1中(64位)
Visual Studio中:2013
IIS:8.5
權限上C:\視窗\ System32 \ inetsrv \ config(只讀):
- 我:完全控制
- 管理員:完全控制
權限上的文檔/ IISExpress /配置(只讀):
- 我:完全控制
- 管理員:完全控制
注意「文檔」位於網絡驅動器上
您是否在文檔不在網絡驅動器上嘗試過? – Tim 2015-02-18 16:04:23
@Tim我不知道如何設置它,所以它不是。 – Edd 2015-02-19 09:09:02
[錯誤 - 無法訪問IIS元數據庫]的可能的複製(http://stackoverflow.com/questions/12859891/error-unable-to-access-the-iis-metabase) – jmoreno 2016-02-21 23:35:12