This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Add-in Express™ Support Service
That's what is more important than anything else

This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
 
SonomaJack




Posts: 189
Joined: 2006-06-30
I am deploying a project built with .NET 3.5, ADX 2010 built in VS10 and am getting the following errors.

Add-in Express Registrator Log File: 09/24/2010 17:11:15

Installation directory: C:\WINDOWS\Installer\
Registrator version: 6.1.3044.0
-------------------------------
17:11:15 Starting the add-in registration process.
17:11:15 Loading mscoree.dll
17:11:15 Success.
17:11:15 .NET Framework installation directory:
17:11:15 The latest version of .NET Framework: 'v2.0.50727'
17:11:15 Loading CLR: v2.0.50727.
17:11:15 Calling CLRCreateInstance method.
17:11:15 Failed.
17:11:15 The loader will try to use the old Framework API.
17:11:15 The CLR v2.0.50727 has been initialized successfully.
17:11:15 Creating a new domain setup.
17:11:15 Success.
17:11:15 The configuration file is '(null)'
17:11:15 The 'shadow copy' is disabled.
17:11:15 Creating a new application domain.
17:11:15 Success.
17:11:15 Getting the base directory for the domain.
17:11:15 Success. The directory is 'c:\program files\s\webmail2contact2.0\'.
17:11:15 Searching for the Add-in Express core library.
17:11:15 Success. The 'AddinExpress.MSO.2005.dll' file is found.
17:11:15 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
17:11:15 Assembly identity is 'AddinExpress.MSO.2005'.
17:11:15 Success.
17:11:15 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
17:11:15 Success.
17:11:15 Calling the managed registration procedure.
17:11:15 Managed Error:
Date and Time: 9/24/2010 5:11:15 PM
Machine Name: VIRTUALXP-46963
IP Address: 192.168.131.72
Current User: VIRTUALXP-46963\XPMUser

Application Domain: c:\program files\se\webmail2contact2.0\
Assembly Codebase: file:///c:/program files/se/webmail2contact2.0/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.1.3044.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.1.3044.2005
Assembly Build Date: 5/2/2008 2:06:50 AM

Exception Source: mscorlib
Exception Type: System.BadImageFormatException
Exception Message: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. (Exception from HRESULT: 0x8013101B)
Exception Target Site: nLoadFile

---- Stack Trace ----
System.Reflection.Assembly.nLoadFile(path As String, evidence As Evidence)
AddinExpress.MSO.2005.DLL: N 00000 (0x0) JIT
System.Reflection.Assembly.LoadFile(path As String)
AddinExpress.MSO.2005.DLL: N 0013 (0xD) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
AddinExpress.MSO.2005.DLL: N 0045 (0x2D) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.MSO.2005.DLL: N 0437 (0x1B5) IL



17:11:15 The add-in registration process is completed with HRESULT = -2147467259.
Posted 24 Sep, 2010 17:33:42 Top
Eugene Astafiev


Guest


Hi Jack,

How can I reproduce that issue on my PC? Could you please provide me with a sample project and describe the target environment?

BTW I have noticed in the log:

C:\WINDOWS\Installer\

Please try changing the installation folder of your add-in.
Posted 26 Sep, 2010 13:06:21 Top
SonomaJack




Posts: 189
Joined: 2006-06-30
The installation file is: http://www.aaoutlook.com/aa/wm2c_setup.exe

config is Windows XP (in a virtualPC on a Windows 7 x64 machine) runnign Office 2010. It appears to be only with Office 2010, the same config with '07 seems to install.

Where is "Installation directory" set.

My applciation loads to the program files\se\webmail2contact folder. I cannot find where the "C:\WINDOWS\Installer\" directory is referenced.

Jack
Posted 26 Sep, 2010 13:56:19 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hi Jack,

I cannot reproduce the issue on Windows 7 64-bit + Office 2010 32-bit. I suggest installing all latest updates on the PC. Note however that your installer produces other issues; I've sent the adxregistrator.log to you, please check your Inbox.

First off, pay attention to the installation directory: the installer gives me no choice. Then, there's a exception when calling WebMail2Contact.Module1.WriteLogFile.


Andrei Smolin
Add-in Express Team Leader
Posted 27 Sep, 2010 04:48:20 Top