Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, September 4, 2009 6:03 PM
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.
All replies (2)
Saturday, September 5, 2009 5:16 PM âś…Answered | 1 vote
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!
Monday, September 7, 2009 7:56 AM
Thx for the reply RobinDotNet.
Problem solved.
The thing is the default publishing action of VS 2005 is to creat a virtual directory inside the directory hosting my asp.net website.
I setup a new site only for publishing applications and I also set the publish directory property of the project as well as the sharing property of the actual publishing directory. No Problem with MIME types.