ClickOnce Install Error

I am new to the concept of click once, but liked the concepts.. Putting it into practice seems to be a little harder than I expected though..

App scenario.
Winforms app that uses a webservice located on the same site that the app is going to be click onced from..

Webservice uses default aspnet account to access a database via stored procs..

I did a file download from the site and everthing worked well (a hand coded html with nothing more than an a tag and the exe)


in each of the following attempts the deploy set completed without errors but the problem was installing from the "publish.htm" file that the wizard built.

Then I tried the "deploy" option.. bombed
Went into configuration for hte project (build) and changed it to a web depoloy..  (failed)
had widbey calculate the permissions then deploy.. (failed)


Thanks in advance for any clues...

Rob

Specific error returned...

Windows version: 5.0
system.deployment.dll (in C:\W2KAS\Microsoft.NET\Framework\v2.0.40607) version: 2.0.40607.42 (beta1.040607-4200)
mscorwks.dll version: 2.0.40607.42 (beta1.040607-4200)
dfdll.dll version: 8.0.40607.42 (beta1.040607-4200)

Subscription Url: http://lynchtek.com/ImageManager.application

(9/25/2004 3:06:35 PM) Activate manifest:
Activation of http://lynchtek.com/ImageManager.application resulted in exception.
   Type: System.Deployment.ManifestParseException
   Exception reading manifest from file 4EE9D7D0-6AD8-4F1A-8811-4AC18C4AA49A: the manifest could be invalid or the file could not be opened.
   Source: System.Deployment
   Stack trace:    at System.Deployment.ManifestReader.ExceptionHelper(String filename, Exception ex)
   at System.Deployment.ManifestReader.FromDocument(String docPath, ManifestType manifestType)
   at System.Deployment.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, String deployLocalCachePath, Boolean isShortcut)
   at System.Deployment.ApplicationActivator.ActivateDeploymentWorker(Object state)
   --- Inner Exception ---
   Type: System.Deployment.InvalidManifestException
   Deployment manifest requires publisher and product specified.
   Source: System.Deployment
   Stack trace:    at System.Deployment.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole()
   at System.Deployment.Manifest.AssemblyManifest.ValidateSemantics(ManifestType manifestType)
   at System.Deployment.ManifestReader.FromDocument(String docPath, ManifestType manifestType)


Answer this question

ClickOnce Install Error

  • itsmike

    Thank you, thank you, thank you!!!

    You guys have just saved the remnants of my hair!

    I had exactly the same issue and adding <PublisherName> as suggested has fixed the issue.

    Thanks again!

  • toc996

    To make this work, you have to ensure that the XML added is in the correct node. It should be within \\Project\ProjectGroup.

    I put it next to the PublishUrl node and it seemed to work fine, whereas before, I had the same problem mentioned:

        <PublishUrl>http://localhost/SmartClientTest/FirstSmartClient</PublishUrl>
        <PublisherName>Foo</PublisherName>

  • DVdR

    Hi,

    Where do I get BETA 2, as I can only find beta 1
    and even when I fill in the PublisherName I still get the same exception

    Windows version: 5.1
    system.deployment.dll (in C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607) version: 2.0.40607.42 (beta1.040607-4200)
    mscorwks.dll version: 2.0.40607.42 (beta1.040607-4200)
    dfdll.dll version: 8.0.40607.42 (beta1.040607-4200)

    Subscription Url: H:\csskassa\CSSKassaSwf.deploy

    (28/11/2004 23:25:13) Activate manifest:
    Activation of H:\csskassa\CSSKassaSwf.deploy resulted in exception.
       Type: System.Deployment.ManifestParseException
       Exception reading manifest from file 8a9cb2df-516a-40a3-9ae1-e6f77e40ec17.application: the manifest could be invalid or the file could not be opened.
       Source: System.Deployment
       Stack trace:    at System.Deployment.ManifestReader.ExceptionHelper(String filename, Exception ex)
       at System.Deployment.ManifestReader.FromDocument(String docPath, ManifestType manifestType)
       at System.Deployment.DownloadManager.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ManifestType manifestType)
       at System.Deployment.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
       at System.Deployment.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
       at System.Deployment.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, String deployLocalCachePath, Boolean isShortcut)
       at System.Deployment.ApplicationActivator.ActivateDeploymentWorker(Object state)
       --- Inner Exception ---
       Type: System.Deployment.InvalidManifestException
       Deployment manifest must specify an application dependency.
       Source: System.Deployment
       Stack trace:    at System.Deployment.Manifest.AssemblyManifest.ValidateSemanticsForDeploymentRole()
       at System.Deployment.Manifest.AssemblyManifest.ValidateSemantics(ManifestType manifestType)
       at System.Deployment.ManifestReader.FromDocument(String docPath, ManifestType manifestType)

  • EA512

    The issue seems to be a Beta1 bug that is supposed to be fixed in 2.

    What was needed was the PublisherName Element to be added to the  .  proj file.

    i.e. <PublisherName>Foo</PublisherName>


    as per http://msdn.microsoft.com/chats/vstudio/vstudio_090704.asp

    (search for " "Unable to contine.The application is improperly formatted. Please contact vendor") which was one of hte errors that I was getting.


    Rob


    PS Hope that helps someone :)


  • ClickOnce Install Error