Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error retrieving Outlook 2010 com

218 views
Skip to first unread message

Johnny

unread,
Nov 27, 2010, 2:50:21 PM11/27/10
to
Hello NG

When I in visual studio 2010 on a windows 7 x64 machine wants to
integrate with Outlook 2010 I'll get this error:
System.Runtime.InteropServices.COMException was unhandled
Message=Retrieving the COM class factory for component with CLSID
{0006F03A-0000-0000-C000-000000000046} failed due to the following
error: 80080005 Server execution failed (Exception from HRESULT:
0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
Source=mscorlib
ErrorCode=-2146959355
StackTrace:
at
System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType
objectType)
at
System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType
serverType)
at
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType
serverType, Object[] props, Boolean bNewObj)
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type,
Boolean publicOnly, Boolean noCheck, Boolean& canBeCached,
RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,
Boolean skipCheckThis, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean
publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis,
Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean
nonPublic)
at System.Activator.CreateInstance(Type type)
at Emdesoft.Tests.CS.MSO.Linked.Core.Tests() in C:\Users\jej
\documents\visual studio 2010\Projects
\ConsoleApplication4\Emdesoft.Tests.CS.MSO.Linked\Core.cs:line 19
at ConsoleApplication4.Module1.Main() in c:\users\jej\documents
\visual studio 2010\Projects
\ConsoleApplication4\ConsoleApplication4\Module1.vb:line 4
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile,
Evidence assemblySecurity, String[] args)
at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object
state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

I have added a reference to the Outlook version 14 component and are
using the code:

OL.Application app = new OL.Application(); <-- this cause
the error

It only happens when Outlook is running, if I stop Outlook application
and run the code again, i works just fine.

Kind regards

Johnny E. Jensen


0 new messages