Visio ActiveX control assembly causing a problem

L

Lee Newson

Hi,

I have just written my first application using VB.NET. The app works fine
when i am running it within .NET for debugging purposes, however when i try
to run the app from the .exe file that .NET creates i get the following
error message:

"An unhandled exception of type 'System.IO.FileNotFoundException' occurred
in VisioTimeline.exe

Additional information: File or assembly name AxInterop.VisOcx, or one of
its dependencies, was not found."


In VS.NET this file is referenced when you look in the solution explorer (as
AxInterop.VisOcx), however when you look at the definition for this it looks
like this:

AxMicrosoft.Office.Interop.VisOcx

I assume that this .dll file was supposed to be added to the GAC when i
installed either the VisioViewer or the Visio SDK. It hasn't and when i try
to add it, it throws another error saying that the file is not strongly
named!!

after a lot of messing about the i have finally managed to get the program
to use the JITDebugging and it has finally showed me that the app falls over
when trying to initialize the components on the form (The visio activex
control included).

Does anyone know how i can fix this?? i have tried looking on the net for
the correct file but cant seem to find it anywhere.

cheers for any and all help it is greatly appreciated

regards

Lee
 
J

jeff

Probably you are trying to run your EXE on a computer where the
complete Visio product has not been installed and licensed.

The Visio ActiveX control only works when the system has the full
installation of Visio also installed along with a Visio license for
that machine. It means you must buy for each end-user, or have
end-user himself buy, a Visio license in order to use your application.
The alternative is to use another ActiveX component that does not
have this requirement


* * Please include a copy of this message with your reply

Jeff Bennett
Jeff @ Bennet-Tec.Com

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com

=================== ===================
 
L

Lee Newson

Hi Jeff,

I wish this was the case, however it isn't. after trying to deploy the app
to various machines with different apps it would appear the the app will
only work on machines which have VS.NET fully installed... whether visio
was installed or not did not make a difference.

This is annoying because the machine this app needs to be installed on does
not have VS.NET installed only the redistributable package (the .NET CLR)
and we can't justify purchasing another VS license just to run an app.

I think this is going to be a case for Microsoft... MSDN licenses are
wonderful things at times!

cheers for the help

Lee
 

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