Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Task pane not loading in non Dev machine and getting error

$
0
0
I have created a com addin using Net Office and added a custom task pane (added WPF user control using ElementHost in Windows user control). I have added my functionalities and it works fine in developer machine.

I have copied all required dll files to non developer pc and am getting error saying "unexpected state in CTPFactory Available."

Getting below error:

Error

System.Runtime.InteropServices.COMException (0x80004005): See inner exception(s) for details. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Unable to create specified ActiveX control.

--- End of inner exception stack trace ---

at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)

at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

at NetOffice.Invoker.MethodReturn(COMObject comObject, String name, Object[] paramsArray)

at NetOffice.Invoker.MethodReturn(COMObject comObject, String name, Object[] paramsArray)

at NetOffice.OfficeApi.ICTPFactory.CreateCTP(String cTPAxID, String cTPTitle)

at NetOffice.WordApi.Tools.COMAddin.CTPFactoryAvailable(Object CTPFactoryInst)

OK


Error

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Unable to create specified ActiveX control.

--- End of inner exception stack trace ---

at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)

at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

at NetOffice.Invoker.MethodReturn(COMObject comObject, String name, Object[] paramsArray)

OK


Error

System.Runtime.InteropServices.COMException (0x80004005): Unable to create specified ActiveX control.

OK


Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>