System.Windows.Forms.AxHost.CreateWithoutLicense
(1)
System.Windows.Forms.AxHost.CreateInstanceCore
(1)
System.Windows.Forms.AxHost.CreateWithLicense
(1)
System.Windows.Forms.AxHost.TransitionUpTo
(1)
System.Windows.Forms.AxHost.GetOcxCreate
(1)
System.Windows.Forms.AxHost.CreateInstance
(1)
System.Windows.Forms.AxHost.CreateHandle
(1)
System.Windows.Forms.AxHost.EndInit
(1)
Visio 2007 Activate Launch Condition
Asked By Marx
19-Mar-10 09:41 AM

Hello,
I am looking to determine (by registry or otherwise) if Visio has been
activated. Is this possible?
e.g. I get the following exception loading the Visio AxDrawing Control for
Visio 2007 when Visio has not been activated:
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)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
Thanks,
M
I think I have also seen that one when you try to compile a x64 bit
AlEdlund replied to Marx
19-Mar-10 10:40 PM
I think I have also seen that one when you try to compile a x64 bit version
(prior to v2010 only x32 was available). It also happened when I tried
compile to 'any' instead of x86. Another user found it by attempting to
build with a trial version, rather than a licensed copy.
I have not chased the v2007 version down, but I am pretty sure in the v2010
version, it calls home to MS to see if it is legitimate.
al
I was actually trying to isolate the problem from an earlier post
Marx replied to AlEdlund
24-Mar-10 01:58 PM
I was actually trying to isolate the problem from an earlier post (error
running 64-bit).
In this case I am creating a 32-bit installer with the application compiled
as x86 and a fully licensed version of v2007 on the build machine.
The target (deployment) 32 bit machine had an unactivated trial version.
The problem went away after activating the trial license. I have yet to test
with an unactivated full license of v2007 on the deployment machine.
Thanks,
M