开发者

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 t开发者_运维百科o 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.


Workaround: we switched over to copying the binaries from our build machine to the destination instead of deploying from dev machines.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