Solved

Reference in the manifest does not match the identity of the downloaded assembly Interop.Microsoft.Office.Interop.Outlook.dll

Posted on 2008-10-28
4
9,958 Views
Last Modified: 2013-11-10
Greetings:

I have a project that is distributed/published to the company via a file share.  The certificate for the Visual Studio project recently expired and was replaced/updated in order to publish successfully.  However, after the publish succeeded, the application would not install on any machines due to the following exception:

Reference in the manifest does not match the identity of the downloaded assembly Interop.Microsoft.Office.Interop.Outlook.dll

I'm new to this particular project and all of its details.  Thus, at this point I don't know what to make of this error.  Also, during the actual 'Publish' the message in the picture below was given.  I assume this is not an issue seeing how the new certificate was not created with the same name as the old.

Any ideas on how I can straighten this out?

Thanks!
WARNINGS

	There were no warnings during this operation.
 

OPERATION PROGRESS STATUS

	* [10/28/2008 10:52:34 AM] : Activation of C:\Documents and Settings\...\Start Menu\Programs\...\CompanyApplication.appref-ms has started.

	* [10/28/2008 10:52:34 AM] : Performing necessary update check as specified by the deployment.

	* [10/28/2008 10:52:34 AM] : Consuming new update.

	* [10/28/2008 10:52:37 AM] : Installation of the application has started.

	* [10/28/2008 10:52:37 AM] : Processing of application manifest has successfully completed.

	* [10/28/2008 10:52:37 AM] : Request of trust and detection of platform is complete.
 

ERROR DETAILS

	Following errors were detected during this operation.

	* [10/28/2008 10:52:37 AM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)

		- Reference in the manifest does not match the identity of the downloaded assembly Interop.Microsoft.Office.Interop.Outlook.dll.

		- 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.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

			at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()

			at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)

			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.ConsumeUpdatedDeployment(SubscriptionState& subState, ActivationDescription actDesc)

			at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState)

			at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, TempFile& deployFile)

			at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)

			at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

Open in new window

certificate-warning.JPG
0
Comment
Question by:John500
  • 3
4 Comments
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 500 total points
Comment Utility
Seems like you have not signed all the components with same certificate.
0
 

Author Comment

by:John500
Comment Utility
Thanks for your input.

Regarding the 'Interop.Microsoft.Office.Interop.Outlook.dll' which appears as the sole error in the error message:

"Reference in the manifest does not match the identity of the downloaded assembly Interop.Microsoft.Office.Interop.Outlook.dll."

... how would a certificate apply here?  I can easily identify this dll among the project references (see picture below) but how would a certificate come into play with this?

As far as the message which is given during the Publish, I read this as saying - the three key files already existing on the server (most importantly - publish.htm) don't have the same key:

CompanyApplication.application
publish.htm
setup.exe
references.JPG
0
 

Author Comment

by:John500
Comment Utility
Notice also the exception type:

System.Deployment.Application.InvalidDeploymentException (RefDefValidation)

I read that:

A deployment manifest is an XML file that describes a ClickOnce deployment, including the identification of the current ClickOnce application version to deploy.

InvalidDeploymentException indicates the existence of a corrupt deployment or application manifest in a ClickOnce application. The error might occur because the manifests are poorly formed, have unrecognized elements for their schemas, or have mismatched digital signatures.

You are more likely to have corruption if you manually edit the deployment or application manifest files with a text editor. You can usually correct this problem by regenerating your ClickOnce deployment, which will create new deployment and application manifests. For more detailed debugging steps, see the following links.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I figure my situation is due to 'mismatched digital signatures.'   How would I regenerate the ClickOnce deployment, isn't that the *Publish* process?  How do I know I have a 'ClickOnce' deployment?

Thanks
0
 

Author Comment

by:John500
Comment Utility
Problem ended up being related to the manifest.  After all related projects were updated with the correct certificate there was no longer any conflict in the manifest.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now