Windows error 0x8013101B, -2146234341

Detailed Error Information

COR_E_NEWER_RUNTIME[1]

Message"This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."
Comment The assembly is built by a runtime newer than the currently loaded runtime, and cannot be loaded.

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 Code4123 (0x101b)

Questions

12votes
2answers

Word 2010 addin does not load, vsto 2010

Our development machine is 64 bit hardware running Windows 7 Professional N (64 bit), 64 bit Office Professional 2010 and Visual Studio Professional 2010. We created a Word 2010 (Application Level Add-In) using .NET Framework 4, Ribbons and Windows installer targeting Office 2010. We followed everything from the official MSDN [...] read more
visual-studio-2010
.net-4.0
vsto
office-2010
9votes
3answers

Could not load file or assembly 'AutoMapper' or one of its dependencies

I have this problem when I deploy, I really don't know how to solve it. Any idea? Server Error in '/' Application. Could not load file or assembly 'AutoMapper' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be [...] read more
.net
asp.net-mvc-3
iis
automapper
4votes
3answers

Which would be the proper way to install one publisher policy in to the GAC using WIX?

Which would be the proper way to install one publisher policy in to the GAC using WIX 3.5? I tried to do this: <File Id="LIBGAC" Assembly=".net" KeyPath="yes" Vital="yes" Name="ClassLibrary1.dll" ProcessorArchitecture="msil" DiskId="1" Source="..\ClassLibrary1\bin\Release\ClassLibrary1.dll" > </File> </Component> <Component Id="Config" Guid="F089B1AA-B593-4662-9DF4-F47EB9FBA1F4" > <File Id="LIBGACPolicy" Assembly=".net" KeyPath="yes" Vital="yes" Name="Policy.1.0.ClassLibrary1.dll" DiskId="1" Source="..\ClassLibrary1\policy.1.0.ClassLibrary1.dll" > </File> <File [...] read more
wix
gac
wix3.5
publisher-policy
4votes
2answers

ExecuteInDefaultAppDomain returns 8013101B

I am trying to host CLR in my native Win32 C++ application. CLR loading works okay, but when i try to execute a method in the assembly, then ExecuteInDefaultAppDomain returns 0x8013101B, and bails out. Here is the code snippet: // Managed Code namespace ManagedLibrary { public class LibraryBootstrapper { static [...] read more
c#
4votes
1answer

ERR: Failed to complete setup of assembly (hr = 0x8013101b). Probing terminated

I am seeing this strange issue. I would like to inform that there are many posts on this error but none of them solved the issue that I am facing. Below is my setup. 1. I have an exe file and in csproj of this file, target framework version is [...] read more
c#
.net
dll
3votes
0answers

WiX 3.11.2 and .NET 4.7.2 COM+ applications

I am trying to install .NET Framework 4.7.2 developed COM+ component using WiX 3.11.2. And it fails doing this with the following error in the log: > Action 14:38:48: RegisterComPlusAssemblies. Registering COM+ components > > RegisterComPlusAssemblies: DLL: C:\Program Files > (x86)\WiXTestingComPlusApplication\NET472ServicedComponent.dll > > ComPlusInstallExecute: ExceptionInfo: Code='0', > Source='System.EnterpriseServices', Description='Failed to [...] read more
.net-4.0
wix3.11
3votes
3answers

Loading a .NET 4.0 beta2 assembly in PowerShell 2.0

I tried loading PresentationFramework.dll from .NET 4.0 beta2 in PowerShell v2.0. But it fails with the following error. > PS C:\Windows\system32> > [Reflection.Assembly]::LoadFile("C:\Windows\Microsoft.NET\Framework\v4.0.21006\WPF\PresentationF > ramework.dll") > > Exception calling "LoadFile" with "1" argument(s): "This assembly is built by > a runtime newer than the currently loaded runtime and cannot be [...] read more
powershell-2.0
3votes
1answer

Calling a method of custom C# dll from powershell script

