Click here to Skip to main content
15,886,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wrote my first windows forms application, a simple one mind you, that works fine when installed on the machine I developed it on. I used the Clickonce method to publish in VS 2010. However, when I try and install it on any other machine, it fails to install. I admit my ignorance in this process and request any suggestions on material to study.

A message box prompts a message that states:

"Cannot download application. The application is missing required files. Contact application vendor for assistance."

I clicked the "Details" button and it showed this:

PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.1008
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.1008 (RTMGDR.030319-1000)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)

SOURCES
Deployment url : file:///C:/ClientRecords.application

IDENTITIES
Deployment Identity : ClientRecords.application, Version=1.0.0.5, Culture=neutral, PublicKeyToken=666a49fb069cf5eb, processorArchitecture=msil

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\ClientRecords.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Application Files/ClientRecords_1_0_0_5/ClientRecords.exe.manifest did not succeed.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [9/18/2013 1:39:51 PM] : Activation of C:\ClientRecords.application has started.
* [9/18/2013 1:39:51 PM] : Processing of deployment manifest has successfully completed.
* [9/18/2013 1:39:51 PM] : Installation of the application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [9/18/2013 1:39:52 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/Application Files/ClientRecords_1_0_0_5/ClientRecords.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& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
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
- Could not find a part of the path 'C:\Application Files\ClientRecords_1_0_0_5\ClientRecords.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:\Application Files\ClientRecords_1_0_0_5\ClientRecords.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:\Application Files\ClientRecords_1_0_0_5\ClientRecords.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)
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)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
Posted
Updated 11-Mar-18 20:35pm

1 solution

Well just a guess but that file is likely not in the right location or being packaged

C:/Application Files/ClientRecords_1_0_0_5/ClientRecords.exe.manifest


I do not use one click. I use WIX as that is the only viable installation now it seems. Other methods run into numerous issues (bad rollbacks, improper packaging etc etc.)

While there is a learning curve, if your application is simple it should be simple to get a WIX installer going. It really is quite powerful, but to do the really cool things you need to understand it.

Long story short learn and use WIX for your installation.

http://wixtoolset.org/[^]
 
Share this answer
 
Comments
Richard C Bishop 18-Sep-13 15:13pm    
Thank you for that suggestion, I will look into WIX. Are you familiar with the publish tab under the project properties?
[no name] 18-Sep-13 15:24pm    
I played with it for a while once. I was pushing things to some VMs I had. I sort of got it working the way I wanted, but there were still issues I could not figure out. Either I was not understanding it or I was thinking it should be doing something else.
Richard C Bishop 18-Sep-13 15:27pm    
Ok, because I had found an article that recommended changed the "publish status" to Include instead of Include(Auto). I attempted to do that, but the files I wanted to chaged the status on would not allow me to.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900