Windows error 0x8013141A, -2146233318

Detailed Error Information

CORSEC_E_INVALID_STRONGNAME[1]

Message"Strong name validation failed."
Comment Strong name validation failed

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code5146 (0x141a)

Questions

27votes
12answers

Strong Name Validation Failed

Two machines. Both with .NET 3.5 and the VS 2008 VC++ SP1 redistributables A single exe which uses two signed DLLs, one in C++/CLI and one in C# The exe loads and runs fine on one machine. On the other, I get "Strong Name Validation Failed" on the C++ executable [...] read more
c#
c++-cli
code-signing
8votes
5answers

SGEN : error : Could not load file or assembly (Exception from HRESULT: 0x8013141A)

VS 2010, win server 2003, .Net 3.5 solution, which were migurated from .Net 1.1 All projects in solution are Delay signed. The soluton can be build successfully for Debug, but always failed for Release with following error. SGEN : error : Could not load file or assembly 'AssemblingX, Version=1.0.5000.0, Culture=neutral, [...] read more
visual-studio-2010
msbuild-4.0
sgen.exe
6votes
3answers

Strong name validation failed for application

I made a c# application that uses C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\3.0\System.Management.Automation.dll I also copied the dll to my bin folder. It works fine, but if I copy the bin folder to another machine and run the executable I get this error: ************** Exception Text ************** System.IO.FileLoadException: Could not load file [...] read more
c#
dll
6votes
1answer

Issues with RESX files on VS2010 targeting 3.5 framework

Here is a story what I recently ran into and a possible answer(?) I just wanted to share this information because I could not find this yet at stackoverflow. I upgraded my solution from VS2008, WinXP, 32bit TO VS2010, Win7, 64bit. When I make modifications on WinForms that generate new [...] read more
visual-studio-2010
msbuild
resx
windows-7-x64
5votes
1answer

Error loading System.Management.Automation assembly

I am developing a WPF application which is running a powershell script. string scriptPath = "/script/myscript.ps1"; Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); Pipeline pipeline = runspace.CreatePipeline(); pipeline.Commands.AddScript(scriptPath); Collection<PSObject> results = pipeline.Invoke(); I have added the following assembly. C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\3.0\System.Management.Automation.dll But when program runs following exception comes; > Could not [...] read more
c#
wpf
powershell
assemblybinding
4votes
2answers

Unable to Install SQL Server on Server 2012

THE PROBLEM I have been trying to install SQL Server 2012 on Windows Server 2012. I continually get the same error: Managed SQL Server Installer has stopped working Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: scenarioengine.exe Problem Signature 02: 11.0.3000.0 Problem Signature 03: 5081b97a Problem Signature 04: Microsoft.SqlServer.Chainer.Setup [...] read more
windows-server-2012
sql-server-2012
3votes
3answers

MSTest code coverage

I have a test project for a web service and, when I run tests in debug mode, everything works ok. However, when I just run tests, I get following error, for a referenced assembly that I try to obtain code coverage: > Class Initialization method WebServiceTest.wstest.MyClassInitialize threw > exception. System.IO.FileLoadException: [...] read more
code-coverage
mstest
vs-unit-testing-framework
3votes
2answers

C# external library (Lua) call problem

I'm new to programming in C# (VS2010) .Net (4.0) and I'm encountering I couldn't solve by myself since some days already. I'm using an external scripting language (Lua) in my C# code. To do so I use LuaInterpreter built for .Net 4.0 First try: The project is a console application [...] read more
c#
.net-4.0
lua
excel-2007
luainterface
2votes
3answers

sgen TypeLoadException in Visual Studio for Mac when trying to build Xamarin.iOS app

When compiling our app on MacOS in Visual Studio (version 7.0.1 build 24), I'm presented with the error: /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB6006: "sgen.exe" exited with code 1. (MSB6006) (SyncWebClientLight) If I start a build in Visual Studio 2015 Pro (with VS2015 connecting to the Mac and compiling it there), then I [...] read more
ios
xamarin
visual-studio-2015
xamarin.ios
visual-studio-mac
2votes
1answer

Connect to MySQL Db in Visual Studio 2017 with F#

