Visio 2007 Activate Launch Condition

M

Marx

Hello,

I'm 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
 
A

AlEdlund

I think I've 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 haven't chased the v2007 version down, but I'm pretty sure in the v2010
version, it calls home to MS to see if it is legitimate.

al
 
M

Marx

I was actually trying to isolate the problem from an earlier post (error
running 64-bit).

In this case I'm 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've yet to test
with an unactivated full license of v2007 on the deployment machine.

Thanks,

M
 

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