ClickOnce部署对Web服务器有哪些要求? [英] What are the web server requirements for ClickOnce deployment?

查看:78
本文介绍了ClickOnce部署对Web服务器有哪些要求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为客户端开发Windows .NET 4桌面应用程序,并正在考虑使用 ClickOnce 用于从客户的网站进行部署。我还计划从他们的网站上部署应用程序版本升级。

I am developing a Windows .NET 4 desktop application for a client and am considering using ClickOnce for deploying it from the client's website. I also plan on deploying application version upgrades from their website.

我已经在Stack Overflow上阅读了许多与ClickOnce相关的问题,但仍然没有一个好主意使用ClickOnce将应用程序发布到Web服务器需要发生什么情况。

I've read through many ClickOnce-related questions on Stack Overflow and still don't have a good idea of what needs to happen for me to publish the application to a web server using ClickOnce.

我的客户需要在他们的Web服务器上设置什么才能发布我的应用程序使用ClickOnce的应用程序?什么样的访问权限?他们需要设置部署目录吗?

What does my client need to set up on their web server for me to publish my application using ClickOnce? What kind of access permissions? Do they need to set up a deployment directory?

推荐答案

要引用Brian Noyes关于ClickOnce部署的出色著作, < a href = https://rads.stackoverflow.com/amzn/click/com/0321197690 rel = noreferrer rel = nofollow noreferrer>使用ClickOnce进行智能客户端部署:使用ClickOnce部署Windows窗体应用程序

To quote Brian Noyes' excellent book on ClickOnce deployment, Smart Client Deployment with ClickOnce: Deploying Windows Forms Applications with ClickOnce:


  1. 服务器必须能够返回针对部署清单,应用清单和单个应用程序的文件请求通过HTTP或 UNC 文件路径的文件。

服务器必须在HTTP标头中返回适当的MIME文件类型,以便在客户端正确处理它们。

The server must return appropriate MIME file types in the HTTP headers so that they are handled correctly on the client side.

MIME类型的当前列表在博客文章 用于ClickOnce部署的MIME类型

The current list of MIME types is in the blog post MIME Types for ClickOnce deployment.

因此,您甚至不必安装Windows Server,就可以将其托管在

So you don't even have to have Windows Server, you can host it on an Apache server (and many do).

我的公司设置了一个文件夹(不在Web服务器的根目录下),并向我授予了对该目录进行FTP传输的权限。然后有一个指向该文件夹的HTTP地址。与我完全同意的那样,他们比向我提供对Web服务器根目录的HTTP写入访问权更满意。

My company set up a folder (not under the root of the webserver) and gave me permissions to FTP anything to that folder. Then there is an HTTP address that points to that folder. They were more comfortable with this than with giving me HTTP write access to the root of the web server, with which I totally agreed.

因此,当我发布时,我将将文件位置发布到 ftp://myserver.mycompany.com/myvirtualfolder/myappname/

So when I publish, I set the publishing file location to something like ftp://myserver.mycompany.com/myvirtualfolder/myappname/

然后将安装URL设置为
http://myserver.mycompany.com/myappname/

Then I set the installation URL to something like http://myserver.mycompany.com/myappname/

指向 myvirtualfolder 。这也是客户访问的链接。

which points to myvirtualfolder. And this is also the link accessed by the customers.

这篇关于ClickOnce部署对Web服务器有哪些要求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