I'm new to PowerShell. I'm trying to call a method of my custom C# dll. I failed due to multiple reasons. Here is my code: [System.Reflection.assembly]::LoadFile("E:\Mulukutla\Migration.dll") $MyClass = New-Object DataMigration $MyClass.MigrateData("$from\$name","$to\$name") C# CLASS LIBRARY I USED IS BUILD IN 4.0 AND POWERSHELL V2.0 Exception calling "LoadFile" with "1" argument(s): "This [...] read more
powershell
3votes
2answers

MakeSfxCA.exe and DLL compiled with Framework 4.0

I have a dll file compiled with Microsoft .NET Framework 4.0 When I am using MakeSfxCA.exe file and passing the dll as one of the parameter to command line it gives me following error message: D:\SetupManager\test>D:\SetupManager\SetupBuilding\Wix\bin\sdk\makesfxca.exe Fil e2.dll D:\SetupManager\SetupBuilding\Wix\bin\sdk\x86\sfxCA.dll File1.dll CustomA ction.config Searching for custom action entry points in File1.dll [...] read more
.net
dll
wix
dtf
3votes
1answer

SideBySide Registration-Free COM fail while loading

i'm trying to create a C# COM Server which is used by a Delphi App without a COM-Registration. The process is descried on a ms blog - Registration-Free Activation of .NET-Based Components: A Walkthrough I created the necessarily manifest files and i linked them to the assemblies. The App Manifest: [...] read more
c#
.net
delphi
com
2votes
0answers

TeamCity can not start MSTest.exe or vstest.console.exe

I am getting this error when I try to run unit tests via teamcity MyTeamCity version is 9.1 and I am using Visual Studio 2015. If I change the name of MSTest.exe or vstest.console.exe it throws another error about finding the files. Also I think the problem is not about [...] read more
visual-studio-2015
teamcity
mstest
teamcity-9.0
vstest.console.exe
2votes
2answers

How to remove ajax toolkit from website

How can i remove the ajax toolkit from my website? i developed my website in .net 4.0 when i compile it in 2.0 and run it, it gets this error on page load. Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by [...] read more
c#
asp.net
.net-4.0
ajaxcontroltoolkit
2votes
1answer

LGHT0132 Adding Json.Net to GAC with Wix

I'm building a Wix installer that is adding json.net to the GAC (I know... GAC bad, but orders are orders). During the build I get this error: > error LGHT0132: The assembly file 'path\Newtonsoft.Json.dll' appears to be > invalid. Please ensure this is a valid assembly file and that the [...] read more
installation
wix
windows-installer
2votes
1answer

Assembly recompilation and assembly load issue

I have an executable (Foo.exe) and a library Bar.dll. Both binaries are NOT strong name signed. The Bar.dll library depends on the executable file and has it specified in its manifest in such manner: <dependency> <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Foo.exe" size="334336"> <assemblyIdentity name="Foo" version="1.2.3.4" language="neutral" processorArchitecture="msil" /> </dependentAssembly> </dependency> I do [...] read more
.net
.net-assembly
ilasm
ildasm
2votes
2answers

Application attempts to load wrong version of assembly

I'm using a pair of unsigned 3rd party assembly libraries that contain windows controls and base types from which I create derived classes. The dlls reside in a subfolder where my application gets installed. Beyond my control, a newer version of the libraries with the same names but built against [...] read more
.net
assemblies
version
1vote
2answers

.NET Framework (v 4.0) COM Registration free called from Win32 C++ application

I need to create a registration free COM object in .Net Framework c#. I've followed the msdn walkthrough https://msdn.microsoft.com/en-us/library/ms973915.aspx. I've to work on it because, or it is not enough clear to me, or it is not correct, however this is an old post and I use Visual Studio 2015 [...] read more
c#
c++
com
registration-free-com
1vote
1answer

Getting Error "Could not load file or assembly" for a DLL that I have removed from my solution

I have no longer any references to this assembly anywhere that I can find. Any ideas on why I would be getting this error. The project builds fine, however when I run in debug or release mode I get the runtime exception. I am running visual studio 2013. Description: An [...] read more
c#
asp.net
visual-studio
1vote
1answer

