Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Publish to Remote Website using ClickOnce
 

Publish to Remote Website using ClickOnce

I am trying to publish a windows forms solution to a remote website.  I use ftp://ftp.mydomain.com/projectname/ as the publishing location.  I use http://www.mydomain.com/projectname/ as the installation url.  The update location is the same as publishing location.  The files all get to the right place, and when I open the publish.htm page from the site and hit install it opens the xml from projectname.application in my browser instead of installing the application.  If I run setup.exe from the website browser it looks like its installing, but then it also opens up projectname.application as an xml file in my browser and quits.  I was going to try and test this at a site this coming monday, but may end up using msi if I can't get any help soon.  Thanks

p.s. I tried it on localhost and everything seemed to work fine.
lkinney  Friday, June 24, 2005 8:24 PM
Does the client have .NET 2.0 framework installed? That should set up the mime type mappings on the client side.

If not that, chances are it is a problem with the mime type mappings on your web server. Check out the following link with solutions to this problem.

http://msdn2.microsoft.com/library/ms165433(en-us,vs.80).aspx
Brian Noyes  Saturday, June 25, 2005 12:19 PM
Does the client have .NET 2.0 framework installed? That should set up the mime type mappings on the client side.

If not that, chances are it is a problem with the mime type mappings on your web server. Check out the following link with solutions to this problem.

http://msdn2.microsoft.com/library/ms165433(en-us,vs.80).aspx
Brian Noyes  Saturday, June 25, 2005 12:19 PM

Hello Ikinney

I'm having the same problem when other PCs try to Install my application.. Only get XML code page.

Where you able to solve the problem?

Please let me know.

Thank you.

Mirko

Mirko1728  Saturday, July 28, 2007 9:17 PM

You sure its a Windows Server your deploying to?

How aboutuploading an .htaccess file in the same folder as your deployment root with the following:

AddType application/x-ms-application .application
AddType application/x-ms-application .manifest
AddType application/octet-stream .deploy

That should stop it from showing you the XML code and will access process the file.

Good luck. Let me know if it works.

Oliver357649  Friday, August 03, 2007 7:47 PM

You can use google to search for other answers

Custom Search

More Threads

• Adding windows authentication to Clickonce.
• my application don't install
• Windows Installer XML (Wix) Toolset
• .NET 2 Setup Project question
• The specified network passsword is not correct
• deployment guide
• Registry string value is deleted during un-installation.
• How do I get clients machine to automatically register .application file type?
• Referencing install directory on a registry value
• Obtaining Install Path