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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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