Cannot start Visio ActiveX on some machines: TargetInvocationExcep

  • Thread starter walter.quirtmair
  • Start date
W

walter.quirtmair

Hi,
I have written a C# app with VS 2005 and use the Visio 2007 ActiveX control.
While it runs fine on my PC it won't run on other PCs with various exeptions.

On start of the app on a PC I got:

************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.Runtime.InteropServices.COMException
(0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM
component.
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid,
Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid
clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)


On another PC I got:

************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.AccessViolationException: Attempted
to read or write protected memory. This is often an indication that other
memory is corrupt.
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid,
Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid
clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)


What can be the reason for this? Currently I have no clue what to check and
do...
Thanks a lot for any help!
Walter
 
A

AlEdlund

Your error message does have an interesting path in it

"at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)"

al
 
W

walter.quirtmair

Thanks for your reply,
I don't know why there's this line, I've been told that all Visio 2007
installations have a valid license and are activated...
 
A

AlEdlund

Then the next step might be to check some other possible variables
(operating system, version of visio (standard vs. pro), whether GAC might
play a part in it (program interop assemblies), .net versions, etc)
al
 
W

walter.quirtmair

No, its not a trial version. It is Visio 2007 Prof. on all PCs, licensed and
activated.

The latest news I got is that on all problematic PCs there's a Oracle 10g
installed. All other PCs where Visio ActiveX can be used run Oracle 9.

Now how can Oracle have an effect on the Visio ActiveX?

Thanks all for your responses,
Walter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top