在其他计算机的 IIS 上发布 Windows 窗体应用程序

发布于 2024-12-18 02:54:32 字数 322 浏览 0 评论 0原文

我正在尝试在其他计算机(网络中)的 IIS 上使用 ClickOnce 发布我的 Windows 窗体应用程序,因为我的计算机没有 IIS安装。

但是在发布时它给了我错误

无法使用以下内容连接到“http://10.11.41.12/test/” 错误:无法创建网站“http://10.11.41.12/test”。这 Web 服务器似乎没有 FrontPage 服务器扩展 已安装。

我在其他计算机上安装了首页扩展,但它仍然给我同样的错误。

I am trying to publish my Windows Form Application using ClickOnce on the IIS of other Computer (in the network) as my computer do not have IIS installed.

But while publishing it gives me error

Failed to connect to 'http://10.11.41.12/test/' with the following
error: Unable to create the Web site 'http://10.11.41.12/test'. The
Web server does not appear to have FrontPage Server Extensions
installed.

I installed front page extension on other computer, but it is still giving me the same error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

淡淡の花香 2024-12-25 02:54:32

处理 FPSE 可能会很混乱。我们完全避免它,甚至一般原则上不将它安装在我们的服务器上。安装的越少,攻击面就越小。 (我并不是说 FPSE 不安全 - 常识可能并不完全准确 - 但如果您不需要它,为什么要安装它。)

相反,我们发布到服务器上的 UNC 路径,但将应用程序配置为从网址。既然您说您在服务器上安装了 FPSE,我假设您拥有服务器的管理员权限并且可以执行相同的操作。

下面的屏幕截图显示了它是如何在我们的“发布”路径中设置的。 (服务器和应用程序名称已重命名,以保护无辜者。)

ClickOnce 配置

Dealing with the FPSE can be messy. We avoid it altogether and don't even install it on our servers on general principle. The less that's installed, the smaller the attack surface area. (I'm not saying that FPSE is insecure - the common knowledge that it is may not be entirely accurate - but why install it if you don't need it.)

Instead, we publish to a UNC path on the server, but configure the app to launch from the URL. Since you said you installed FPSE on the server, I assume that you have admin rights on the server and can do the same.

The screen shot below shows how it's set up in our "Publish" path. (Server and app names renamed to protect the innocent.)

ClickOnce configuration

り繁华旳梦境 2024-12-25 02:54:32

当您发布它时,请尝试使用 FTP:

发布文件位置:

ftp://10.11.41.12/test/

安装 URL 将类似于:

http://10.11.41.12/test/setup.exe

这是针对 FrontPage 问题的明显解决方法。

When you publish it try using FTP:

Publishing file location:

ftp://10.11.41.12/test/

The installation url would then be something like:

http://10.11.41.12/test/setup.exe

This is an apparent workaround to the the FrontPage problem altogether.

提笔落墨 2024-12-25 02:54:32

您的其他问题您表示您希望通过共享云端硬盘提供应用程序。如果确实如此,那么您根本不需要 IIS。只需将安装文件夹 URL 设置为共享驱动器的 UNC 路径,例如:\computer\shareddrive\MyApplication

In your other question you indicated you wanted to serve the application off of a shared drive. If that is true then you do not need IIS at all. Just set the installation folder URL to the UNC path to the shared drive, for example: \computer\shareddrive\MyApplication

触ぅ动初心 2024-12-25 02:54:32

您对我之前的回答的评论表明我有一些错误的假设。根据您报告的错误以及问题的措辞,我(以及其他回答者)假设您正在将 WinForms 应用程序发布到 Web 服务器。这是一个逻辑假设,因为仅当您尝试部署到 Web 服务器时才会发生“首页服务器扩展”。您可能没有意识到您正在尝试发布到网络服务器,但该消息告诉我们您确实如此。

您对我的其他答案的评论表明情况并非如此,而是您打算将其部署在其他地方。 (也许是文件共享,也许是 CD。)

听起来您还没有完全了解如何发布到每个不同的位置。

我强烈推荐这个视频:http://windowsclient.net/learn/video.aspx?v =14105

以及 MSDN 的这一部分:http://msdn.microsoft.com/en-us/library/ 748fh114(VS.80).aspx

但特别是这篇文章:http://msdn.microsoft.com/en-us/library/ 31kztyey(VS.80).aspx 显示了发布到每个有效目标的正确方法。

Your comment on my previous answer indicates that I had some faulty assumptions. Based on the error you reported, and the wording of your quesiton, I (and the others who answered) assumed that you were publishing your WinForms applicaiton to a Web Server. This is a logical assumption, because the "Front Page Server Excensions" would only occur if you were attempting to deploy to a web server. You may not realize you were attempting to publish to a web server, but the message tells us that you are.

Your comment on my other answer indicates that this is not the case, but rather you're intending to deploy it elsewere. (Perhaps a file share, perhaps a CD.)

It sounds like you don't yet fully understand how to publish to each different location.

I strongly recommend this video: http://windowsclient.net/learn/video.aspx?v=14105

and this section of MSDN: http://msdn.microsoft.com/en-us/library/748fh114(VS.80).aspx

but particularly, this article: http://msdn.microsoft.com/en-us/library/31kztyey(VS.80).aspx which shows the proper way to publish to each of the valid targets.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文