error of downloading an application published by VS2010

◇◆丶佛笑我妖孽 提交于 2019-12-11 08:57:57

问题


This question is related to my previous question.

I need to publish an application built by C# on VS 2010 (.NET 4.0) to a Windows server 2008 R2.

I just followed the instructions ("publish to a file share or path") here:

https://msdn.microsoft.com/en-us/library/31kztyey.aspx

Now, the UNC path specified in the publish profile can be accessed. It is a location of a remote server.

But, in the browser, I can open the link:

\\serverName\e$\myPath\publish.htm

There is an install button on the webpage, it points to

file://serverName/e$/myPath/setup.exe

When I clicked it, it downloaded setup.exe to

C:\Users\myname\Downloads

When I ran it, I got:

 * Activation of C:\Users\myName\Downloads\myApp.Host.application resulted in exception. Following failure messages were detected:
 + Downloading file:///C:/Users/myName/Downloads/myApp.Host.application did not succeed.
 + Could not find file 'C:\Users\myName\Downloads\myApp.Host.application'.

 System.Net.WebException
    - Could not find file 'C:\Users\myName\Downloads\CWIL.Host.application'.

But, the

  myApp.Host.application

has been created at:

 \\serverName\e$\myPath\Application Files\myApp.Host_2_1_6_7

Did I miss something here ?

Any help would be appreciated.

来源:https://stackoverflow.com/questions/30657744/error-of-downloading-an-application-published-by-vs2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!