Laden...

Click-Once Deplayment-Problem

Erstellt von oehrle vor einem Jahr Letzter Beitrag vor einem Jahr 435 Views
O
oehrle Themenstarter:in
461 Beiträge seit 2009
vor einem Jahr
Click-Once Deplayment-Problem

Habe eine Appliaktion, mit mehreren Projekten, habe ich auch schon länger am laufen. Jetzt habe ich ein zusätzliches Projekt eingebunden, weil ich ein neues Feature eingebaut habe.
Dann habe ich die Applikation veröffentlicht, konnte diese aber nicht installieren, Deployment-Error.

Kann es sein, sobald man ein anderes Projekt hinzubindet oder nur eine Methode die eine andere EXE aufruft, das dann die Applikation sich nicht mehr automatisch mit einer neueren Version sich nicht mehr installiert?

Wenn das so wäre, muss mann ja jedes mal die Applikation auf den Rechnern deinstallieren und neu installieren, absolut unbrauchbar???
Hat jemand eine Idee, wie man so ein Prblem umschiffen kann?

Hier mal das LOG-File das beim Update erscheint ... :

IDENTITIES
Deployment Identity : Datenfinder.application, Version=1.0.26.0, Culture=neutral, PublicKeyToken=b6d294c9d8a2e221, processorArchitecture=amd64
Application Identity : Datenfinder.exe, Version=1.0.26.0, Culture=neutral, PublicKeyToken=b6d294c9d8a2e221, processorArchitecture=amd64, type=win32

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 F:\APPS\Fertigung\DatenFinder\Datenfinder_x64\Datenfinder.application resulted in exception. Following failure messages were detected:
+ Reference in the manifest does not match the identity of the downloaded assembly MessprogrammFinder.exe.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS

Fehlermeldung:

  • [25.04.2022 07:16:43] : Activation of F:\APPS\Fertigung\DatenFinder\Datenfinder_x64\Datenfinder.application has started.
  • [25.04.2022 07:16:44] : Processing of deployment manifest has successfully completed.
  • [25.04.2022 07:16:44] : Installation of the application has started.
  • [25.04.2022 07:16:45] : Processing of application manifest has successfully completed.
  • [25.04.2022 07:16:47] : Found compatible runtime version 4.0.30319.
  • [25.04.2022 07:16:47] : Request of trust and detection of platform is complete.

ERROR DETAILS

Fehlermeldung:
Following errors were detected during this operation.

  • [25.04.2022 07:17:06] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
    • Reference in the manifest does not match the identity of the downloaded assembly MessprogrammFinder.exe.
    • Source: System.Deployment
    • Stack trace:
      at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
      at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
      at System.Deployment.Application.FileDownloader.OnModified()
      at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
      at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
      at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
      at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
      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, Uri& deploymentUri)
      at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
      at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

Hinweis von Abt vor einem Jahr

..bitte die Code Tags zumindest mal für den Error verwenden.
Das ist echt nicht so schwer.

A
764 Beiträge seit 2007
vor einem Jahr

Hallo oehrle

Kann es sein, sobald man ein anderes Projekt hinzubindet oder nur eine Methode die eine andere EXE aufruft, das dann die Applikation sich nicht mehr automatisch mit einer neueren Version sich nicht mehr installiert?

Ohne mich jetzt bei dem Thema auszukennen, halte ich das für unwahrscheinlich.

Schau dir doch die relevante Fehlermeldung nochmal genau an:

ERROR DETAILS
Following errors were detected during this operation.

  • [25.04.2022 07:17:06] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
    • Reference in the manifest does not match the identity of the downloaded assembly MessprogrammFinder.exe.
    • Source: System.Deployment
    • Stack trace:
      ...

Gibt wohl ein paar Leute die das gleiche Problem hatten:
https://stackoverflow.com/questions/5337458/error-deploying-clickonce-application-reference-in-the-manifest-does-not-match

Gruß
Alf

O
oehrle Themenstarter:in
461 Beiträge seit 2009
vor einem Jahr
Gelöst, es klappt

Hallo, danke für die Info.
Bei dem neuen Projekt mußte unter:

    • Sicherheit ==> das Häkchen "ClickOnce"-Sicherheitseinstellungen aktivieren aktiviert werden.

Dazu ist noch "Voll vertrauenswürdige Anwendung" aktiviert.

Dann hatte es nun wieder korrekt geklappt.
Vielen Dank.