3

I have a ClickOnce program that associates with a given extension and that works fine if the file is located on the file system. My problem comes in when this file is downloaded from a website. I have a web handler that prompts the user to Click to download the file. Upon clicking the link the user is presenter with an Open or Save Dialog. If the user chooses Open the program will not launch. If the user saves the file to their hard drive and then clicks the file the association will work.

Any advice on getting the association to work on the prompt when the user clicks Open or is a Save required?

-Edit : Tested this on both IE8 and Chrome with same result.

strickland
  • 1,943
  • 5
  • 21
  • 40
  • What's the file Extension? Have you changed it at all from the publish? Have you changed the associated association in windows? – McKay Nov 23 '09 at 18:30
  • The file extension is .aav (custom) and no I have not changed the associated association in windows. I even un-installed the program and reinstalled. The association works properly if the file exists on the system and not in this temporary state. – strickland Nov 23 '09 at 19:25
  • This is a duplicate of: http://stackoverflow.com/questions/1759850/clickonce-file-association, please remove. – Brett Veenstra Dec 15 '09 at 13:56
  • No, it is not a duplicate. Not even close. – Allon Guralnek May 02 '10 at 07:02

1 Answers1

0

The problem is that Internet Explorer does not have vision into the file associations set for ClickOnce. That's why clicking on it from Internet Explorer doesn't work, but saving it to disk and opening it in Windows does work.

I would bet the problem is one of security and administrative privileges, which ClickOnce applications do not have.

Sampson
  • 265,109
  • 74
  • 539
  • 565
RobinDotNet
  • 11,723
  • 3
  • 30
  • 33
  • Is there a known setting that will allow you to give privileges to this? – strickland Jul 31 '10 at 23:46
  • Not that I know of. I will tell you how we handled this, though. We have a web page that has files we want to open with our application. Rather than having it download the files, we pass the URL for the file to the application as a query parameter. The application checks for the parameter. If it finds it, it downloads the file and opens it in the application. Our app is single instance, so we had to add some named pipes stuff to handle the case where the app is already open -- we write the URL to a file and ping the running app to check for it. – RobinDotNet Aug 01 '11 at 16:56