Unable to load Outlook Add-In
I'm unable to load any Outlook Add-In that I create. I started with the
Hands-On Lab 1 and then backed off to just displaying a messagebox in Startup
that just displays "Hello World".
The messagebox I get in Outlook when I start Run the project using VS2005 is:
"Office document customization is not available". I select OK and go on,
but my "Hello World" messagebox never shows. Also, when I go to the menu
Tools -> Options -> Other -> Advanced Options -> COM Add-Ins, my Add-In is in
the list, but when I select it, the message at the bottom of the box is "Not
loaded. A runtime error occurred during the loading of the COM add-in."
I'm wondering if this is a problem with Newsgator, which is also running and
uses .NET 1.1.
Any suggestions? N.B. I was able to install and run the 1st lab on another
PC that I have.
Thanks,
Tim
[927 byte] By [
TimDroz] at [2007-12-16]
NewsGator is running on .NET Fx 1.1, but VSTO Outlook loader requires .NET Fx 2.0 to run.
Unfortunately, .NET Fx is a shared per-process resource i.e. there could not be .NET Fx 1.1 and .NET Fx 2.0 in the same process. Even more, if someone has already started .NET Fx 1.1 it is impossible to unload this version of .NET and load another one.
According to this http://newsgator.mykbpro.com/Article_FB4A9.aspx
NewsGator support recommends locking down the version of .NET to 1.0 and 1.1 using Outlook.exe.config file. This is definitely not good for VSTO Outlook add-ins - they could not run.
Please check the .config settings on your machine.
I have the similar problem that cannot load the assembly, and I do not have newsgator? I am using a clean machine windows 2003 server with exchange 2003 and outlook 2003 with all latest patches....
I am not even able to run the outlook add-in from VS2005 template... same error as the hand-on lab... Any suggestion?
Thank
KC
Here is the exception:
System.IO.FileNotFoundException was unhandled
Message="Could not load file or assembly 'OutlookAddin1, Version=1.0.0.0, Culture=neutral' or one of its dependencies. The system cannot find the file specified."
Source="Microsoft.VisualStudio.Tools.Applications.Runtime"
FileName="OutlookAddin1, Version=1.0.0.0, Culture=neutral"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = OXYGEN\\Administrator\r\nLOG: DisplayName = OutlookAddin1, Version=1.0.0.0, Culture=neutral\n (Partial)\r\nLOG: Appbase = file:///D:/C%23Proj/OutlookAddin1/OutlookAddin1/bin/Debug/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : (Unknown).\r\n===\r\nLOG: This is an inspection only bind.\r\nLOG: No application configuration file found.\r\nLOG: Using machine configuration file from C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50215\\config\\machine.config.\r\nLOG: Attempting download of new URL file:///D:/C%23Proj/OutlookAddin1/OutlookAddin1/bin/Debug/OutlookAddin1.DLL.\r\nLOG: Attempting download of new URL file:///D:/C%23Proj/OutlookAddin1/OutlookAddin1/bin/Debug/OutlookAddin1/OutlookAddin1.DLL.\r\nLOG: Attempting download of new URL file:///D:/C%23Proj/OutlookAddin1/OutlookAddin1/bin/Debug/OutlookAddin1.EXE.\r\nLOG: Attempting download of new URL file:///D:/C%23Proj/OutlookAddin1/OutlookAddin1/bin/Debug/OutlookAddin1/OutlookAddin1.EXE.\r\n"
StackTrace:
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.HandleOnlineOffline(Exception e, String asmPath)
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadStartupAssembly(EntryPoint entryPoint, Dependency dependency, Dictionary`2 assembliesHash)
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.ConfigureAppDomain()
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadAssembliesAndConfigureAppDomain(IHostServiceProvider serviceProvider)
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.ExecuteCustomization(IHostServiceProvider serviceProvider)
Immediate windows:
Managed Debugging Assistant 'BindingFailure' has detected a problem in 'D:\Microsoft Office\OFFICE11\Outlook.exe'.
Additional Information: An assembly failed to load, returning HRESULT 0x80070002. It would have had display name 'msosec', been loaded from code base '' in binding context 0 of the AppDomain with ID 1.
See C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\sdk\bin\mdaBoilerplate.exe.mda.config for documentation.Managed Debugging Assistant 'BindingFailure' has detected a problem in 'D:\Microsoft Office\OFFICE11\Outlook.exe'.
Additional Information: An assembly failed to load, returning HRESULT 0x80070002. It would have had display name 'OutlookAddin1', been loaded from code base '' in binding context 1 of the AppDomain with ID 2.
See C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\sdk\bin\mdaBoilerplate.exe.mda.config for documentation.