Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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?
Posted
Comments
Legor 27-Sep-12 8:10am    
This is the fourth question you're posting on this topic. Please do not repost but rather improve your first question.

1 solution

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
 
Share this answer
 
v2
Comments
hasbina 28-Sep-12 1:49am    
http://ComputerName/MyClickOnceApp

in which ComputerName is ip address of system?
Stephen Hewison 28-Sep-12 2:51am    
Yes an IP address will do.
hasbina 28-Sep-12 4:21am    
hi stephen,

again in other computer it give 'internet explorer cannot display the webpage.'

why?..
Stephen Hewison 28-Sep-12 4:29am    
I added lots of comments. Are you using IE? Is the .Net framework in which the application is compiled installed on the machine? Do you have .application registered as a MIME type in the VD in IIS?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900