I'm trying to connect to a test database I created for far too long and I finally decided to come for help. I am using F#, Visual Studio Community 2017 and MySQL Database. The server is local (Wamp). I have this for now: #r "\...\packages\SQLProvider.1.1.8\lib\FSharp.Data.SqlProvider.dll" open FSharp.Data.Sql open FSharp.Data.Sql.Providers open [...] read more
mysql
database
f#
visual-studio-2017
2votes
2answers

System.BadImageFormatException: Could not load file or assembly or one of its dependencies

I have a similar error to System.BadImageFormatException: Could not load file or assembly. But the condition to fire the error is different. > Test Name: Test_DisableTestUserAccount > Test FullName: > Test Source: > Test Outcome: Failed > Test Duration: 0:00:00 > > Result Message: > Unable to get type #typename#. [...] read more
.net
64-bit
2votes
1answer

Showing an image in crystal report

I want to use crystal report in VB.net in order to show an image containing a barcode.But when I run the application I get the following exception before loading the report although I have added the reference of crdb_adoplus.dll to my project. exception:Could not load file or assembly 'crdb_adoplus, Version=9.1.3300.0, [...] read more
vb.net
crystal-reports
datatable
dataset
barcode
2votes
1answer

I am unable to make application release in monodroid

I have been using monodroid in debug mode, but now my app is finished testing and I would like to release it to a device and then to google play store, I get the following error `Error 1 Could not load file or assembly 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c4c4237547e4b6cd' or one [...] read more
android
xamarin.android
web-reference
2votes
1answer

Strong name validation failure on Import-Module

I'm unable to import an assembly, supposedly because strong name validation is failing, though this occurs even when I register the assembly to not be checked. Can somebody spot what I'm doing wrong here? Below is a transcript. For reference, the switches to sn.exe are: * -v: Verify signature. * [...] read more
.net
strongname
sn.exe
import-module
1vote
3answers

Azure DevOps release pipeline - How to resolve Strong Name Validation issue

I have a C# exe which is referring to some other dlls and the dlls are signed using a strong name key. It works fine when I execute this in my local system. But when I call the same exe from Azure release pipeline, it is giving me the below [...] read more
c#
dll
azure-devops
azure-pipelines
1vote
0answers

Azure DevOps Pipeline - Bypassing Strong Name Validation

In our pipeline, we are building a Windows application that uses delay signing. We are using locbaml (checked into source control) to create satellite resource DLLs, and it uses Assembly.LoadFrom but it gives this error: > Could not load file or assembly 'XXXXX.resources, Version=5.1.38.1, > Culture=en-US, PublicKeyToken=xxxxx' or one of [...] read more
c#
azure-devops
azure-pipelines
code-signing
assembly-signing
1vote
4answers

Crystal Reports are not working in Visual Studio 2010

When i execute crystal report it gives an error Could not load file or assembly 'crdb_adoplus, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) read more
c#
.net
visual-studio-2010
c#-4.0
crystal-reports
1vote
1answer

.net Could not load file or assembly MySql.Data. Strong name validation failed (0x8013141A)

Error: An unhandled exception of type 'System.IO.FileLoadException' occurred in WindowsFormsApplication4.exe Additional information: Could not load file or assembly 'MySql.Data, Version=8.0.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) Information: * Visual Studio 2015 * Windows 10 - x64 * C# * MySQL 6.9.9 [...] read more
c#
mysql
.net
1vote
2answers

A solution that uses EntityFramework source projects instead its assemblies, could not start successfully

I have a WinForms project that uses EntityFramework 6.1.2-beta with .NET4, it worked fine, till I decided to replace EF assemblies with their source codes, for some tracing goals, so I removed EntityFramework.dll and EntityFramework.SqlServer.dll from my project references and get their source codes from CodePlex and add them to [...] read more
c#
entity-framework
configuration
.net-4.0
app-config
1vote
0answers

How to debug strongly named assemblies

I used to avoid the strong name validation by sn tool. This is how I did: Use sn -tp xxx.snk to get the token, then I added the token to registry at these two paths manually, they are HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification, and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification\. This did work for my application and I can [...] read more
c#
.net
winforms
strongname
1vote
1answer

Error using VS 2015 code analyzers

Using Visual Studio 2015 RTM, I have a .NET 4.0 class library project. I've added the Microsoft.CodeAnalysis.FxCopAnalyzers NuGet package to the project. This results in the following Analyzers being listed for the project in Solution Explorer. * Microsoft.AnalyzerPowerPack.Common * Microsoft.AnalyzerPowerPack.CSharp * System.Runtime.Analyzers * System.Runtime.CSharp.Analyzers * System.Runtime.InteropServices.Analyzers * System.Runtime.InteropServices.CSharp.Analyzers However in [...] read more
c#
visual-studio-2015
roslyn
1vote
3answers

OpenCL: Strong name validation failed while creating a new opencl project

This is the OpenCL first tutorial I am following. I am unable to create new OpenCL project. When I try to create new OpenCL project in visual studio 2010 on windows 7, 64 bit , I get "Strong name validation failed. (Exception from HRESULT: 0x8013141A)" error. And thus it fails [...] read more
visual-studio-2010
opencl
strongname
windows64
1vote
1answer

Remote execution of Coded UI Tests on a Windows XP VM

I have a Coded UI + SpecFlow test project (.NET Framework 4). I want to perform remote test execution, so I configured a Visual Test Agent - Controller environment setup. My local machine is the Controller and there is a virtual machine which is the agent. The AUT will run [...] read more
automated-tests
mstest
ui-automation
coded-ui-tests
specflow
1vote
0answers

NUnitLite in Xamarin (Android). Unable to load Mono.Data.Sqllite.dll

I'm currently experimenting with Xamarin for the first time, as well as NUnitLite for the first time. I've set up a small Android project and a test project. In the Android project I make use of SqlLite, and in my test project I want to write some integration tests for [...] read more
android
nunit
xamarin
1vote
1answer

Monogame project won't compile release build

I have a MonoGame android project that I have created. Everything worked fine and debug still builds, but when I try and build a release version of the game I get this error: Error 1 Could not load file or assembly 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c4c4237547e4b6cd' or one of its dependencies. [...] read more
android
xamarin.android
monogame
1vote
1answer

Word 2003 add in load failure

I've developed an add in for Word 2003 Standard Edition using the IDTExtensibility2 interface using Visual Studio 2008 on Windows XP. The add in runs fine on the development machine. Unfortunately after installing the add in, it doesn't load on the client machines. The symptoms are as follows: 1. The [...] read more
installation
add-in
word-2003
1vote
2answers

Error building a Release version when referencing a Web Service

If I create a New Mono Android application, then change the Active Config of the solution to Release, then right click and choose build, the application builds fine. If I then add a web reference to http://soatest.parasoft.com/calculator.wsdl as per this tutorial, then if I build again I get the error: [...] read more
xamarin.android
1vote
1answer

C# Aspose.Cells.dll installation error

I have recently wrote a program in C#, and utilizing Aspose.Cells.dll in order to export my reports in Excel format. I installed my program on my computer and some of my friends' it works fine, but today when I faced a clean computer(which has no .net framework or any programming [...] read more
c#
.net
aspose-cells
0votes
1answer

Windows IOT Getting error when deploying related to connecting

I have two Rasberry-pi devices. I installed Windows 10 IOT in that, but there are a couple of issues I am having. 1. The first issue i got when I try to connect the Rasberpi with VS2019 to deploy my app is giving this error Severity Code Description Project File [...] read more
iot
windows-iot-core-10
0votes
1answer

Visual Studio Xamarin - Problem building realease iOS project with webservice

I'm experiencing an error when trying to build a release iphone app and I've noticed it has to do with Web Service. It only happens when I add a Web reference. The target framework is .NET Standard 2.0 and I'm using Visual Studio 2017. The error is the following: > [...] read more
ios
visual-studio
web-services
xamarin
0votes
2answers

Strong Name Validation Failed on CRM 2016 GeneratePicklistEnums

I am starting a new project on a new Windows 10 computer working on CRM 2016 and have some strange behavior. I needed to generate the enumerations of the picklists for my code so I used the GeneratePicklistEnums project from the 2016 SDK SampleCode folder. I created the signing certificate [...] read more
c#
sdk
dynamics-crm
0votes
1answer

How do I debug "strong name validation failed"?

I have a program that works fine on my old Windows 7 computer. I copied its folder to my new Windows 10 computer, (there are no details that require a more complicated installation process,) and suddenly it won't run. Trying to run it on the command line gives me: > [...] read more
.net
strongname
0votes
0answers

How to disable code signing on Azure Dev Ops - Still getting “Error signing output with public key from file mssharedlibsn1024.snk - File not found”

We've disabled our code signing in our dev branch build pipe, and it fails with the following error: > Error CS7027: Error signing output with public key from file > '......\SigningCertificates\mssharedlibsn1024.snk' -- File not found. It keeps looking for the file even after we removed it from the solution and [...] read more
c#
.net
azure-devops
code-signing
0votes
1answer

Is Wix Custom Action project can be signed?

We are using Wix for installation project and having one separate CustomAction Project in that. CustomAction project (strongly signed) has one dependent project (called it ProjA) reference which is strongly signed. Case1# Both Custom Action and ProjA projects are signed then getting following error. Could not load file or assembly [...] read more
wix
windows-installer
.net-4.6
wix3.10
0votes
1answer

Assembly run failed on SQL Server, strong name validation failed exception

I am trying to create a SQL CLR that runs as a function. This has to have a dependency to the RabbitMQ.Client.dll. So far I have downloaded it and created an assembly on my SQL Server as follows: CREATE ASSEMBLY [RabbitMQ.Client] FROM 'C:\Users\MyUser\Documents\RabbitMQ.Client.dll' WITH PERMISSION_SET = SAFE This way, I [...] read more
.net
sql-server
rabbitmq
0votes
3answers

Office 2003 and extensibility.dll deployment blues

I have been trying to create a deployment for a C# Outlook 2003 add-in. It requires only NET 2.0 and relies on IDTExtensibility2 (of Extensibility.dll). Upon making sure Office 2003 PIA are installed the add-in still won't register because of Could not load file or assembly 'Extensibility, Version=7.0.3300.0, Culture=nuetral, PublicKeyToken=b03f57f11d50a3a' [...] read more
c#
vsto
office-addins
0votes
1answer

tlbimp.exe generated assembly fails to be registered using regasm.exe

I have a native COM dll that I want to build a C# interop assembly for. I'm attempting to do this using tlbimp.exe to generate the c# assembly, and I then regasm.exe to register the assembly for transparent use via COM in another program. I'm delay signing since I'm still [...] read more
c#
c++
com
0votes
0answers

Strange behavior of VS2015: Complains about "Strong Name Validation". Nothing helps

Environment: VS2015, .NET 4.5, .exe Console App + .dll@.NET 4.5 + other C++@CLR .dlls depencencies of my first .NET .dll Everything was running fine, until I tried to move my project to .NET 3.5 and then back to 4.5. Since then on, VS2015 refused to run my app, although it [...] read more
c#
exception
dll
visual-studio-2015
strongname
0votes
1answer

I have fork class ServiceBusTriggerAttribute to public and removed sealed - getting exception

I have taken a sdk code from github and make fork class ServiceBusTriggerAttribute.cs public removed sealed. namespace Microsoft.Azure.WebJobs { // Summary: // Represents an attribute that binds a parameter to a Service Bus Queue message, // causing the method to run when a message is enqueued. // // Remarks: // [...] read more
c#
azure
azure-webjobs
azure-webjobssdk
0votes
1answer

Getting Error While Debugging the Plugin in dynamics crm 2013

I'm getting below error while debugging the plugin. > Unhandled Exception: System.IO.FileLoadException: Could not load file or > assembly 'Microsoft.Xrm.Sdk.Workflow, Version=6.0.0.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name > validation failed. (Exception from HRESULT: 0x8013141A). It is a CRM 2013 online instance. read more
c#
dynamics-crm-2011
c#-3.0
dynamics-crm
dynamics-crm-2013
0votes
2answers

Could not load file or assembly while configuring Build vNext Agent

When trying to configure a Build vNext agent I keep running into the following exception. Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'VsoAgent, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: [...] read more
tfs
build
tfsbuild
ctp
tfs-2015
0votes
1answer

Cannot enable strong name verification skipping on Server 2012

Lost sources for a signed dotnet assembly. Getting the infamous: Strong name validation failed error "0x8013141A" on Windows Server 2012. Tried to enable verification skipping but the system keeps reporting the failed validation error. Steps taken: Running the sn.exe -Vr *,* command tool (both x32 and x64) added the following [...] read more
c#
.net
windows
0votes
1answer

Unable to execute Powershell from C# Application

I've added in the reference to the Powershell dll (C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\3.0\System.Management.Automation.dll); I've also removed that reference and opened up the Project File and added in <Reference Include="System.Management.Automation />. However, neither of these work, I always get the following error: Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, [...] read more
c#
powershell-3.0
0votes
0answers

Strong Name Validation Failed while running C# app in custom AppDomain from unit test

I have a program that make use of unmanaged C++ code, and I want to write Unit Tests (well, more like system tests) for it. I want to run the entire program from the Unit Test in a different AppDomain, so I'll be able to more easily inject tester code. [...] read more
c#
unit-testing
appdomain
strongname
0votes
1answer

Error in installing EntityframeworkwithheirarchyId6.0.2

Hi I have a problem in installing entityframeworkwithheirarchyId how can I fix it. I installed and reinstalled few time but its not work. Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly `EntityFramework.PowerShell.Utility, Version=6.0.0.0, Culture=neutral, PublicKeyToken=6847f3395fc61b47' or one of its dependencies. Strong name validation fai led. (Exception [...] read more
entity-framework
entity-framework-6
0votes
1answer

