![](/img/trans.png)
[英]Is it possible to create a new windows phone 8 project in visual studio 2013 update 2?
[英]Unable to create a new web project in Visual Studio 2013
背景:
我想在家里使用我的辦公室機器,我有一些有限的權利。 當我連接到我的網絡驅動器時,所有產品都會安裝,我的配置文件存在。
現在,我在家里,我無法訪問這些網絡驅動器。
問題:
每當我嘗試在visual studio中創建項目時,我都會遇到以下錯誤:
---------------------------
Microsoft Visual Studio
---------------------------
Package 'ProviderPackage' failed to load.
---------------------------
發現:
經過一些研究后,我發現它歸功於IISExpress。 我確保從工具>選項> Web項目中,沒有為所有新的Web項目啟用IIS express。
我也有一個錯誤:
---------------------------
Microsoft Visual Studio
---------------------------
Configuring IIS Express failed with the following error:
Filename: redirection.config
Error: Cannot read configuration file
---------------------------
然后我意識到可能是它無法用IIS實例化。 然后我試圖從命令提示符運行IIS表達式,我收到此錯誤:
C:\\ Program Files \\ IIS Express> iisexpress.exe
讀取配置信息時發生錯誤。 確保配置文件\\ NAUNSW001 \\ MalhAm \\ IISExpress \\ config \\ applicationhost.config exi sts,可訪問,並包含有效的配置信息。
我沒有訪問IISExpress可能選擇此路徑的注冊表。
我試圖執行IISexpress / path:c:\\ vs \\它工作。 然而,即便如此,當我嘗試創建一個新項目時,我得到一個錯誤:
---------------------------
Microsoft Visual Studio
---------------------------
Configuring IIS Express failed with the following error:
Filename: redirection.config
Error: Cannot read configuration file
請指教
好吧 - 我能找到解決方法。
如果您發現此錯誤,則可能是您可能無法在家中控制的IISExpress或IIS配置。
我找到的解決方法是:
您的配置文件應如下所示:
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/YourAppAlias/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
請使用以下路徑:
轉到MyComputer> Documents> IISExpress> config> applicationhost.config
右鍵單擊applicationhost.config並轉到“屬性”選項。 現在單擊高級按鈕並取消選中加密包含安全數據。
希望這能解決你的問題...... !!! :)
我有類似的問題甚至無法在2013年開始一個網絡項目。沒有一個解決方案建議工作
所以我嘗試了以下內容
獲得以下文件夾的讀寫權限
C:\\ Program Files(x86)\\ IIS Express \\ config(默認安裝iisexpress8)確保子文件夾架構和模板都具有讀寫訪問權限
然后進入模式文件夾並重命名為asp net_schema.xml並從命令提示符運行iisexpress.exe。
它開始iis express並成功注冊網站“webisite1”應用程序的URL“xxxx”
之后我退出iisexpress並再次將模式文件重命名為舊名稱。
之后我開始一個Web項目沒有問題
我以一種奇怪的方式發現了它! 在我的情況下查找IIS配置文件。 C:\\ Users \\\\ OneDrive \\ Documents \\ IISExpress但不小心我的One Drive暫停了。 所以它能夠訪問下面的文件夾中的文件。 C:\\ Users \\\\ OneDrive \\ Documents \\ IISExpress \\ config所以只需確保IIS可以訪問配置文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.