Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strong name signature not valid for this assembly stdole.dll

I've just started to get the following error in my ClickOnce application. When installing and running the same application, after seemingly successful installation I get an error message:

Application Validation did not succeed

The error details I can see the problem to be:

Strong name signature not valid for this assembly stdole.dll.

When i click into details I get

ERROR DETAILS Following errors were detected during this operation. * [04/13/2016 11:33:22 AM] System.Deployment.Application.InvalidDeploymentException (SignatureValidation) - Strong name signature not valid for this assembly stdole.dll. - Source: System.Deployment - Stack trace: at System.Deployment.Application.ComponentVerifier.VerifyStrongNameAssembly(String filePath, AssemblyManifest assemblyManifest) at System.Deployment.Application.ComponentVerifier.VerifyComponents() 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) at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

like image 859
Kinjal Gor Avatar asked Apr 13 '16 06:04

Kinjal Gor


People also ask

What is Stdole DLL?

Answer: stdole. dll is a Primary Interop Assembly for a bunch of Office COM interop components. Removing it from the \Datacap\tmweb.net\web.config does not affect any functionality in Datacap. Prior to Microsoft Office 2003, you had to redistribute stdole.


1 Answers

Hey Not sure if you still haven't figured out the problem but please refer to this article: strong-name-signature-not-valid-for-this-assembly-stdole-dll and apply it depending on the version of Visual Studio you are using.

The Problem is that the ClickOnce application is trying to use an unsigned version of the stdole dll but you need to have that signed.

Details from the webpage:

  1. Open path “C:\Program Files (x86)\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office11” and “C:\Program Files (x86)\Microsoft Visual Studio 9.0\Visual Studio Tools for Office\PIA\Office12”, there is file stdole.dll wich was 16kb large and not signed

  2. Open the path “C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies”, there is file stdole.dll wich was 25kb large and signed

  3. Replaced the unsigned dlls with the signed ones and did another publish

like image 68
SLin Avatar answered Oct 01 '22 16:10

SLin