Huston, we have a problem -on some computer with 64-bit Office, the installation will not work

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

Huston, we have a problem -on some computer with 64-bit Office, the installation will not work
Add in on office 64-bit wont work 
petgre




Posts: 48
Joined: 2014-04-29
Hej!

We do have problems installing our add in in on a 64-bit Outlook.
When I test - it works on a new computer.
The dependancy is .net 4.6
The customer says it has even an newer version of .net, so it is already installed.
My version is 4.8.42 of the mscorlib.dll???
Theirs seems to be older?
Do you have any suggestions?

Created by Visual Studio 2017 Professional. Updated.
Latest Ad-in express
32-bit works version ok.
All included files created by us is 64 bit.
Installed and tested on a new computer.

What do I wrong?

thanks in advance

//Peter

log file :

Could not load file or assembly 'ArtistOutlookManager, Version=2.8.10.0, Culture=neutral, PublicKeyToken=null'. This assembly was compiled for a different processor.



Loggen i sin helhet:
---------------------------------------------------------------------------------
Add-in Express Registrator Log File: 11/02/2020 15:41:40

Installation directory: C:\Users\mse\Downloads\ArtistOutlookManagerSetup\ArtistOutlookManagerSetup\
Registrator version: 9.4.4644.0
Operating System: Microsoft Windows 10 Enterprise Edition (build 19041), 64-bit
Process Owner: Administrator
Command Line: adxregistrator.exe /install="c:\Program Files (x86)\Momentum Industrial AB\ArtistOutlookManager\ArtistOutlookManager.dll" /privileges=admin /generateLogFile=true /log="c:\Swedol\adxregistrator.log"
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
--------------------------------------------------------------
15:41:40 0456 Starting the add-in registration process.
15:41:40 0456 Loading mscoree.dll
15:41:40 0456 Success.
15:41:40 0456 .NET Framework installation directory:
15:41:40 0456 The latest version of .NET Framework: 'v4.0.30319'
15:41:40 0456 Loading CLR: v4.0.30319.
15:41:40 0456 Calling CLRCreateInstance method.
15:41:40 0456 Success.
15:41:40 0456 Calling GetRuntime method.
15:41:40 0456 Success.
15:41:40 0456 Checking if the hosting API of .NET Framework v4.0 beta is installed.
15:41:40 0456 The hosting API is up to date.
15:41:40 0456 Calling GetInterface method for the CorRuntimeHost interface.
15:41:40 0456 Success.
15:41:40 0456 Starting CLR...
15:41:40 0456 Success.
15:41:40 0456 Getting the CLR version.
15:41:40 0456 The CLR v4.0.30319 has been initialized successfully.
15:41:40 0456 Creating a new domain setup.
15:41:40 0456 Success.
15:41:40 0456 The 'shadow copy' is disabled.
15:41:40 0456 Creating a new application domain.
15:41:40 0456 Success.
15:41:40 0456 Getting the base directory for the domain.
15:41:40 0456 Success. The directory is 'c:\Program Files (x86)\Momentum Industrial AB\ArtistOutlookManager\'.
15:41:40 0456 Searching for the Add-in Express core library.
15:41:40 0456 Success. The 'AddinExpress.MSO.2005.dll' file is found.
15:41:40 0456 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:41:40 0456 Assembly identity is 'AddinExpress.MSO.2005'.
15:41:40 0456 Success.
15:41:40 0456 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
15:41:40 0456 Success.
15:41:40 0456 Calling the managed registration procedure (DISPID = 1610743823).
15:41:40 0456 Managed Error:
Date and Time: 2020-11-02 15:41:40
Machine Name: SE-MICHAELS3
IP Address: fe80::2d1f:65b9:9fb9:c48b%20
Current User: SWEDOL\mse

Application Domain: c:\Program Files (x86)\Momentum Industrial AB\ArtistOutlookManager\
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0

Exception Source: mscorlib
Exception Type: System.BadImageFormatException
Exception Message: Could not load file or assembly 'ArtistOutlookManager, Version=2.8.10.0, Culture=neutral, PublicKeyToken=null'. This assembly was compiled for a different processor.
Exception Target Site: nLoadFile

---- Stack Trace ----
System.Reflection.RuntimeAssembly.nLoadFile(path As String, evidence As Evidence)
mscorlib.dll: N 00000 (0x0) JIT
System.Reflection.Assembly.LoadFile(path As String)
mscorlib.dll: N 0018 (0x12) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
mscorlib.dll: N 0097 (0x61) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
mscorlib.dll: N 0867 (0x363) IL



15:41:40 0456 The add-in registration process is completed with HRESULT = -2147467259.
Posted 04 Nov, 2020 05:20:44 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hello,

According to the message provided, this is caused by your assembly which is built for a processor other than you have on that machine.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Nov, 2020 06:17:25 Top
petgre




Posts: 48
Joined: 2014-04-29
BUT, I cant change the processor when I compile my program?
And I dont believe that is the problem...

My main programs works, whatever I compile it, it is as quite big CRM system.
All runs it as a 32 bit program. On all 64 bit computers.

On the Outlook -32 it works, but not on -64, but on some it works.

All files in my program is 64 bit. MSCORELIB.DLL is out of my control?
Using your set up program!

Got it from your Designer for Wix....


//Peter
Posted 04 Nov, 2020 09:09:42 Top
petgre




Posts: 48
Joined: 2014-04-29
BTW, you are fantastic in the terms of responese time :)
Posted 04 Nov, 2020 09:11:24 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
petgre writes:
BUT, I cant change the processor when I compile my program?


You can choose whether you build it for x86, x64 or Any CPU platforms (we recommend using Any CPU if possible).

The message says that the machine has a processor other than you selected. I'd google for a solution. At https://stackoverflow.com/questions/26602512/could-not-load-file-or-assembly-microsoft-sqlserver-dtsruntimewrap they suggest that the issue is a result of mixing 32bit and 64bit assemblies.


petgre writes:
All runs it as a 32 bit program.

petgre writes:
All files in my program is 64 bit


These statements seemingly contradict each other.

petgre writes:
MSCORELIB.DLL is out of my control?


mscoree.dll is part of the .NET Framework.


Andrei Smolin
Add-in Express Team Leader
Posted 04 Nov, 2020 09:32:31 Top