2015年8月18日 星期二

Copy Web Site錯誤

 

Tool:Visual Studio 2015 Enterprise
OS:Windows 10、IIS 10 Express
.NET Framework 4.6、ASP.NET WebForms、Visual Basic

 

使用VS2015 Copy Web Site,將Visual Basic範本WebForm網站部署到本機IIS,出現錯誤

Could not find file '…\roslyn\vbc.exe'

Copy Web Site工具:

image

錯誤訊息如下:

Could not find file 'C:\inetpub\wwwroot\Mod12_1\bin\roslyn\vbc.exe'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\Mod12_1\bin\roslyn\vbc.exe'.

 

原來是部署時,需要一併部署vbc.exe

image

解法,重新Copy Web Site,將bin下roslyn資料夾下的所有檔案一併部署到IIS即可!!

沒有留言:

總瀏覽量