title: ClickOnce deployment fails to run from URL
body: <p>I'm having issue with opening a ClickOnce application from my WPF application.</p>
  
  <p>When I try to open <code>http:/myServerName/ReportServer/ReportBuilder/ReportBuilder_3_0_0_0.application?</code> (note that one / is missing intentionally) in Internet Explorer, everything works just fine. <em>Report builder</em> is being launched with no problems.</p>
  
  <p>If I try to do the same thing in Mozilla - it downloads the application file and when I try to run it, I  get an error: </p>
  
  <blockquote>
    <p>Cannot download the application.</p>
  </blockquote>
  
  <p>Now for trying to open <em>Report Builder</em> from my application I run:</p>
  
  <pre><code>WebBrowser wb = new WebBrowser();
  wb.Navigate("http:/myServer/ReportServer/ReportBuilder/ReportBuilder_3_0_0_0.application?");
  </code></pre>
  
  <p>(note that one / is missing intentionally) 
  and I get the same error as if it was from Mozilla.
  Same thing happens if I try to Ctrl+Click the link from my code.</p>
  
  <p>Note: I've set my default browser to Internet explorer.</p>
  
  <p>The following error occurs:</p>
  
  <pre><code>Below is a summary of the errors, details of these errors are listed later in the log.
          * Activation of C:\Users\Deividas\AppData\Local\Microsoft\Windows\INetCache\IE\D5SZ3L71\ReportBuilder_3_0_0_0[1].application resulted in exception. Following failure messages were detected:
                  + Downloading file:///C:/Users/Deividas/AppData/Local/Microsoft/Windows/INetCache/IE/D5SZ3L71/RptBuilder_3/MSReportBuilder.exe.manifest did not succeed.
                  + Could not find a part of the path 'C:\Users\Deividas\AppData\Local\Microsoft\Windows\INetCache\IE\D5SZ3L71\RptBuilder_3\MSReportBuilder.exe.manifest'.
                  + Could not find a part of the path 'C:\Users\Deividas\AppData\Local\Microsoft\Windows\INetCache\IE\D5SZ3L71\RptBuilder_3\MSReportBuilder.exe.manifest'.
                  + Could not find a part of the path 'C:\Users\Deividas\AppData\Local\Microsoft\Windows\INetCache\IE\D5SZ3L71\RptBuilder_3\MSReportBuilder.exe.manifest'.
  </code></pre>
  
  <p>Stack Trace:</p>
  
  <pre><code>Following errors were detected during this operation.
          * [2015-07-10 13:52:41] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
                  - Downloading file:///C:/Users/Deividas/AppData/Local/Microsoft/Windows/INetCache/IE/D5SZ3L71/RptBuilder_3/MSReportBuilder.exe.manifest did not succeed.
                  - Source: System.Deployment
                  - Stack trace:
                          at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
                          at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
                          at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
                          at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri&amp; sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation&amp; serverInformation)
                          at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri&amp; appSourceUri, String&amp; appManifestPath)
                          at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri&amp; appSourceUri, String&amp; appManifestPath)
                          at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory&amp; downloadTemp)
                          at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState&amp; subState, ActivationDescription actDesc)
                          at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String&amp; errorPageUrl)
                          at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
                  --- Inner Exception ---
                  System.Net.WebException
                  - Could not find a part of the path 'C:\Users\Deividas\AppData\Local\Microsoft\Windows\INetCache\IE\D5SZ3L71\RptBuilder_3\MSReportBuilder.exe.manifest'.
                  - Source: System
                  - Stack trace:
                          at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
                          at System.Net.FileWebRequest.GetResponse()
                          at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
                  --- Inner Exception ---
                  System.Net.WebException
                  - Could not find a part of the path 'C:\Users\Deividas\AppData\Local\Microsoft\Windows\INetCache\IE\D5SZ3L71\RptBuilder_3\MSReportBuilder.exe.manifest'.
                  - Source: System
                  - Stack trace:
                          at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
                          at System.Net.FileWebRequest.GetResponseCallback(Object state)
                  --- Inner Exception ---
                  System.IO.DirectoryNotFoundException
                  - Could not find a part of the path 'C:\Users\Deividas\AppData\Local\Microsoft\Windows\INetCache\IE\D5SZ3L71\RptBuilder_3\MSReportBuilder.exe.manifest'.
                  - Source: mscorlib
                  - Stack trace:
                          at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
                          at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
                          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
                          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
                          at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
                          at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
  </code></pre>
  
  <p>Full error log file when clicked on Details:
  <a href="http://pastebin.com/eLJPq9qr" rel="nofollow">http://pastebin.com/eLJPq9qr</a></p>