Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce Client Download Problems (.application 404 File Not Found)
 

ClickOnce Client Download Problems (.application 404 File Not Found)

I pulished a ClickOnce using VS 2005, and I can install the application at Server side (windows server 2003 and IIS 6) through webpage. However, when I tried to download the application setup from workstation (vista machine). 404 not found Error was reported.

I did some search over Google and some suggested to add MIME type for .application .manifest and .deploy to my website and I did, but still got the error, the IIS supposed to be able to handle .application request after adding these MIME types, right? Then Where could be the problem??

The error message in log file is listed below, can anyone help me??

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

PLATFORM VERSION INFO
Windows : 6.0.6002.131072 (Win32NT)
Common Language Runtime : 2.0.50727.4016
System.Deployment.dll : 2.0.50727.4016 (NetFxQFE.050727-4000)
mscorwks.dll : 2.0.50727.4016 (NetFxQFE.050727-4000)
dfdll.dll : 2.0.50727.4016 (NetFxQFE.050727-4000)
dfshim.dll : 2.0.50727.4016 (NetFxQFE.050727-4000)

SOURCES
Deployment url : http://192.168.1.88:8080/DeployTest.application
Server : Microsoft-IIS/6.0
X-Powered-By : ASP.NET
Deployment Provider url : http://home-svr/DeployTest/DeployTest.application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://192.168.1.88:8080/DeployTest.application resulted in exception. Following failure messages were detected:
+ Downloading http://home-svr/DeployTest/DeployTest.application did not succeed.
+ The remote server returned an error: (404) Not Found.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [9/4/2009 1:50:17 PM] : Activation of http://192.168.1.88:8080/DeployTest.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [9/4/2009 1:50:23 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://home-svr/DeployTest/DeployTest.application 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& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ManifestType manifestType, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- The remote server returned an error: (404) Not Found.
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
TP_FAN  Friday, September 04, 2009 6:03 PM

First of all, I doubt this is a MIME type problem. Here are the MIME types, just FYI:

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

If you are deploying .Net 3.5 as a prerequisite, you need these as well:

.msp --> application/microsoftpatch
.msu --> application/microsoftupdate

If you have vsto apps, you need this one:

.vsto --> application/x-ms-vsto

The 404 error means the user can't access the files. Either he doesn't have privileges to the folder or you are using the wrong url. Are you deploying a publish file (publish.htm) with your application? If not, do so, and see if the user can even access that file.

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Saturday, September 05, 2009 5:16 PM

First of all, I doubt this is a MIME type problem. Here are the MIME types, just FYI:

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

If you are deploying .Net 3.5 as a prerequisite, you need these as well:

.msp --> application/microsoftpatch
.msu --> application/microsoftupdate

If you have vsto apps, you need this one:

.vsto --> application/x-ms-vsto

The 404 error means the user can't access the files. Either he doesn't have privileges to the folder or you are using the wrong url. Are you deploying a publish file (publish.htm) with your application? If not, do so, and see if the user can even access that file.

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Saturday, September 05, 2009 5:16 PM
Thx for the reply RobinDotNet.

Problem solved.

The thing is the default publishing action of VS 2005is to creat a virtual directory insidethe directoryhosting my asp.net website.

I setup a newsite only for publishing applications andI also set the publish directory propertyof the projectas well as the sharingproperty of the actualpublishing directory. No Problem with MIME types.
TP_FAN  Monday, September 07, 2009 7:56 AM

You can use google to search for other answers

Custom Search

More Threads

• Custom controls Dll is not replaced with new setup version project output
• Deploy/register custom dll's to system directory
• Deploy Project built in XP won't run on Server 2003
• Install 2 services at same time
• "The application should check for updates" reenables after publish
• ClickOnce bootstrapper + non-admin users
• Need help determaining Vista OS during a VS2005 .msi deployment
• Autoupdate only when Build-Nr Changes
• OnDemand and Assembly.Load
• Additional Features in a Setup Wizard Project