简体   繁体   中英

Visual Studio ClickOnce, .NET and Mixed Case

I'm trying to publish a .NET 4.0 application to a web server using Visual Studio 2010 ClickOnce deployment. The actual application is published successfully, but if I start the installation from a machine without .NET 4.0 already installed, setup fails: When I click the download link, I'm getting the following error message:

An error occurred downloading the following resource: http://server/app/DotNetFX40/dotNetFx40_Full_x86_x64.exe

A look at the published folder shows that Visual Studio created three folders there, next to setup.exe: Application Files , dotnetfx40 and windowsinstaller3_1 .

If I change the actual directory name from dotnetfx40 to DotNetFX40 , it works.

My "Publishing Folder Location" is a file path ( \\\\\\server\\c$\\... etc.), the "Installation Folder URL" is http://server/app .

I was surprised that I didn't find anything on this online; am I missing something obvious?

If your web server is a *NIX machine, then file names are case sensitive . This means that dotnetfx40 and DotNetFX40 are different files, which would explain why you got an error trying to download one (that didn't exist), and why the other worked.

解决方法:我们切换到将二进制文件从构建计算机复制到目标位置,而不是从开发计算机进行部署。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM