NET中对ClickOnce的怀疑 [英] doubt on ClickOnce in .NET

查看:104
本文介绍了NET中对ClickOnce的怀疑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ClickOnce应用程序,已发布到IIS虚拟目录中.我通过单击asp.net网站中网页上的超链接,使用
启动了ClickOnce应用程序
调用MainProject 可以在我的计算机上成功运行.

但是当我在另一台计算机上运行它时,它显示"Internet Explorer无法显示该网页."


我将发布文件夹位置设置为http://localhost/MyClickOnceApp.


I have a ClickOnce application which is published to a IIS virtual directory. I lauch this ClickOnce application by clicking on a hyperlink from a webpage in an asp.net website using,

Call MainProject it work successfully in my computer.

but when i run this in other computer it give ''internet explorer cannot display the webpage.''


i set the publishing folder location as http://localhost/MyClickOnceApp.


how can make it work in other computers?

推荐答案

正在运行它的计算机需要安装.Net框架.

如果您不使用IE,则需要安装ClickOnce扩展名.它们可用于Chrome,Safari和Firefox.

https://chrome.google.com/webstore/detail/eeifaoomkminpbeebjdmdojbhmagnn​​cl [
The computer you''re running it on needs to have the .Net framework installed.

If you''re not using IE, you need to install the ClickOnce extension. They''re available for Chrome, Safari and Firefox.

https://chrome.google.com/webstore/detail/eeifaoomkminpbeebjdmdojbhmagnncl[^]

If you''ve published it to an IIS server, you need ensure .application is registered as a MIME type.

If you''re using visual studio development server, this uses the 127.0.0.1 loop back and can''t be accessed by any other computer.

You also need to make sure the installation path associated with the ClickOnce manifest matches the URL being used to load the application.

So a publishing folder of http://localhost/MyClickOnceApp is no good.

As the client machine will download the manifest and then try and get the rest of the files from that address. Which won''t work as they will unlikely have IIS running and less likely to have the same click once available at the same location in it''s local IIS.

You need to change the publish path to http://ComputerName/MyClickOnceApp


这篇关于NET中对ClickOnce的怀疑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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