注:針對的是C#程序(Silverlight)ide
第一步、找到入口程序所在的路徑,以記事本形式打開<入口程序.csproj>,因爲以前配置入口程序時,設置了「Use Local IIS Web server/Use IIS Express/Project url:http://localhost:50513/ 」 ,因此通常地會在D盤生成一個文件(例如 D:\用戶目錄\個人文檔\IISExpress,這個文件能夠刪掉,沒關係,當你從新配置的時候回自動生成),網站
這也會自動的在<入口程序.csproj>中添加某些代碼,因此須要進行更改,url
1 <ProjectExtensions> 2 <VisualStudio> 3 <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> 4 <WebProjectProperties> 5 <UseIIS>True</UseIIS>//這裏將自動生成的True改成False 6 <AutoAssignPort>False</AutoAssignPort> 7 <DevelopmentServerPort>50513</DevelopmentServerPort> 8 <DevelopmentServerVPath>/</DevelopmentServerVPath> 9 <IISUrl>http://localhost:50513/</IISUrl> 10 <NTLMAuthentication>False</NTLMAuthentication> 11 <UseCustomServer>False</UseCustomServer> 12 <CustomServerUrl> 13 </CustomServerUrl> 14 <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> 15 </WebProjectProperties> 16 </FlavorProperties> 17 </VisualStudio> 18 </ProjectExtensions>
第二步、再從新用vs2012打開解決方法,這時候就能reload以前load failed入口程序了。load完後就從新配置IIS Express(能夠跟以前同樣)。spa
第三步、去IIS管理器中添加網站,配置信息。調試
a,添加網站;code
b,綁定;server
第四步、用IE調試程序。blog