How to create .snk file for Mono android

I have done android project in the mono develop It working fine in debug mode but when I am Trying to run project in release mode then it is giving following error: C:\Users\Administrator.EDZ0138\Documents\Projects\IdooctopusNew\IdooctopusNew\SGEN: Error: Could not load file or assembly 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c4c4237547e4b6cd' or one of its dependencies. Strong [...] read more
monodevelop
snk
0votes
2answers

How to build Prism4.5 for WPF

I am trying to build Prism in .net 4.5. There's a conflict with assembly versions of Unity 3.0 and Unity Extensions. I have Disassembled a WPF (Prism).dll file (Microsoft.Practices.Prism.UnityExtensions.dll) using ILDASM, there I got 3 files with extensions like .IL, .res and .g.resources. I have changed the version number of [...] read more
c#
.net
wpf
dll
build-process
0votes
1answer

window phone 7 error

I have a project that worked fine but today i get this error... even when I creating new project i get same message... I can't understand what is the problem... Error 1 The "CompileXaml" task failed unexpectedly. System.IO.FileLoadException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one [...] read more
c#
windows-phone-7
compiler-errors
runtime-error
0votes
1answer

Using a WINMD library causes a Strong Name Validation exception

Using the Visual Studio 11 beta on the Windows 8 consumer preview. The problem is: if a try to use a class from a class library that has its output type set to WinMD, I get a Security exception stating that "Strong Name Validation" failed (Exception from HRESULT: 0x8013141A). I [...] read more
c#
.net
code-signing
windows-runtime
strongname
-1votes
1answer

getting exception after webjob sdk code fork for public class ServiceBusTriggerAttribute

I get all webjod sdk code from here I want to make class ServiceBusTriggerAttribute public and non sealed and created nuget package using Microsoft.Azure.WebJobs.ServiceBus.dll but when I use this nuget in my webjob project getting below exception. > An unhandled exception of type 'System.IO.FileLoadException' occurred in > mscorlib.dll > > [...] read more
c#
.net
azure
azure-webjobs
azure-webjobssdk
-1votes
2answers

running a 32 bit debug build dll in a win7 64 bit using C#

I have a third party 32 bit dll that am planning on running on win7 64 bit. I did some research and i found out i should change the platform to x86. I did that it and i still get this error. "Additional information: Could not load file or assembly [...] read more
c#
32bit-64bit

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0