How does SXS chooses which framework version should be loaded?

I'm currently working on getting .NET Assemblies (with COM classes) to work registration free. It works well, however i have one issue which i can't seem to pin-point the exact cause. My issue is, assembly binding isn't done on the correct .NET Framework version. I currently have 2 assembles (let's [...] read more
.net
com
manifest
sxs
registration-free-com
1vote
2answers

.NET 4 Windows service install upgrade error

I have a .NET 3.5 Windows service which is installed using a VS2008 Setup & Deployment project. It has a custom install action. The installation of this service worked great until I recently upgraded to VS2010/.NET 4. Now, when I upgrade to the new version, I get the install error: [...] read more
.net
windows
service
installation
1vote
1answer

SQL Compact Framework Error(4.0) with VS 2008 SP1 Web(C#)

I have tried several of your suggestions. I assume that SQL Compact Framework 4 will work with VS 2008 Version 3.5 SP1. Thank you for your help. Felice Server Error in '/' Application. Could not load file or assembly 'System.Data.SqlServerCe.Entity' or one of its dependencies. This assembly is built by [...] read more
.net-3.5
sql-server-ce
visual-studio-2008-sp1
0votes
1answer

Could not load file or assembly 'PDFLibNet' or one of its dependencies

I'm running into an issue that it says pdf lib doesn't match the .netversion I'm using. The problem is I'm using the same version on both Microsoft .NET Framework Version:2.0.50727.9031; ASP.NET Version:2.0.50727.9031; PDF Lib: v2.0.50727; LOG: Attempting download of new URL file:///C:/Projects/bin/PDFLibNet.DLL. ERR: Failed to complete setup of assembly (hr [...] read more
asp.net
pdflib
0votes
0answers

Using Npgsql with Visual Studio 2008?

I need to work on a VSTO for Outlook 2007, hence I'm using VS2008 with .Net 3.5.1. The add-in will read from a PostgreSQL database, so I'm going to use Npgsql. When I compile o run the debug, I get this error: > Problem generating manifest: This assembly is built [...] read more
c#
postgresql
visual-studio-2008
npgsql
0votes
2answers

Why is System.Reactive.Windows.Threading loading?

I was trying to get a library that required System.Threading.Dll to work with my .NET 3.5 web application project. Since 3.5 doesn't have System.Threading.Dll, I followed a tip to install the Reactive extensions because it has a backported version of System.Threading for 3.5. The attempt still failed and after enough [...] read more
c#
asp.net
system.reactive
0votes
2answers

Assemblies not loading in office add-in with .net 4

When I upgrade my add-in project from .net 3.5 to 4.0 I get this error in FusLog when it wants to load my add-in assembly: > Error extracting manifest import from file (hr = 0x8013101b). I also add this to office exe config file (visio.exe.config in my case) but nothing [...] read more
.net
vsto
office-interop
shim
fuslogvw
0votes
1answer

addinSpy warns DLL path is not found. Issue with my dll or Assembly in the GAC

I have an Excel addin. It depends on an Assmbly which I register in the GAC. addinSpy gives this warning (sorry it does not format well) Add-in DLL path is not found. System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files (x86)\Poly\PolyAddins\PolyExcel\DBExcelAddin.dll' or one of its dependencies. This assembly is [...] read more
c#
.net
.net-assembly
excel-addins
0votes
2answers

Interop error with earlier versions of Framework

I have a COM object that is referenced in my project. When I build the project with target framework 4.5 everything works. However if I change the target framework to 3.5 (or 2.0), the code throws an exception when trying to instantiate the class using DLLName.exe (I presume it is [...] read more
c#
.net
interop
0votes
1answer

Cannot open VSTO 2005/Excel 2003 customization files after migrated to VSTO2010

I have a Excel Document level customization project that was build using VSTO 2005 that uses Excel 2003 template (xlt). Now I have migrated to VS2010 (.NET4) and Excel 2007 environment. My application is a reporting tool that users can create Excel reports using the customization. So currently they have [...] read more
visual-studio-2010
migration
vsto
excel-2007
excel-2003

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