Can't create ActiveX control for Visio 2007 when build# different

M

martin

Hi,

I've got Visio 2007 Enterprise installed and so does my colleage. I've
written a C# app using the Visio 2007 activeX control and it works fine on my
machine. On his machine the same app crashes though with a COMException
saying REGDB_E_CLASSNOTREG (HRESULT 0x80040154).

Now, I have Visio version 12.0.4518.1004 but my friend has version
12.0.4518.1014 (single digit difference).

I've never put in a specific reference to any version in my code and I've
looked around in the generate winforms *.designer.cs files and I can't find
any explicit references there either...

How can I work around this problem? I would like my C# app to run on any
system where any version of Visio 2007 is installed.


Regards,
Martin
 
J

JuneTheSecond

My idea is for you to gather information in the web with keywors of error
massage and visio.
 
B

Barb Way

For instance, I found one article that speaks to the specific error code :
http://support.microsoft.com/kb/302375/en-us
Essentially, it may be caused by having an older version of MDAC on the
problem computer.


Barb Way
Product Support - Visio
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
 
B

Barb Way

Sorry for second response - as you pointed out, the source machine (on
which you compiled) has a different build of Visio. The build number
ending in 1014 is the final release of Visio 2007 (both Pro and Std), while
the 1004 build was a pre-release build.

You will need to remove the pre-release build of Visio (and Office) 2007
and perform a clean install of the final build versions in order to get a
clean compilation of your project.

If you need assistance in getting the pre-release bits removed, use this
article as a guide to help you get the pieces removed:
http://support.microsoft.com/kb/928218/en-us

Barb Way
Product Support - Visio
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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