Compartilhar via


Clickonce: Publish on IIS fails with System.Deployment.Application.DeploymentDownloadException (Unknown subtype)

<Error Log>

Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Documents and Settings\<Username>\Local Settings\Temporary Internet Files\Content.IE5\PEB6XSQC\*.application resulted in exception. Following failure messages were detected:
        + Downloading file:///C:/Documents and Settings/<username>/Local Settings/Temporary InternetFiles/Content.IE5/PEB6XSQC/<Appname>.application did not succeed.

ERROR DETAILS
    Following errors were detected during this operation.
    * [10/28/2008 3:00:20 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
        - Downloading file:///C:/Documents and Settings/ykasan/Local Settings/Temporary Internet Files/Content.IE5/PEB6XSQC/HIC Report Launcher.application did not succeed.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
            at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()

 

<Workaround>

In My case the Publish Location was \\<Servername>\c$\wwwRoot\VirtualDirectory\
This UNC path was Publishing the application on the web server under same Domain
However, when we changed the publish Location to http:\Webserver\Visrtual Directory in Place of UNC Visual studio gave Error

Failed to connect to 'https://<Server>/<Virtual Dir>/' with the following error: Unable to create the Web site 'https://<Server>/<Virtual Dir>/'. The Web server does not appear to have FrontPage Server Extensions installed.           

Resolution

-Check if Web server has FrontPage Extension installed and Install it if its not installed already
-check that FrontPage extension is accessible as well
https://msdn.microsoft.com/en-us/library/aa984224(VS.71).aspx

-Check that Clickonce MIME types are also set on web server

To set MIME types in the IIS root directory's -> Properties -> HTTP Headers -> MIME Types.RightClick the Default Web Site of your IIS, then Select Properties, then go the HTTP Header tab. Near the bottom of the tab there is a command button called MIME Types
Click the MIME Types button. A New dialog pops.

Extension to .application and MIME Type to application/x-ms-application
Extension to .manifest and add MIME Type to application/x-ms-manifest 
Then add the Extension to .deploy and  add MIME Type to application/octet-stream

Please check MSDN For More information on MIME types and Clickonce Configuration.

Comments

  • Anonymous
    October 31, 2008
    PingBack from http://mstechnews.info/2008/10/clickonce-publish-on-iis-fails-with-systemdeploymentapplicationdeploymentdownloadexception-unknown-subtype/

  • Anonymous
    January 27, 2011
    Hi, exactly that has been my problem too. These extensions had been missing: Extension to .application and MIME Type to application/x-ms-application Extension to .manifest and add MIME Type to application/x-ms-manifest Then add the Extension to .deploy and  add MIME Type to application/octet-stream After having made the entries it worked perfectly. I worry that I did not find the solution by myself, though it is obvious - how could the IIS Server process an extension, that is unknown. Good post! Axel Arnold Bangert - Herzogenrath 2011

  • Anonymous
    November 22, 2011
    Hey I just needed to add the MIME Types for the website in IIS. Worked perfectly.

  • Anonymous
    October 23, 2013
    Why is it called "Click once" if you have to click a zillion things different machines ? It should be called, "YouNeedToKnow5TechnologiesToUseThisPubhlisher" surely Click Once ? ( if you don't know the definition of once )

  • Anonymous
    October 29, 2013
    I use megaui.exe to change the url of clickonce, but get this error. So I use publish url directoryly, then it worked.