Add-in Express is not working in Windows 7 Home Edition with CLR ver. 4.0

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

Add-in Express is not working in Windows 7 Home Edition with CLR ver. 4.0
 
sanjay bajracharya




Posts: 12
Joined: 2010-09-14
Add-in Express Loader Log File: 09/14/2010 13:31:30

Startup directory: C:\Users\Anuroj\AppData\Roaming\Microsoft\AddIns\
Loader version: 6.1.3044
------------------
13:31:30 6268 3052 Starting the add-in registration process.
13:31:30 6268 3052 Getting the latest CLR version.
13:31:30 6268 3052 The latest CLR version is 'v4.0.30319'.
13:31:30 6268 3052 Loading CLR: v4.0.30319.
13:31:30 6268 3052 Calling CLRCreateInstance method.
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Calling GetRuntime method.
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Calling GetInterface method.
13:31:30 6268 3052 Calling GetInterface method for the CorRuntimeHost interface.
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Starting CLR...
13:31:30 6268 3052 Success.
13:31:30 6268 3052 The CLR v4.0.30319 has been initialized successfully.
13:31:30 6268 3052 Creating a new domain setup.
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Getting the add-in directory.
13:31:30 6268 3052 Success. The directory is 'C:\Users\Anuroj\AppData\Roaming\Microsoft\AddIns\'
13:31:30 6268 3052 The configuration file is 'C:\Users\Anuroj\AppData\Roaming\Microsoft\AddIns\app.config'
13:31:30 6268 3052 The 'shadow copy' is disabled.
13:31:30 6268 3052 Creating a new application domain.
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Getting the base directory for the domain.
13:31:30 6268 3052 Success. The directory is 'C:\Users\Anuroj\AppData\Roaming\Microsoft\AddIns\'.
13:31:30 6268 3052 Searching for the Add-in Express core library.
13:31:30 6268 3052 Success. The 'AddinExpress.MSO.2005.dll' file has been found.
13:31:30 6268 3052 Creating an instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
13:31:30 6268 3052 Assembly identity is 'AddinExpress.MSO.2005'.
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Unwrapping the instance of the 'AddinExpress.MSO.ADXLoaderSupport' class.
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Creating an instance of the XML parser class.
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Loading the manifest file (C:\Users\Anuroj\AppData\Roaming\Microsoft\AddIns\adxloader.dll.manifest).
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Getting the root element of the manifest (C:\Users\Anuroj\AppData\Roaming\Microsoft\AddIns\adxloader.dll.manifest).
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Getting the 'assemblyIdentity' element of the manifest (C:\Users\Anuroj\AppData\Roaming\Microsoft\AddIns\adxloader.dll.manifest).
13:31:30 6268 3052 Success.
13:31:30 6268 3052 Searching for the 'name' attribute of the 'assemblyIdentity' element.
13:31:30 6268 3052 Success. The name is 'Tzunami.Outlook.AddIns.OAR, PublicKeyToken=11cc088d34ff630f'.
13:31:30 6268 3052 Calling the managed procedure to register the 'Tzunami.Outlook.AddIns.OAR, PublicKeyToken=11cc088d34ff630f' assembly.
13:31:30 6428 Connecting to the application domain of the Add-in Express loader.
13:31:30 6428 Success.
13:31:30 6428 Loading the 'Tzunami.Outlook.AddIns.OAR, PublicKeyToken=11cc088d34ff630f' assembly.
13:31:30 6428 Success.
13:31:30 6428 Registering the 'Tzunami.Outlook.AddIns.OAR, PublicKeyToken=11cc088d34ff630f' assembly (user).
13:31:30 6428 Error: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
13:31:30 6428 The managed registration process is complete with HRESULT = 2.
13:31:30 6268 3052 The system cannot find the file specified.
Posted 14 Sep, 2010 05:36:18 Top
Eugene Astafiev


Guest


Hi Sanjay,

I have noticed the following line in the log:

Error: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.


Do you use the MAPI Store Accessor component? Please have a look at another http://www.add-in-express.com/forum/read.php?FID=5&TID=7894 with a similar issue.
Posted 14 Sep, 2010 05:53:18 Top
sanjay bajracharya




Posts: 12
Joined: 2010-09-14
Hi Eugene,

Yes, I am using MAPI Store Accesor component. when I installed my application(Outlook Add-ins) using the setup of my project, It runs well on Win Xp professional where the CLR is ver 2.0.50727 but it didn't run on Win 7 Home Edition where the CLR is ver. 4.0. The Log showed the following error.
Error: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information
Posted 14 Sep, 2010 06:15:45 Top
Eugene Astafiev


Guest


Hi Sanjay,

You can use a workaround described in another http://www.add-in-express.com/forum/read.php?FID=5&TID=7894.
Posted 14 Sep, 2010 06:42:04 Top
sanjay bajracharya




Posts: 12
Joined: 2010-09-14
I created the config file

<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

but I am not sure whether we need to create in setup project or in the application project.

I also create config file and save it as outlook.exe.config and placed it in the office folder where outlook.exe is located but still it doesn't solve my problem.
Posted 14 Sep, 2010 07:48:52 Top
Eugene Astafiev


Guest


Hi Sanjay,

1. You need to create a config file (or modify an existing one) for the host application (Outlook in your case). Name it Outlook.exe.config and place it in the same folder where Outlook.exe resides. Typically, for Outlook 2007, it is the C:\Program Files\Microsoft Office\Office12 folder. Please use the following content for the config file:

<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

2. Move initialization of the MAPI Store Accessor to the AddinIinitialize event handler.

Please let me know whether it works for you.
Posted 14 Sep, 2010 08:08:08 Top
sanjay bajracharya




Posts: 12
Joined: 2010-09-14
Hi Eugene,

I try that also but it also didn't work at all. I copy that created outlook.exe.config file in the same folder where Outlook.exe resides and install my application setup (.msi) but It didn't work.Can you give me next suggestion that I should try to fix it. I even try to add adxloader.dll from the outlook add-ins ( Tools => Trust Centre =>Add-Ins ) but it gives error

Load Behaviour: Not Loaded. A runtime error occurred during the loading of the COM add-in.
Posted 15 Sep, 2010 03:33:09 Top
Eugene Astafiev


Guest


Hi Sanjay,

Did you try to initialize the MAPI Store Accessor in the AddinIinitialize event handler?
Posted 15 Sep, 2010 04:12:23 Top
sanjay bajracharya




Posts: 12
Joined: 2010-09-14
Hi Eugene,

Ya I even initialize the MAPI Store Accessor in the AddinIinitialize event handler but when i did that it gives error. It show popup showing error :

AddinExpress.MAPI.ADXMAPIStoreAccessor error : the add-in has fired an exception.

when i installed my application through setup file.
Posted 15 Sep, 2010 04:36:51 Top
Eugene Astafiev


Guest


Hi Sanjay,

Did you place the Outlook.exe.config file in the folder with Outlook.exe before?

Please have a look at the http://www.add-in-express.com/forum/read.php?FID=5&TID=7796.
Posted 15 Sep, 2010 05:22:03 Top