wen huang
Guest
|
I wrote an addin with addin express for outlook. worked find in my development pc. But after I deploy it I got this error:
.NET Framework Initialization error - "unable to find a version of the runtime to run this application".
After I clicked on OK, it runs fine, but I don't want this error to pop everytime you start outlook.
From the log file, it looks like that it failed to get the required CLR version first, but after clicking on 'ok', it defaults to the latest CLR version (v2.0.50727) and worked fine.
Here's the adxloader.log at the point of time when that error poped up:
------------------
09:33:53 1512 Start.
09:33:53 1512 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{D8F8815F-2AED-4DD5-B98C-BB0F11FF181C}'
09:33:53 1512 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{D8F8815F-2AED-4DD5-B98C-BB0F11FF181C}' is closed.
09:33:53 1512 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
09:33:53 1512 Success.
09:33:53 1512 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
09:33:53 1512 Success.
09:33:53 1512 Creating a new instance of the add-in loader.
09:33:53 1512 Success.
09:33:53 1512 Loading the configuration from the system registry.
09:33:53 1512 Getting the required CLR version.
After I clicked 'OK', it would run fine and produce the rest of the log file:
------------------
09:33:53 1512 Start.
09:33:53 1512 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{D8F8815F-2AED-4DD5-B98C-BB0F11FF181C}'
09:33:53 1512 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{D8F8815F-2AED-4DD5-B98C-BB0F11FF181C}' is closed.
09:33:53 1512 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
09:33:53 1512 Success.
09:33:53 1512 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
09:33:53 1512 Success.
09:33:53 1512 Creating a new instance of the add-in loader.
09:33:53 1512 Success.
09:33:53 1512 Loading the configuration from the system registry.
09:33:53 1512 Getting the required CLR version.
09:35:57 1512 The latest CLR version: (v2.0.50727).
09:35:57 1512 The configuration has been loaded successfully.
09:35:57 1512 Runtime version: v2.0.50727.
09:35:57 1512 Assembly name: OfficeTech.Addins.ADX, PublicKeyToken=88581D43B16A08A2.
09:35:57 1512 Class name: OfficeTech.Addins.ADX.Save.AddinModule.
09:35:57 1512 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
09:35:57 1512 Loading CLR: v2.0.50727.
09:35:58 1512 The CLR (v2.0.50727) has been initialized successfully.
09:35:58 1512 Creating a new domain setup.
09:35:59 1512 Success.
09:35:59 1512 Getting the add-in directory.
09:35:59 1512 Success. The directory is 'C:\Program Files\Technosoft Solutions\OfficeTech.Addins.ADXSetup\'
09:35:59 1512 The 'shadow copy' is enabled.
09:35:59 1512 Creating a new application domain.
09:35:59 1512 Success.
09:36:05 1512 Unwrapping the managed class.
09:36:05 1512 Success.
09:36:05 1512 Querying the add-in extensibility.
09:36:05 1512 Querying the custom task panes.
09:36:05 1512 Querying the ribbon extensibility.
09:36:05 1512 Success.
09:36:05 1512 The managed add-in class has been created successfully. |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Wen.
Please go to the Office installation folder and check if the outlook.exe.config file is there. If it is, please check what version of .NET Framework is set in the 'supportedRuntime' element. |
|