Visio Drawing Control with VC# 2005

N

Naveen

Has anyone got the Visio Drawing Control working with VC# 2005 and .NET
Framework 2.0?

I created a simple windows application project in VC# 2005 and added the
Visio drawing control to a win form. Nothing fancy at all.....

When I run it I receive the following COM Exception

Class not registered

This occurs on the following endinit() line in the source code generated:

((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1)).EndInit();

Am I missing something here?

I saw such a post in various newsgroups....but have found no solution yet.

Is there any product update I am missing to either VC# 2005 or .Net 2.0?

Any suggestion is helpful at this point since I am really stuck....

Thank you in advance....
 
M

Mark Wheeler

Hi Naveen,

have you got the Primary Interface Assembly (PIA) installed?

Mark
 
N

Naveen

Hey Mark,

Yes I do have the PIAs installed. Following is what happens when I work
with the Visio Drawing control and drop it on a winform in C# 2005.

It creates the following three references to my project:
1) Microsoft.Office.Interop.Visio
2) Microsoft.Office.Interop.VisOcx
(the path of both of these is in Windows\assembly\GAC)
3) The ActiveX wrapper - AxVisOcx located in the same directory as the
project

I run the project after I drop the visio drawing control on the form ...and
get the class not registered COM exception thrown at the endinit() line.

Later, I found that the visio drawing control itself (VISOCX.DLL not the
PIAs) has no mention in the windows registry. I tried to register it myself
using regsvr32 but got the error DllRegisterServer failed to
register...Error: 0x80004001

Shouldnt the VISOCX.DLL be registered too? If so how can I do so.....

What else can I try to do? Thanks for your assistance....

Naveen.
 

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