473,320 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Windows form application problem

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."

I have tried removing the AxInterop.VisOcx refernce from the app, rebuilding
it then putting the reference back into the solution and rebuilding it again
but i still get the same error.

When the app tries to run and consequently debugs, the disassembly is
displayed but this is in machine code, which although i touched on at uni,
doesn't mean a thing to me.

Can anyone help??

Thanks for any and all help, it is greatly appreciated

reagrds

Lee
Nov 21 '05 #1
13 3904
How is the AxInterop.VisOcx referenced? Are you certain it is in the
correct location for the compiled version of your app?

Do you include it in the setup of your app or have you just compiled the
project and attempted to run the exe from the bin folder?
--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...
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."

I have tried removing the AxInterop.VisOcx refernce from the app,
rebuilding
it then putting the reference back into the solution and rebuilding it
again
but i still get the same error.

When the app tries to run and consequently debugs, the disassembly is
displayed but this is in machine code, which although i touched on at uni,
doesn't mean a thing to me.

Can anyone help??

Thanks for any and all help, it is greatly appreciated

reagrds

Lee

Nov 21 '05 #2
Hi Gerry,

It is referenced in the references section of the solution explorer (and i
have referenced it in the coed by "import AxVisOcx =
AxMicrosoft.Office.Interop.VisOcx"

After speaking with a work colleague we think the problem may have something
to do witht he assembly not being in the GAC... when trying to add this
assembly to the GAC i get an error message saying that it is not strongly
named.

I believe that the assembly came with the Visio 2003 SDK.

Unfortunately i do not have any more information. This is the first time i
have created an application using Visual Studio and the first time using hte
Visio ActiveX control so it has got me a little stumped.

Compiling and trying to run the program form the bin folder was the first
thing i did (assuming that it would work). after that i removed the
reference, rebuilt, re-referenced and rebuilt.. still no luck.

Thanks for you help.

regards

Lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:Oz**************@TK2MSFTNGP10.phx.gbl...
How is the AxInterop.VisOcx referenced? Are you certain it is in the
correct location for the compiled version of your app?

Do you include it in the setup of your app or have you just compiled the
project and attempted to run the exe from the bin folder?
--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...
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."

I have tried removing the AxInterop.VisOcx refernce from the app,
rebuilding
it then putting the reference back into the solution and rebuilding it
again
but i still get the same error.

When the app tries to run and consequently debugs, the disassembly is
displayed but this is in machine code, which although i touched on at uni, doesn't mean a thing to me.

Can anyone help??

Thanks for any and all help, it is greatly appreciated

reagrds

Lee


Nov 21 '05 #3
I'm not able to find the ocx in the SDK and I'm not sure you will find and
ActiveX control in the 2003 SDK anyway. Although there is a COM based
object library that installs with the SDK, I cannot locate the control you
are referring to.

I have yet to develop anything in .NET for Visio so I may not the be the
best person to help here but I will try nonetheless.

Here is a for a web site for you to take a look at. Althouth the site is
about C#, the code samples are in VB for this article.

I think you may find part of your answer in the fact that you may not have
run tlbimp.exe on the ocx file to apply a COM wrapper around it.

This article explains how to do just that and then how to isntall it into
the GAC by using the sn.exe utility to create a strongly named assembly.

http://www.csharpfriends.com/Article...x?articleID=43

Hope it helps.

Gerry
"Lee Newson" <le********@hotmail.com> wrote in message
news:u%******************@TK2MSFTNGP10.phx.gbl...
Hi Gerry,

It is referenced in the references section of the solution explorer (and i
have referenced it in the coed by "import AxVisOcx =
AxMicrosoft.Office.Interop.VisOcx"

After speaking with a work colleague we think the problem may have
something
to do witht he assembly not being in the GAC... when trying to add this
assembly to the GAC i get an error message saying that it is not strongly
named.

I believe that the assembly came with the Visio 2003 SDK.

Unfortunately i do not have any more information. This is the first time
i
have created an application using Visual Studio and the first time using
hte
Visio ActiveX control so it has got me a little stumped.

Compiling and trying to run the program form the bin folder was the first
thing i did (assuming that it would work). after that i removed the
reference, rebuilt, re-referenced and rebuilt.. still no luck.

Thanks for you help.

regards

Lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:Oz**************@TK2MSFTNGP10.phx.gbl...
How is the AxInterop.VisOcx referenced? Are you certain it is in the
correct location for the compiled version of your app?

Do you include it in the setup of your app or have you just compiled the
project and attempted to run the exe from the bin folder?
--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...
> 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."
>
> I have tried removing the AxInterop.VisOcx refernce from the app,
> rebuilding
> it then putting the reference back into the solution and rebuilding it
> again
> but i still get the same error.
>
> When the app tries to run and consequently debugs, the disassembly is
> displayed but this is in machine code, which although i touched on at uni, > doesn't mean a thing to me.
>
> Can anyone help??
>
> Thanks for any and all help, it is greatly appreciated
>
> reagrds
>
> Lee
>
>



Nov 21 '05 #4
Hi Gerry,

I have looked at the article and tried to run the tlbimp.exe on the ocx
file, however i get an error saying that the file is not a valid type
library.

Lee


"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP15.phx.gbl...
I'm not able to find the ocx in the SDK and I'm not sure you will find and
ActiveX control in the 2003 SDK anyway. Although there is a COM based
object library that installs with the SDK, I cannot locate the control you
are referring to.

I have yet to develop anything in .NET for Visio so I may not the be the
best person to help here but I will try nonetheless.

Here is a for a web site for you to take a look at. Althouth the site is
about C#, the code samples are in VB for this article.

I think you may find part of your answer in the fact that you may not have
run tlbimp.exe on the ocx file to apply a COM wrapper around it.

This article explains how to do just that and then how to isntall it into
the GAC by using the sn.exe utility to create a strongly named assembly.

http://www.csharpfriends.com/Article...x?articleID=43

Hope it helps.

Gerry
"Lee Newson" <le********@hotmail.com> wrote in message
news:u%******************@TK2MSFTNGP10.phx.gbl...
Hi Gerry,

It is referenced in the references section of the solution explorer (and i have referenced it in the coed by "import AxVisOcx =
AxMicrosoft.Office.Interop.VisOcx"

After speaking with a work colleague we think the problem may have
something
to do witht he assembly not being in the GAC... when trying to add this
assembly to the GAC i get an error message saying that it is not strongly named.

I believe that the assembly came with the Visio 2003 SDK.

Unfortunately i do not have any more information. This is the first time i
have created an application using Visual Studio and the first time using hte
Visio ActiveX control so it has got me a little stumped.

Compiling and trying to run the program form the bin folder was the first thing i did (assuming that it would work). after that i removed the
reference, rebuilt, re-referenced and rebuilt.. still no luck.

Thanks for you help.

regards

Lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:Oz**************@TK2MSFTNGP10.phx.gbl...
How is the AxInterop.VisOcx referenced? Are you certain it is in the
correct location for the compiled version of your app?

Do you include it in the setup of your app or have you just compiled the project and attempted to run the exe from the bin folder?
--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Or**************@TK2MSFTNGP14.phx.gbl...
> 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."
>
> I have tried removing the AxInterop.VisOcx refernce from the app,
> rebuilding
> it then putting the reference back into the solution and rebuilding

it > again
> but i still get the same error.
>
> When the app tries to run and consequently debugs, the disassembly is
> displayed but this is in machine code, which although i touched on at

uni,
> doesn't mean a thing to me.
>
> Can anyone help??
>
> Thanks for any and all help, it is greatly appreciated
>
> reagrds
>
> Lee
>
>



Nov 21 '05 #5
DOH!

I thought I saw just plain .ocx as the extension. Sorry.

Now I have to try to find that control and see what I can come up with.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
Hi Gerry,

I have looked at the article and tried to run the tlbimp.exe on the ocx
file, however i get an error saying that the file is not a valid type
library.

Lee


"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP15.phx.gbl...
I'm not able to find the ocx in the SDK and I'm not sure you will find
and
ActiveX control in the 2003 SDK anyway. Although there is a COM based
object library that installs with the SDK, I cannot locate the control
you
are referring to.

I have yet to develop anything in .NET for Visio so I may not the be the
best person to help here but I will try nonetheless.

Here is a for a web site for you to take a look at. Althouth the site is
about C#, the code samples are in VB for this article.

I think you may find part of your answer in the fact that you may not
have
run tlbimp.exe on the ocx file to apply a COM wrapper around it.

This article explains how to do just that and then how to isntall it into
the GAC by using the sn.exe utility to create a strongly named assembly.

http://www.csharpfriends.com/Article...x?articleID=43

Hope it helps.

Gerry
"Lee Newson" <le********@hotmail.com> wrote in message
news:u%******************@TK2MSFTNGP10.phx.gbl...
> Hi Gerry,
>
> It is referenced in the references section of the solution explorer
> (and i > have referenced it in the coed by "import AxVisOcx =
> AxMicrosoft.Office.Interop.VisOcx"
>
> After speaking with a work colleague we think the problem may have
> something
> to do witht he assembly not being in the GAC... when trying to add this
> assembly to the GAC i get an error message saying that it is not strongly > named.
>
> I believe that the assembly came with the Visio 2003 SDK.
>
> Unfortunately i do not have any more information. This is the first time > i
> have created an application using Visual Studio and the first time
> using > hte
> Visio ActiveX control so it has got me a little stumped.
>
> Compiling and trying to run the program form the bin folder was the first > thing i did (assuming that it would work). after that i removed the
> reference, rebuilt, re-referenced and rebuilt.. still no luck.
>
> Thanks for you help.
>
> regards
>
> Lee
>
>
>
> "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> news:Oz**************@TK2MSFTNGP10.phx.gbl...
>> How is the AxInterop.VisOcx referenced? Are you certain it is in the
>> correct location for the compiled version of your app?
>>
>> Do you include it in the setup of your app or have you just compiled the >> project and attempted to run the exe from the bin folder?
>>
>>
>> --
>> Gerry O'Brien
>> Visual Basic.NET MVP
>>
>>
>> "Lee Newson" <le********@hotmail.com> wrote in message
>> news:Or**************@TK2MSFTNGP14.phx.gbl...
>> > 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."
>> >
>> > I have tried removing the AxInterop.VisOcx refernce from the app,
>> > rebuilding
>> > it then putting the reference back into the solution and rebuilding it >> > again
>> > but i still get the same error.
>> >
>> > When the app tries to run and consequently debugs, the disassembly
>> > is
>> > displayed but this is in machine code, which although i touched on
>> > at
> uni,
>> > doesn't mean a thing to me.
>> >
>> > Can anyone help??
>> >
>> > Thanks for any and all help, it is greatly appreciated
>> >
>> > reagrds
>> >
>> > Lee
>> >
>> >
>>
>>
>
>



Nov 21 '05 #6
Hi Gerry,

I have just tried creating a basic form that only has the Visio Drawing
control on it... to do this i added the component to the form toolbox (this
is the Microsoft.Office.Interop.VisOcx.dll type library) when i add the
drawing control to the form it seems to automatically create the
AxInterop.VisOcx.dll file... and it is this file that is causing the problem
when i try to run the compiled exe.

lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:%2*****************@TK2MSFTNGP14.phx.gbl...
DOH!

I thought I saw just plain .ocx as the extension. Sorry.

Now I have to try to find that control and see what I can come up with.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
Hi Gerry,

I have looked at the article and tried to run the tlbimp.exe on the ocx
file, however i get an error saying that the file is not a valid type
library.

Lee


"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP15.phx.gbl...
I'm not able to find the ocx in the SDK and I'm not sure you will find
and
ActiveX control in the 2003 SDK anyway. Although there is a COM based
object library that installs with the SDK, I cannot locate the control
you
are referring to.

I have yet to develop anything in .NET for Visio so I may not the be the best person to help here but I will try nonetheless.

Here is a for a web site for you to take a look at. Althouth the site is about C#, the code samples are in VB for this article.

I think you may find part of your answer in the fact that you may not
have
run tlbimp.exe on the ocx file to apply a COM wrapper around it.

This article explains how to do just that and then how to isntall it into the GAC by using the sn.exe utility to create a strongly named assembly.
http://www.csharpfriends.com/Article...x?articleID=43

Hope it helps.

Gerry
"Lee Newson" <le********@hotmail.com> wrote in message
news:u%******************@TK2MSFTNGP10.phx.gbl...
> Hi Gerry,
>
> It is referenced in the references section of the solution explorer
> (and

i
> have referenced it in the coed by "import AxVisOcx =
> AxMicrosoft.Office.Interop.VisOcx"
>
> After speaking with a work colleague we think the problem may have
> something
> to do witht he assembly not being in the GAC... when trying to add this > assembly to the GAC i get an error message saying that it is not

strongly
> named.
>
> I believe that the assembly came with the Visio 2003 SDK.
>
> Unfortunately i do not have any more information. This is the first

time
> i
> have created an application using Visual Studio and the first time
> using

> hte
> Visio ActiveX control so it has got me a little stumped.
>
> Compiling and trying to run the program form the bin folder was the

first
> thing i did (assuming that it would work). after that i removed the
> reference, rebuilt, re-referenced and rebuilt.. still no luck.
>
> Thanks for you help.
>
> regards
>
> Lee
>
>
>
> "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> news:Oz**************@TK2MSFTNGP10.phx.gbl...
>> How is the AxInterop.VisOcx referenced? Are you certain it is in the >> correct location for the compiled version of your app?
>>
>> Do you include it in the setup of your app or have you just compiled

the
>> project and attempted to run the exe from the bin folder?
>>
>>
>> --
>> Gerry O'Brien
>> Visual Basic.NET MVP
>>
>>
>> "Lee Newson" <le********@hotmail.com> wrote in message
>> news:Or**************@TK2MSFTNGP14.phx.gbl...
>> > 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."
>> >
>> > I have tried removing the AxInterop.VisOcx refernce from the app,
>> > rebuilding
>> > it then putting the reference back into the solution and
rebuilding it
>> > again
>> > but i still get the same error.
>> >
>> > When the app tries to run and consequently debugs, the disassembly
>> > is
>> > displayed but this is in machine code, which although i touched on
>> > at
> uni,
>> > doesn't mean a thing to me.
>> >
>> > Can anyone help??
>> >
>> > Thanks for any and all help, it is greatly appreciated
>> >
>> > reagrds
>> >
>> > Lee
>> >
>> >
>>
>>
>
>



Nov 21 '05 #7
Ok, again partly my own stupidity on this one. I was looking at adding a
reference in the referece section manually.

Instead, I added the control to the toolbox. Dropped it on the form and
here is what is in my references section;

AxVisOcx
Visio
VisOcx

I'm not doing anything with the control at all, just placed it on the form.

Ran the app from the IDE, it opens and displays the Visio drawing window.

Compiled the app, ran the exe from the bin/debug folder, and all works well.

I notice that the AxInterop.VisOcx.dll is in the bin/debug folder. Is
yours?

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Oh*************@TK2MSFTNGP15.phx.gbl...
Hi Gerry,

I have just tried creating a basic form that only has the Visio Drawing
control on it... to do this i added the component to the form toolbox
(this
is the Microsoft.Office.Interop.VisOcx.dll type library) when i add the
drawing control to the form it seems to automatically create the
AxInterop.VisOcx.dll file... and it is this file that is causing the
problem
when i try to run the compiled exe.

lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:%2*****************@TK2MSFTNGP14.phx.gbl...
DOH!

I thought I saw just plain .ocx as the extension. Sorry.

Now I have to try to find that control and see what I can come up with.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
> Hi Gerry,
>
> I have looked at the article and tried to run the tlbimp.exe on the ocx
> file, however i get an error saying that the file is not a valid type
> library.
>
> Lee
>
>
>
>
> "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> news:uW**************@TK2MSFTNGP15.phx.gbl...
>> I'm not able to find the ocx in the SDK and I'm not sure you will find
>> and
>> ActiveX control in the 2003 SDK anyway. Although there is a COM based
>> object library that installs with the SDK, I cannot locate the control
>> you
>> are referring to.
>>
>> I have yet to develop anything in .NET for Visio so I may not the be the >> best person to help here but I will try nonetheless.
>>
>> Here is a for a web site for you to take a look at. Althouth the site is >> about C#, the code samples are in VB for this article.
>>
>> I think you may find part of your answer in the fact that you may not
>> have
>> run tlbimp.exe on the ocx file to apply a COM wrapper around it.
>>
>> This article explains how to do just that and then how to isntall it into >> the GAC by using the sn.exe utility to create a strongly named assembly. >>
>> http://www.csharpfriends.com/Article...x?articleID=43
>>
>> Hope it helps.
>>
>> Gerry
>>
>>
>> "Lee Newson" <le********@hotmail.com> wrote in message
>> news:u%******************@TK2MSFTNGP10.phx.gbl...
>> > Hi Gerry,
>> >
>> > It is referenced in the references section of the solution explorer
>> > (and
> i
>> > have referenced it in the coed by "import AxVisOcx =
>> > AxMicrosoft.Office.Interop.VisOcx"
>> >
>> > After speaking with a work colleague we think the problem may have
>> > something
>> > to do witht he assembly not being in the GAC... when trying to add this >> > assembly to the GAC i get an error message saying that it is not
> strongly
>> > named.
>> >
>> > I believe that the assembly came with the Visio 2003 SDK.
>> >
>> > Unfortunately i do not have any more information. This is the first
> time
>> > i
>> > have created an application using Visual Studio and the first time
>> > using
>
>> > hte
>> > Visio ActiveX control so it has got me a little stumped.
>> >
>> > Compiling and trying to run the program form the bin folder was the
> first
>> > thing i did (assuming that it would work). after that i removed the
>> > reference, rebuilt, re-referenced and rebuilt.. still no luck.
>> >
>> > Thanks for you help.
>> >
>> > regards
>> >
>> > Lee
>> >
>> >
>> >
>> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> > news:Oz**************@TK2MSFTNGP10.phx.gbl...
>> >> How is the AxInterop.VisOcx referenced? Are you certain it is in the >> >> correct location for the compiled version of your app?
>> >>
>> >> Do you include it in the setup of your app or have you just
>> >> compiled
> the
>> >> project and attempted to run the exe from the bin folder?
>> >>
>> >>
>> >> --
>> >> Gerry O'Brien
>> >> Visual Basic.NET MVP
>> >>
>> >>
>> >> "Lee Newson" <le********@hotmail.com> wrote in message
>> >> news:Or**************@TK2MSFTNGP14.phx.gbl...
>> >> > 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."
>> >> >
>> >> > I have tried removing the AxInterop.VisOcx refernce from the app,
>> >> > rebuilding
>> >> > it then putting the reference back into the solution and rebuilding > it
>> >> > again
>> >> > but i still get the same error.
>> >> >
>> >> > When the app tries to run and consequently debugs, the
>> >> > disassembly
>> >> > is
>> >> > displayed but this is in machine code, which although i touched
>> >> > on
>> >> > at
>> > uni,
>> >> > doesn't mean a thing to me.
>> >> >
>> >> > Can anyone help??
>> >> >
>> >> > Thanks for any and all help, it is greatly appreciated
>> >> >
>> >> > reagrds
>> >> >
>> >> > Lee
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 21 '05 #8
Yes, this file does get created in the bin folder, the problem comes when i
try to deply the app to a different machine which has the .NET
redistibutable package installed.

I am wondering now if somehow i have to change the path to the file from
f:\...\bin\AxInterop.VisOcx.dll to something else... but i am unsure... as i
said initially this is the first time i have created either a windows app or
programmed using the visio drawing control.

Lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:ur**************@tk2msftngp13.phx.gbl...
Ok, again partly my own stupidity on this one. I was looking at adding a
reference in the referece section manually.

Instead, I added the control to the toolbox. Dropped it on the form and
here is what is in my references section;

AxVisOcx
Visio
VisOcx

I'm not doing anything with the control at all, just placed it on the form.
Ran the app from the IDE, it opens and displays the Visio drawing window.

Compiled the app, ran the exe from the bin/debug folder, and all works well.
I notice that the AxInterop.VisOcx.dll is in the bin/debug folder. Is
yours?

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Oh*************@TK2MSFTNGP15.phx.gbl...
Hi Gerry,

I have just tried creating a basic form that only has the Visio Drawing
control on it... to do this i added the component to the form toolbox
(this
is the Microsoft.Office.Interop.VisOcx.dll type library) when i add the
drawing control to the form it seems to automatically create the
AxInterop.VisOcx.dll file... and it is this file that is causing the
problem
when i try to run the compiled exe.

lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:%2*****************@TK2MSFTNGP14.phx.gbl...
DOH!

I thought I saw just plain .ocx as the extension. Sorry.

Now I have to try to find that control and see what I can come up with.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
> Hi Gerry,
>
> I have looked at the article and tried to run the tlbimp.exe on the ocx > file, however i get an error saying that the file is not a valid type
> library.
>
> Lee
>
>
>
>
> "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> news:uW**************@TK2MSFTNGP15.phx.gbl...
>> I'm not able to find the ocx in the SDK and I'm not sure you will find >> and
>> ActiveX control in the 2003 SDK anyway. Although there is a COM based >> object library that installs with the SDK, I cannot locate the control >> you
>> are referring to.
>>
>> I have yet to develop anything in .NET for Visio so I may not the be

the
>> best person to help here but I will try nonetheless.
>>
>> Here is a for a web site for you to take a look at. Althouth the site
is
>> about C#, the code samples are in VB for this article.
>>
>> I think you may find part of your answer in the fact that you may

not >> have
>> run tlbimp.exe on the ocx file to apply a COM wrapper around it.
>>
>> This article explains how to do just that and then how to isntall it

into
>> the GAC by using the sn.exe utility to create a strongly named

assembly.
>>
>> http://www.csharpfriends.com/Article...x?articleID=43
>>
>> Hope it helps.
>>
>> Gerry
>>
>>
>> "Lee Newson" <le********@hotmail.com> wrote in message
>> news:u%******************@TK2MSFTNGP10.phx.gbl...
>> > Hi Gerry,
>> >
>> > It is referenced in the references section of the solution explorer >> > (and
> i
>> > have referenced it in the coed by "import AxVisOcx =
>> > AxMicrosoft.Office.Interop.VisOcx"
>> >
>> > After speaking with a work colleague we think the problem may have
>> > something
>> > to do witht he assembly not being in the GAC... when trying to add

this
>> > assembly to the GAC i get an error message saying that it is not
> strongly
>> > named.
>> >
>> > I believe that the assembly came with the Visio 2003 SDK.
>> >
>> > Unfortunately i do not have any more information. This is the first > time
>> > i
>> > have created an application using Visual Studio and the first time
>> > using
>
>> > hte
>> > Visio ActiveX control so it has got me a little stumped.
>> >
>> > Compiling and trying to run the program form the bin folder was the > first
>> > thing i did (assuming that it would work). after that i removed the >> > reference, rebuilt, re-referenced and rebuilt.. still no luck.
>> >
>> > Thanks for you help.
>> >
>> > regards
>> >
>> > Lee
>> >
>> >
>> >
>> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> > news:Oz**************@TK2MSFTNGP10.phx.gbl...
>> >> How is the AxInterop.VisOcx referenced? Are you certain it is in

the
>> >> correct location for the compiled version of your app?
>> >>
>> >> Do you include it in the setup of your app or have you just
>> >> compiled
> the
>> >> project and attempted to run the exe from the bin folder?
>> >>
>> >>
>> >> --
>> >> Gerry O'Brien
>> >> Visual Basic.NET MVP
>> >>
>> >>
>> >> "Lee Newson" <le********@hotmail.com> wrote in message
>> >> news:Or**************@TK2MSFTNGP14.phx.gbl...
>> >> > 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."
>> >> >
>> >> > I have tried removing the AxInterop.VisOcx refernce from the app, >> >> > rebuilding
>> >> > it then putting the reference back into the solution and

rebuilding
> it
>> >> > again
>> >> > but i still get the same error.
>> >> >
>> >> > When the app tries to run and consequently debugs, the
>> >> > disassembly
>> >> > is
>> >> > displayed but this is in machine code, which although i touched
>> >> > on
>> >> > at
>> > uni,
>> >> > doesn't mean a thing to me.
>> >> >
>> >> > Can anyone help??
>> >> >
>> >> > Thanks for any and all help, it is greatly appreciated
>> >> >
>> >> > reagrds
>> >> >
>> >> > Lee
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 21 '05 #9
Just make sure that you have actually added that file in setup project so
that it will be copied to the correct folder when the app is deployed on
another machine. That is likely the problem you are having.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:OR*************@TK2MSFTNGP15.phx.gbl...
Yes, this file does get created in the bin folder, the problem comes when
i
try to deply the app to a different machine which has the .NET
redistibutable package installed.

I am wondering now if somehow i have to change the path to the file from
f:\...\bin\AxInterop.VisOcx.dll to something else... but i am unsure... as
i
said initially this is the first time i have created either a windows app
or
programmed using the visio drawing control.

Lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:ur**************@tk2msftngp13.phx.gbl...
Ok, again partly my own stupidity on this one. I was looking at adding a
reference in the referece section manually.

Instead, I added the control to the toolbox. Dropped it on the form and
here is what is in my references section;

AxVisOcx
Visio
VisOcx

I'm not doing anything with the control at all, just placed it on the

form.

Ran the app from the IDE, it opens and displays the Visio drawing window.

Compiled the app, ran the exe from the bin/debug folder, and all works

well.

I notice that the AxInterop.VisOcx.dll is in the bin/debug folder. Is
yours?

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Oh*************@TK2MSFTNGP15.phx.gbl...
> Hi Gerry,
>
> I have just tried creating a basic form that only has the Visio Drawing
> control on it... to do this i added the component to the form toolbox
> (this
> is the Microsoft.Office.Interop.VisOcx.dll type library) when i add the
> drawing control to the form it seems to automatically create the
> AxInterop.VisOcx.dll file... and it is this file that is causing the
> problem
> when i try to run the compiled exe.
>
>
>
> lee
>
>
>
>
>
> "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> news:%2*****************@TK2MSFTNGP14.phx.gbl...
>> DOH!
>>
>> I thought I saw just plain .ocx as the extension. Sorry.
>>
>> Now I have to try to find that control and see what I can come up
>> with.
>>
>> --
>> Gerry O'Brien
>> Visual Basic.NET MVP
>>
>>
>> "Lee Newson" <le********@hotmail.com> wrote in message
>> news:ua**************@TK2MSFTNGP14.phx.gbl...
>> > Hi Gerry,
>> >
>> > I have looked at the article and tried to run the tlbimp.exe on the ocx >> > file, however i get an error saying that the file is not a valid
>> > type
>> > library.
>> >
>> > Lee
>> >
>> >
>> >
>> >
>> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> > news:uW**************@TK2MSFTNGP15.phx.gbl...
>> >> I'm not able to find the ocx in the SDK and I'm not sure you will find >> >> and
>> >> ActiveX control in the 2003 SDK anyway. Although there is a COM based >> >> object library that installs with the SDK, I cannot locate the control >> >> you
>> >> are referring to.
>> >>
>> >> I have yet to develop anything in .NET for Visio so I may not the
>> >> be
> the
>> >> best person to help here but I will try nonetheless.
>> >>
>> >> Here is a for a web site for you to take a look at. Althouth the site > is
>> >> about C#, the code samples are in VB for this article.
>> >>
>> >> I think you may find part of your answer in the fact that you may not >> >> have
>> >> run tlbimp.exe on the ocx file to apply a COM wrapper around it.
>> >>
>> >> This article explains how to do just that and then how to isntall
>> >> it
> into
>> >> the GAC by using the sn.exe utility to create a strongly named
> assembly.
>> >>
>> >> http://www.csharpfriends.com/Article...x?articleID=43
>> >>
>> >> Hope it helps.
>> >>
>> >> Gerry
>> >>
>> >>
>> >> "Lee Newson" <le********@hotmail.com> wrote in message
>> >> news:u%******************@TK2MSFTNGP10.phx.gbl...
>> >> > Hi Gerry,
>> >> >
>> >> > It is referenced in the references section of the solution explorer >> >> > (and
>> > i
>> >> > have referenced it in the coed by "import AxVisOcx =
>> >> > AxMicrosoft.Office.Interop.VisOcx"
>> >> >
>> >> > After speaking with a work colleague we think the problem may
>> >> > have
>> >> > something
>> >> > to do witht he assembly not being in the GAC... when trying to
>> >> > add
> this
>> >> > assembly to the GAC i get an error message saying that it is not
>> > strongly
>> >> > named.
>> >> >
>> >> > I believe that the assembly came with the Visio 2003 SDK.
>> >> >
>> >> > Unfortunately i do not have any more information. This is the first >> > time
>> >> > i
>> >> > have created an application using Visual Studio and the first
>> >> > time
>> >> > using
>> >
>> >> > hte
>> >> > Visio ActiveX control so it has got me a little stumped.
>> >> >
>> >> > Compiling and trying to run the program form the bin folder was the >> > first
>> >> > thing i did (assuming that it would work). after that i removed the >> >> > reference, rebuilt, re-referenced and rebuilt.. still no luck.
>> >> >
>> >> > Thanks for you help.
>> >> >
>> >> > regards
>> >> >
>> >> > Lee
>> >> >
>> >> >
>> >> >
>> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> >> > news:Oz**************@TK2MSFTNGP10.phx.gbl...
>> >> >> How is the AxInterop.VisOcx referenced? Are you certain it is
>> >> >> in
> the
>> >> >> correct location for the compiled version of your app?
>> >> >>
>> >> >> Do you include it in the setup of your app or have you just
>> >> >> compiled
>> > the
>> >> >> project and attempted to run the exe from the bin folder?
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Gerry O'Brien
>> >> >> Visual Basic.NET MVP
>> >> >>
>> >> >>
>> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
>> >> >> news:Or**************@TK2MSFTNGP14.phx.gbl...
>> >> >> > 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."
>> >> >> >
>> >> >> > I have tried removing the AxInterop.VisOcx refernce from the app, >> >> >> > rebuilding
>> >> >> > it then putting the reference back into the solution and
> rebuilding
>> > it
>> >> >> > again
>> >> >> > but i still get the same error.
>> >> >> >
>> >> >> > When the app tries to run and consequently debugs, the
>> >> >> > disassembly
>> >> >> > is
>> >> >> > displayed but this is in machine code, which although i
>> >> >> > touched
>> >> >> > on
>> >> >> > at
>> >> > uni,
>> >> >> > doesn't mean a thing to me.
>> >> >> >
>> >> >> > Can anyone help??
>> >> >> >
>> >> >> > Thanks for any and all help, it is greatly appreciated
>> >> >> >
>> >> >> > reagrds
>> >> >> >
>> >> >> > Lee
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 21 '05 #10
Hi Gerry,

I think i may have found the problem... it would appear that the app will
only work if the other machine has VS.NET installed, it will not work in the
VS.NET redistributable package is installed... this is a problem in itself
because from my understanding we will need to get another license for .NET
to install it on the machine that my app needs to run on.

It also means that i am going to have to seperate the two modes of the
program so that the admin side cacn be used on our project managers
machines... this is not the ideal situation to be in and i can't for the
life of me understand why the app needs the full install of VS.NET to run.

I don't suppose you have any ideas why this might be the case?? or how to
solve it?

If not then thank you very much for your help with this it is has been very
appreciated.

regards

Lee


"Lee Newson" <le********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Gerry,

I have checked all the files in the setup project and the
AxInterop.VisOcx.dll file is in it.
The app has two ways to run. Automatically create the timelines (no user
interaction with the app) and the admin side where the user can define what timelines to create - which schedules to include from project server and
various other settings.

When i run the auto mode it just falls over with the system.io.filenotfound, when i run it in admin mode i get the error (see attached txt file).

It would appear for whatever reason that the app cannot load the
AxInterop.VisOcx assembly.

I have also tried creating the project from scratch, adding the existing
code files etc and using all the default VS.NET properties etc, still no
luck. When i did this i had to drop the drawing control on the form again, and the AxInterop.VisOcx.dll file was created and i have not touched any of the settings for this.

The program runs absolutely fine on my machine the problem is still
deploying it to another machine (i used the setup wizard for this to create a setup project), all the files are included in this and are installed to
the other machine during setup.

Lee





"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:ep*************@TK2MSFTNGP10.phx.gbl...
Just make sure that you have actually added that file in setup project so
that it will be copied to the correct folder when the app is deployed on
another machine. That is likely the problem you are having.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:OR*************@TK2MSFTNGP15.phx.gbl...
Yes, this file does get created in the bin folder, the problem comes
when i
try to deply the app to a different machine which has the .NET
redistibutable package installed.

I am wondering now if somehow i have to change the path to the file from f:\...\bin\AxInterop.VisOcx.dll to something else... but i am unsure... as
i
said initially this is the first time i have created either a windows app or
programmed using the visio drawing control.

Lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:ur**************@tk2msftngp13.phx.gbl...
> Ok, again partly my own stupidity on this one. I was looking at
adding
a> reference in the referece section manually.
>
> Instead, I added the control to the toolbox. Dropped it on the form and> here is what is in my references section;
>
> AxVisOcx
> Visio
> VisOcx
>
> I'm not doing anything with the control at all, just placed it on the
form.
>
> Ran the app from the IDE, it opens and displays the Visio drawing window.>
> Compiled the app, ran the exe from the bin/debug folder, and all
works well.
>
> I notice that the AxInterop.VisOcx.dll is in the bin/debug folder. Is> yours?
>
>
>
> --
> Gerry O'Brien
> Visual Basic.NET MVP
>
>
> "Lee Newson" <le********@hotmail.com> wrote in message
> news:Oh*************@TK2MSFTNGP15.phx.gbl...
> > Hi Gerry,
> >
> > I have just tried creating a basic form that only has the Visio

Drawing> > control on it... to do this i added the component to the form toolbox> > (this
> > is the Microsoft.Office.Interop.VisOcx.dll type library) when i add the> > drawing control to the form it seems to automatically create the
> > AxInterop.VisOcx.dll file... and it is this file that is causing the> > problem
> > when i try to run the compiled exe.
> >
> >
> >
> > lee
> >
> >
> >
> >
> >
> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> > news:%2*****************@TK2MSFTNGP14.phx.gbl...
> >> DOH!
> >>
> >> I thought I saw just plain .ocx as the extension. Sorry.
> >>
> >> Now I have to try to find that control and see what I can come up
> >> with.
> >>
> >> --
> >> Gerry O'Brien
> >> Visual Basic.NET MVP
> >>
> >>
> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> news:ua**************@TK2MSFTNGP14.phx.gbl...
> >> > Hi Gerry,
> >> >
> >> > I have looked at the article and tried to run the tlbimp.exe on the ocx
> >> > file, however i get an error saying that the file is not a valid
> >> > type
> >> > library.
> >> >
> >> > Lee
> >> >
> >> >
> >> >
> >> >
> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> >> > news:uW**************@TK2MSFTNGP15.phx.gbl...
> >> >> I'm not able to find the ocx in the SDK and I'm not sure you will find
> >> >> and
> >> >> ActiveX control in the 2003 SDK anyway. Although there is a COM based
> >> >> object library that installs with the SDK, I cannot locate the
control
> >> >> you
> >> >> are referring to.
> >> >>
> >> >> I have yet to develop anything in .NET for Visio so I may not the> >> >> be
> > the
> >> >> best person to help here but I will try nonetheless.
> >> >>
> >> >> Here is a for a web site for you to take a look at. Althouth the site
> > is
> >> >> about C#, the code samples are in VB for this article.
> >> >>
> >> >> I think you may find part of your answer in the fact that you may not
> >> >> have
> >> >> run tlbimp.exe on the ocx file to apply a COM wrapper around it.> >> >>
> >> >> This article explains how to do just that and then how to isntall> >> >> it
> > into
> >> >> the GAC by using the sn.exe utility to create a strongly named
> > assembly.
> >> >>
> >> >> http://www.csharpfriends.com/Article...x?articleID=43> >> >>
> >> >> Hope it helps.
> >> >>
> >> >> Gerry
> >> >>
> >> >>
> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> >> news:u%******************@TK2MSFTNGP10.phx.gbl...
> >> >> > Hi Gerry,
> >> >> >
> >> >> > It is referenced in the references section of the solution
explorer
> >> >> > (and
> >> > i
> >> >> > have referenced it in the coed by "import AxVisOcx =
> >> >> > AxMicrosoft.Office.Interop.VisOcx"
> >> >> >
> >> >> > After speaking with a work colleague we think the problem may
> >> >> > have
> >> >> > something
> >> >> > to do witht he assembly not being in the GAC... when trying to> >> >> > add
> > this
> >> >> > assembly to the GAC i get an error message saying that it is not> >> > strongly
> >> >> > named.
> >> >> >
> >> >> > I believe that the assembly came with the Visio 2003 SDK.
> >> >> >
> >> >> > Unfortunately i do not have any more information. This is the first
> >> > time
> >> >> > i
> >> >> > have created an application using Visual Studio and the first
> >> >> > time
> >> >> > using
> >> >
> >> >> > hte
> >> >> > Visio ActiveX control so it has got me a little stumped.
> >> >> >
> >> >> > Compiling and trying to run the program form the bin folder was the
> >> > first
> >> >> > thing i did (assuming that it would work). after that i removed the
> >> >> > reference, rebuilt, re-referenced and rebuilt.. still no luck.> >> >> >
> >> >> > Thanks for you help.
> >> >> >
> >> >> > regards
> >> >> >
> >> >> > Lee
> >> >> >
> >> >> >
> >> >> >
> >> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> >> >> > news:Oz**************@TK2MSFTNGP10.phx.gbl...
> >> >> >> How is the AxInterop.VisOcx referenced? Are you certain it is> >> >> >> in
> > the
> >> >> >> correct location for the compiled version of your app?
> >> >> >>
> >> >> >> Do you include it in the setup of your app or have you just
> >> >> >> compiled
> >> > the
> >> >> >> project and attempted to run the exe from the bin folder?
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Gerry O'Brien
> >> >> >> Visual Basic.NET MVP
> >> >> >>
> >> >> >>
> >> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> >> >> news:Or**************@TK2MSFTNGP14.phx.gbl...
> >> >> >> > 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."
> >> >> >> >
> >> >> >> > I have tried removing the AxInterop.VisOcx refernce from the app,
> >> >> >> > rebuilding
> >> >> >> > it then putting the reference back into the solution and
> > rebuilding
> >> > it
> >> >> >> > again
> >> >> >> > but i still get the same error.
> >> >> >> >
> >> >> >> > When the app tries to run and consequently debugs, the
> >> >> >> > disassembly
> >> >> >> > is
> >> >> >> > displayed but this is in machine code, which although i
> >> >> >> > touched
> >> >> >> > on
> >> >> >> > at
> >> >> > uni,
> >> >> >> > doesn't mean a thing to me.
> >> >> >> >
> >> >> >> > Can anyone help??
> >> >> >> >
> >> >> >> > Thanks for any and all help, it is greatly appreciated
> >> >> >> >
> >> >> >> > reagrds
> >> >> >> >
> >> >> >> > Lee
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Nov 21 '05 #11
Interesting. I have never heard of that scenario before.

I hope it does solve your issue though.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Hi Gerry,

I think i may have found the problem... it would appear that the app will
only work if the other machine has VS.NET installed, it will not work in
the
VS.NET redistributable package is installed... this is a problem in itself
because from my understanding we will need to get another license for .NET
to install it on the machine that my app needs to run on.

It also means that i am going to have to seperate the two modes of the
program so that the admin side cacn be used on our project managers
machines... this is not the ideal situation to be in and i can't for the
life of me understand why the app needs the full install of VS.NET to run.

I don't suppose you have any ideas why this might be the case?? or how to
solve it?

If not then thank you very much for your help with this it is has been
very
appreciated.

regards

Lee


"Lee Newson" <le********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Gerry,

I have checked all the files in the setup project and the
AxInterop.VisOcx.dll file is in it.
The app has two ways to run. Automatically create the timelines (no user
interaction with the app) and the admin side where the user can define

what
timelines to create - which schedules to include from project server and
various other settings.

When i run the auto mode it just falls over with the

system.io.filenotfound,
when i run it in admin mode i get the error (see attached txt file).

It would appear for whatever reason that the app cannot load the
AxInterop.VisOcx assembly.

I have also tried creating the project from scratch, adding the existing
code files etc and using all the default VS.NET properties etc, still no
luck. When i did this i had to drop the drawing control on the form

again,
and the AxInterop.VisOcx.dll file was created and i have not touched any

of
the settings for this.

The program runs absolutely fine on my machine the problem is still
deploying it to another machine (i used the setup wizard for this to

create
a setup project), all the files are included in this and are installed to
the other machine during setup.

Lee





"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:ep*************@TK2MSFTNGP10.phx.gbl...
> Just make sure that you have actually added that file in setup project so > that it will be copied to the correct folder when the app is deployed
> on
> another machine. That is likely the problem you are having.
>
> --
> Gerry O'Brien
> Visual Basic.NET MVP
>
>
> "Lee Newson" <le********@hotmail.com> wrote in message
> news:OR*************@TK2MSFTNGP15.phx.gbl...
> > Yes, this file does get created in the bin folder, the problem comes

when
> > i
> > try to deply the app to a different machine which has the .NET
> > redistibutable package installed.
> >
> > I am wondering now if somehow i have to change the path to the file from > > f:\...\bin\AxInterop.VisOcx.dll to something else... but i am unsure...
as
> > i
> > said initially this is the first time i have created either a windows

app
> > or
> > programmed using the visio drawing control.
> >
> > Lee
> >
> >
> >
> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> > news:ur**************@tk2msftngp13.phx.gbl...
> >> Ok, again partly my own stupidity on this one. I was looking at

adding
a
> >> reference in the referece section manually.
> >>
> >> Instead, I added the control to the toolbox. Dropped it on the form

and
> >> here is what is in my references section;
> >>
> >> AxVisOcx
> >> Visio
> >> VisOcx
> >>
> >> I'm not doing anything with the control at all, just placed it on
> >> the
> > form.
> >>
> >> Ran the app from the IDE, it opens and displays the Visio drawing

window.
> >>
> >> Compiled the app, ran the exe from the bin/debug folder, and all

works > > well.
> >>
> >> I notice that the AxInterop.VisOcx.dll is in the bin/debug folder. Is > >> yours?
> >>
> >>
> >>
> >> --
> >> Gerry O'Brien
> >> Visual Basic.NET MVP
> >>
> >>
> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> news:Oh*************@TK2MSFTNGP15.phx.gbl...
> >> > Hi Gerry,
> >> >
> >> > I have just tried creating a basic form that only has the Visio

Drawing
> >> > control on it... to do this i added the component to the form toolbox > >> > (this
> >> > is the Microsoft.Office.Interop.VisOcx.dll type library) when i
> >> > add

the
> >> > drawing control to the form it seems to automatically create the
> >> > AxInterop.VisOcx.dll file... and it is this file that is causing the > >> > problem
> >> > when i try to run the compiled exe.
> >> >
> >> >
> >> >
> >> > lee
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> >> > news:%2*****************@TK2MSFTNGP14.phx.gbl...
> >> >> DOH!
> >> >>
> >> >> I thought I saw just plain .ocx as the extension. Sorry.
> >> >>
> >> >> Now I have to try to find that control and see what I can come up
> >> >> with.
> >> >>
> >> >> --
> >> >> Gerry O'Brien
> >> >> Visual Basic.NET MVP
> >> >>
> >> >>
> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> >> news:ua**************@TK2MSFTNGP14.phx.gbl...
> >> >> > Hi Gerry,
> >> >> >
> >> >> > I have looked at the article and tried to run the tlbimp.exe on

the
> > ocx
> >> >> > file, however i get an error saying that the file is not a
> >> >> > valid
> >> >> > type
> >> >> > library.
> >> >> >
> >> >> > Lee
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> >> >> > news:uW**************@TK2MSFTNGP15.phx.gbl...
> >> >> >> I'm not able to find the ocx in the SDK and I'm not sure you will > > find
> >> >> >> and
> >> >> >> ActiveX control in the 2003 SDK anyway. Although there is a COM > > based
> >> >> >> object library that installs with the SDK, I cannot locate the
> > control
> >> >> >> you
> >> >> >> are referring to.
> >> >> >>
> >> >> >> I have yet to develop anything in .NET for Visio so I may not the > >> >> >> be
> >> > the
> >> >> >> best person to help here but I will try nonetheless.
> >> >> >>
> >> >> >> Here is a for a web site for you to take a look at. Althouth the > > site
> >> > is
> >> >> >> about C#, the code samples are in VB for this article.
> >> >> >>
> >> >> >> I think you may find part of your answer in the fact that you may > > not
> >> >> >> have
> >> >> >> run tlbimp.exe on the ocx file to apply a COM wrapper around it. > >> >> >>
> >> >> >> This article explains how to do just that and then how to isntall > >> >> >> it
> >> > into
> >> >> >> the GAC by using the sn.exe utility to create a strongly named
> >> > assembly.
> >> >> >>
> >> >> >>

http://www.csharpfriends.com/Article...x?articleID=43
> >> >> >>
> >> >> >> Hope it helps.
> >> >> >>
> >> >> >> Gerry
> >> >> >>
> >> >> >>
> >> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> >> >> news:u%******************@TK2MSFTNGP10.phx.gbl...
> >> >> >> > Hi Gerry,
> >> >> >> >
> >> >> >> > It is referenced in the references section of the solution
> > explorer
> >> >> >> > (and
> >> >> > i
> >> >> >> > have referenced it in the coed by "import AxVisOcx =
> >> >> >> > AxMicrosoft.Office.Interop.VisOcx"
> >> >> >> >
> >> >> >> > After speaking with a work colleague we think the problem
> >> >> >> > may
> >> >> >> > have
> >> >> >> > something
> >> >> >> > to do witht he assembly not being in the GAC... when trying to > >> >> >> > add
> >> > this
> >> >> >> > assembly to the GAC i get an error message saying that it is

not
> >> >> > strongly
> >> >> >> > named.
> >> >> >> >
> >> >> >> > I believe that the assembly came with the Visio 2003 SDK.
> >> >> >> >
> >> >> >> > Unfortunately i do not have any more information. This is the > > first
> >> >> > time
> >> >> >> > i
> >> >> >> > have created an application using Visual Studio and the
> >> >> >> > first
> >> >> >> > time
> >> >> >> > using
> >> >> >
> >> >> >> > hte
> >> >> >> > Visio ActiveX control so it has got me a little stumped.
> >> >> >> >
> >> >> >> > Compiling and trying to run the program form the bin folder was > > the
> >> >> > first
> >> >> >> > thing i did (assuming that it would work). after that i

removed
> > the
> >> >> >> > reference, rebuilt, re-referenced and rebuilt.. still no luck. > >> >> >> >
> >> >> >> > Thanks for you help.
> >> >> >> >
> >> >> >> > regards
> >> >> >> >
> >> >> >> > Lee
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> >> >> >> > news:Oz**************@TK2MSFTNGP10.phx.gbl...
> >> >> >> >> How is the AxInterop.VisOcx referenced? Are you certain it is > >> >> >> >> in
> >> > the
> >> >> >> >> correct location for the compiled version of your app?
> >> >> >> >>
> >> >> >> >> Do you include it in the setup of your app or have you just
> >> >> >> >> compiled
> >> >> > the
> >> >> >> >> project and attempted to run the exe from the bin folder?
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Gerry O'Brien
> >> >> >> >> Visual Basic.NET MVP
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> >> >> >> news:Or**************@TK2MSFTNGP14.phx.gbl...
> >> >> >> >> > 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."
> >> >> >> >> >
> >> >> >> >> > I have tried removing the AxInterop.VisOcx refernce from the > > app,
> >> >> >> >> > rebuilding
> >> >> >> >> > it then putting the reference back into the solution and
> >> > rebuilding
> >> >> > it
> >> >> >> >> > again
> >> >> >> >> > but i still get the same error.
> >> >> >> >> >
> >> >> >> >> > When the app tries to run and consequently debugs, the
> >> >> >> >> > disassembly
> >> >> >> >> > is
> >> >> >> >> > displayed but this is in machine code, which although i
> >> >> >> >> > touched
> >> >> >> >> > on
> >> >> >> >> > at
> >> >> >> > uni,
> >> >> >> >> > doesn't mean a thing to me.
> >> >> >> >> >
> >> >> >> >> > Can anyone help??
> >> >> >> >> >
> >> >> >> >> > Thanks for any and all help, it is greatly appreciated
> >> >> >> >> >
> >> >> >> >> > reagrds
> >> >> >> >> >
> >> >> >> >> > Lee
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Nov 21 '05 #12
Unfortunately it doesn't really solve the issue in that we can't justify
paying for a license for VS.NET just to run a singular program on a machine.

At this point i have totally run out of ideas, so much so that i may be
rasing a case with microsoft.

Thanks for your help Gerry.

regards

Lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:eQ**************@TK2MSFTNGP12.phx.gbl...
Interesting. I have never heard of that scenario before.

I hope it does solve your issue though.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Hi Gerry,

I think i may have found the problem... it would appear that the app will only work if the other machine has VS.NET installed, it will not work in
the
VS.NET redistributable package is installed... this is a problem in itself because from my understanding we will need to get another license for ..NET to install it on the machine that my app needs to run on.

It also means that i am going to have to seperate the two modes of the
program so that the admin side cacn be used on our project managers
machines... this is not the ideal situation to be in and i can't for the
life of me understand why the app needs the full install of VS.NET to run.
I don't suppose you have any ideas why this might be the case?? or how to solve it?

If not then thank you very much for your help with this it is has been
very
appreciated.

regards

Lee


"Lee Newson" <le********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi Gerry,

I have checked all the files in the setup project and the
AxInterop.VisOcx.dll file is in it.
The app has two ways to run. Automatically create the timelines (no user interaction with the app) and the admin side where the user can define

what
timelines to create - which schedules to include from project server and various other settings.

When i run the auto mode it just falls over with the

system.io.filenotfound,
when i run it in admin mode i get the error (see attached txt file).

It would appear for whatever reason that the app cannot load the
AxInterop.VisOcx assembly.

I have also tried creating the project from scratch, adding the existing code files etc and using all the default VS.NET properties etc, still no luck. When i did this i had to drop the drawing control on the form

again,
and the AxInterop.VisOcx.dll file was created and i have not touched any
of
the settings for this.

The program runs absolutely fine on my machine the problem is still
deploying it to another machine (i used the setup wizard for this to

create
a setup project), all the files are included in this and are installed
to the other machine during setup.

Lee





"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:ep*************@TK2MSFTNGP10.phx.gbl...
> Just make sure that you have actually added that file in setup project so
> that it will be copied to the correct folder when the app is deployed
> on
> another machine. That is likely the problem you are having.
>
> --
> Gerry O'Brien
> Visual Basic.NET MVP
>
>
> "Lee Newson" <le********@hotmail.com> wrote in message
> news:OR*************@TK2MSFTNGP15.phx.gbl...
> > Yes, this file does get created in the bin folder, the problem
comes when
> > i
> > try to deply the app to a different machine which has the .NET
> > redistibutable package installed.
> >
> > I am wondering now if somehow i have to change the path to the file

from
> > f:\...\bin\AxInterop.VisOcx.dll to something else... but i am

unsure...
as
> > i
> > said initially this is the first time i have created either a windows app
> > or
> > programmed using the visio drawing control.
> >
> > Lee
> >
> >
> >
> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> > news:ur**************@tk2msftngp13.phx.gbl...
> >> Ok, again partly my own stupidity on this one. I was looking at

adding
a
> >> reference in the referece section manually.
> >>
> >> Instead, I added the control to the toolbox. Dropped it on the form and
> >> here is what is in my references section;
> >>
> >> AxVisOcx
> >> Visio
> >> VisOcx
> >>
> >> I'm not doing anything with the control at all, just placed it on
> >> the
> > form.
> >>
> >> Ran the app from the IDE, it opens and displays the Visio drawing
window.
> >>
> >> Compiled the app, ran the exe from the bin/debug folder, and all

works
> > well.
> >>
> >> I notice that the AxInterop.VisOcx.dll is in the bin/debug folder.

Is
> >> yours?
> >>
> >>
> >>
> >> --
> >> Gerry O'Brien
> >> Visual Basic.NET MVP
> >>
> >>
> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> news:Oh*************@TK2MSFTNGP15.phx.gbl...
> >> > Hi Gerry,
> >> >
> >> > I have just tried creating a basic form that only has the Visio
Drawing
> >> > control on it... to do this i added the component to the form

toolbox
> >> > (this
> >> > is the Microsoft.Office.Interop.VisOcx.dll type library) when i
> >> > add
the
> >> > drawing control to the form it seems to automatically create the
> >> > AxInterop.VisOcx.dll file... and it is this file that is causing

the
> >> > problem
> >> > when i try to run the compiled exe.
> >> >
> >> >
> >> >
> >> > lee
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> >> > news:%2*****************@TK2MSFTNGP14.phx.gbl...
> >> >> DOH!
> >> >>
> >> >> I thought I saw just plain .ocx as the extension. Sorry.
> >> >>
> >> >> Now I have to try to find that control and see what I can come up > >> >> with.
> >> >>
> >> >> --
> >> >> Gerry O'Brien
> >> >> Visual Basic.NET MVP
> >> >>
> >> >>
> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> >> news:ua**************@TK2MSFTNGP14.phx.gbl...
> >> >> > Hi Gerry,
> >> >> >
> >> >> > I have looked at the article and tried to run the tlbimp.exe on the
> > ocx
> >> >> > file, however i get an error saying that the file is not a
> >> >> > valid
> >> >> > type
> >> >> > library.
> >> >> >
> >> >> > Lee
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> >> >> > news:uW**************@TK2MSFTNGP15.phx.gbl...
> >> >> >> I'm not able to find the ocx in the SDK and I'm not sure you

will
> > find
> >> >> >> and
> >> >> >> ActiveX control in the 2003 SDK anyway. Although there is a

COM
> > based
> >> >> >> object library that installs with the SDK, I cannot locate the > > control
> >> >> >> you
> >> >> >> are referring to.
> >> >> >>
> >> >> >> I have yet to develop anything in .NET for Visio so I may not the
> >> >> >> be
> >> > the
> >> >> >> best person to help here but I will try nonetheless.
> >> >> >>
> >> >> >> Here is a for a web site for you to take a look at.
Althouth the
> > site
> >> > is
> >> >> >> about C#, the code samples are in VB for this article.
> >> >> >>
> >> >> >> I think you may find part of your answer in the fact that
you may
> > not
> >> >> >> have
> >> >> >> run tlbimp.exe on the ocx file to apply a COM wrapper around

it.
> >> >> >>
> >> >> >> This article explains how to do just that and then how to

isntall
> >> >> >> it
> >> > into
> >> >> >> the GAC by using the sn.exe utility to create a strongly
named > >> > assembly.
> >> >> >>
> >> >> >>
http://www.csharpfriends.com/Article...x?articleID=43
> >> >> >>
> >> >> >> Hope it helps.
> >> >> >>
> >> >> >> Gerry
> >> >> >>
> >> >> >>
> >> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> >> >> news:u%******************@TK2MSFTNGP10.phx.gbl...
> >> >> >> > Hi Gerry,
> >> >> >> >
> >> >> >> > It is referenced in the references section of the solution
> > explorer
> >> >> >> > (and
> >> >> > i
> >> >> >> > have referenced it in the coed by "import AxVisOcx =
> >> >> >> > AxMicrosoft.Office.Interop.VisOcx"
> >> >> >> >
> >> >> >> > After speaking with a work colleague we think the problem
> >> >> >> > may
> >> >> >> > have
> >> >> >> > something
> >> >> >> > to do witht he assembly not being in the GAC... when trying to
> >> >> >> > add
> >> > this
> >> >> >> > assembly to the GAC i get an error message saying that it
is not
> >> >> > strongly
> >> >> >> > named.
> >> >> >> >
> >> >> >> > I believe that the assembly came with the Visio 2003 SDK.
> >> >> >> >
> >> >> >> > Unfortunately i do not have any more information. This is

the
> > first
> >> >> > time
> >> >> >> > i
> >> >> >> > have created an application using Visual Studio and the
> >> >> >> > first
> >> >> >> > time
> >> >> >> > using
> >> >> >
> >> >> >> > hte
> >> >> >> > Visio ActiveX control so it has got me a little stumped.
> >> >> >> >
> >> >> >> > Compiling and trying to run the program form the bin folder was
> > the
> >> >> > first
> >> >> >> > thing i did (assuming that it would work). after that i
removed
> > the
> >> >> >> > reference, rebuilt, re-referenced and rebuilt.. still no

luck.
> >> >> >> >
> >> >> >> > Thanks for you help.
> >> >> >> >
> >> >> >> > regards
> >> >> >> >
> >> >> >> > Lee
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
> >> >> >> > news:Oz**************@TK2MSFTNGP10.phx.gbl...
> >> >> >> >> How is the AxInterop.VisOcx referenced? Are you certain
it is
> >> >> >> >> in
> >> > the
> >> >> >> >> correct location for the compiled version of your app?
> >> >> >> >>
> >> >> >> >> Do you include it in the setup of your app or have you
just > >> >> >> >> compiled
> >> >> > the
> >> >> >> >> project and attempted to run the exe from the bin folder?
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Gerry O'Brien
> >> >> >> >> Visual Basic.NET MVP
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
> >> >> >> >> news:Or**************@TK2MSFTNGP14.phx.gbl...
> >> >> >> >> > 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."
> >> >> >> >> >
> >> >> >> >> > I have tried removing the AxInterop.VisOcx refernce from the
> > app,
> >> >> >> >> > rebuilding
> >> >> >> >> > it then putting the reference back into the solution

and > >> > rebuilding
> >> >> > it
> >> >> >> >> > again
> >> >> >> >> > but i still get the same error.
> >> >> >> >> >
> >> >> >> >> > When the app tries to run and consequently debugs, the
> >> >> >> >> > disassembly
> >> >> >> >> > is
> >> >> >> >> > displayed but this is in machine code, which although i
> >> >> >> >> > touched
> >> >> >> >> > on
> >> >> >> >> > at
> >> >> >> > uni,
> >> >> >> >> > doesn't mean a thing to me.
> >> >> >> >> >
> >> >> >> >> > Can anyone help??
> >> >> >> >> >
> >> >> >> >> > Thanks for any and all help, it is greatly appreciated
> >> >> >> >> >
> >> >> >> >> > reagrds
> >> >> >> >> >
> >> >> >> >> > Lee
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>



Nov 21 '05 #13
Well, it doesn't make sense to have to install VS when the redistributable
provides the necessary run times.

Sorry I couldn't be of more help.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP10.phx.gbl...
Unfortunately it doesn't really solve the issue in that we can't justify
paying for a license for VS.NET just to run a singular program on a
machine.

At this point i have totally run out of ideas, so much so that i may be
rasing a case with microsoft.

Thanks for your help Gerry.

regards

Lee

"Gerry O'Brien" <gk******@hotmail.com> wrote in message
news:eQ**************@TK2MSFTNGP12.phx.gbl...
Interesting. I have never heard of that scenario before.

I hope it does solve your issue though.

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hotmail.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
> Hi Gerry,
>
> I think i may have found the problem... it would appear that the app will > only work if the other machine has VS.NET installed, it will not work
> in
> the
> VS.NET redistributable package is installed... this is a problem in itself > because from my understanding we will need to get another license for .NET > to install it on the machine that my app needs to run on.
>
> It also means that i am going to have to seperate the two modes of the
> program so that the admin side cacn be used on our project managers
> machines... this is not the ideal situation to be in and i can't for
> the
> life of me understand why the app needs the full install of VS.NET to run. >
> I don't suppose you have any ideas why this might be the case?? or how to > solve it?
>
> If not then thank you very much for your help with this it is has been
> very
> appreciated.
>
> regards
>
> Lee
>
>
>
>
> "Lee Newson" <le********@hotmail.com> wrote in message
> news:%2****************@TK2MSFTNGP09.phx.gbl...
>> Hi Gerry,
>>
>> I have checked all the files in the setup project and the
>> AxInterop.VisOcx.dll file is in it.
>> The app has two ways to run. Automatically create the timelines (no user >> interaction with the app) and the admin side where the user can define
> what
>> timelines to create - which schedules to include from project server and >> various other settings.
>>
>> When i run the auto mode it just falls over with the
> system.io.filenotfound,
>> when i run it in admin mode i get the error (see attached txt file).
>>
>> It would appear for whatever reason that the app cannot load the
>> AxInterop.VisOcx assembly.
>>
>> I have also tried creating the project from scratch, adding the existing >> code files etc and using all the default VS.NET properties etc, still no >> luck. When i did this i had to drop the drawing control on the form
> again,
>> and the AxInterop.VisOcx.dll file was created and i have not touched any > of
>> the settings for this.
>>
>> The program runs absolutely fine on my machine the problem is still
>> deploying it to another machine (i used the setup wizard for this to
> create
>> a setup project), all the files are included in this and are installed to >> the other machine during setup.
>>
>> Lee
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> news:ep*************@TK2MSFTNGP10.phx.gbl...
>> > Just make sure that you have actually added that file in setup project > so
>> > that it will be copied to the correct folder when the app is
>> > deployed
>> > on
>> > another machine. That is likely the problem you are having.
>> >
>> > --
>> > Gerry O'Brien
>> > Visual Basic.NET MVP
>> >
>> >
>> > "Lee Newson" <le********@hotmail.com> wrote in message
>> > news:OR*************@TK2MSFTNGP15.phx.gbl...
>> > > Yes, this file does get created in the bin folder, the problem comes >> when
>> > > i
>> > > try to deply the app to a different machine which has the .NET
>> > > redistibutable package installed.
>> > >
>> > > I am wondering now if somehow i have to change the path to the
>> > > file
> from
>> > > f:\...\bin\AxInterop.VisOcx.dll to something else... but i am
> unsure...
>> as
>> > > i
>> > > said initially this is the first time i have created either a windows >> app
>> > > or
>> > > programmed using the visio drawing control.
>> > >
>> > > Lee
>> > >
>> > >
>> > >
>> > > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> > > news:ur**************@tk2msftngp13.phx.gbl...
>> > >> Ok, again partly my own stupidity on this one. I was looking at
> adding
>> a
>> > >> reference in the referece section manually.
>> > >>
>> > >> Instead, I added the control to the toolbox. Dropped it on the form >> and
>> > >> here is what is in my references section;
>> > >>
>> > >> AxVisOcx
>> > >> Visio
>> > >> VisOcx
>> > >>
>> > >> I'm not doing anything with the control at all, just placed it on
>> > >> the
>> > > form.
>> > >>
>> > >> Ran the app from the IDE, it opens and displays the Visio drawing
>> window.
>> > >>
>> > >> Compiled the app, ran the exe from the bin/debug folder, and all
> works
>> > > well.
>> > >>
>> > >> I notice that the AxInterop.VisOcx.dll is in the bin/debug
>> > >> folder.
> Is
>> > >> yours?
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >> Gerry O'Brien
>> > >> Visual Basic.NET MVP
>> > >>
>> > >>
>> > >> "Lee Newson" <le********@hotmail.com> wrote in message
>> > >> news:Oh*************@TK2MSFTNGP15.phx.gbl...
>> > >> > Hi Gerry,
>> > >> >
>> > >> > I have just tried creating a basic form that only has the Visio
>> Drawing
>> > >> > control on it... to do this i added the component to the form
> toolbox
>> > >> > (this
>> > >> > is the Microsoft.Office.Interop.VisOcx.dll type library) when i
>> > >> > add
>> the
>> > >> > drawing control to the form it seems to automatically create
>> > >> > the
>> > >> > AxInterop.VisOcx.dll file... and it is this file that is
>> > >> > causing
> the
>> > >> > problem
>> > >> > when i try to run the compiled exe.
>> > >> >
>> > >> >
>> > >> >
>> > >> > lee
>> > >> >
>> > >> >
>> > >> >
>> > >> >
>> > >> >
>> > >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> > >> > news:%2*****************@TK2MSFTNGP14.phx.gbl...
>> > >> >> DOH!
>> > >> >>
>> > >> >> I thought I saw just plain .ocx as the extension. Sorry.
>> > >> >>
>> > >> >> Now I have to try to find that control and see what I can come up >> > >> >> with.
>> > >> >>
>> > >> >> --
>> > >> >> Gerry O'Brien
>> > >> >> Visual Basic.NET MVP
>> > >> >>
>> > >> >>
>> > >> >> "Lee Newson" <le********@hotmail.com> wrote in message
>> > >> >> news:ua**************@TK2MSFTNGP14.phx.gbl...
>> > >> >> > Hi Gerry,
>> > >> >> >
>> > >> >> > I have looked at the article and tried to run the tlbimp.exe on >> the
>> > > ocx
>> > >> >> > file, however i get an error saying that the file is not a
>> > >> >> > valid
>> > >> >> > type
>> > >> >> > library.
>> > >> >> >
>> > >> >> > Lee
>> > >> >> >
>> > >> >> >
>> > >> >> >
>> > >> >> >
>> > >> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> > >> >> > news:uW**************@TK2MSFTNGP15.phx.gbl...
>> > >> >> >> I'm not able to find the ocx in the SDK and I'm not sure
>> > >> >> >> you
> will
>> > > find
>> > >> >> >> and
>> > >> >> >> ActiveX control in the 2003 SDK anyway. Although there is
>> > >> >> >> a
> COM
>> > > based
>> > >> >> >> object library that installs with the SDK, I cannot locate the >> > > control
>> > >> >> >> you
>> > >> >> >> are referring to.
>> > >> >> >>
>> > >> >> >> I have yet to develop anything in .NET for Visio so I may not > the
>> > >> >> >> be
>> > >> > the
>> > >> >> >> best person to help here but I will try nonetheless.
>> > >> >> >>
>> > >> >> >> Here is a for a web site for you to take a look at. Althouth > the
>> > > site
>> > >> > is
>> > >> >> >> about C#, the code samples are in VB for this article.
>> > >> >> >>
>> > >> >> >> I think you may find part of your answer in the fact that you > may
>> > > not
>> > >> >> >> have
>> > >> >> >> run tlbimp.exe on the ocx file to apply a COM wrapper
>> > >> >> >> around
> it.
>> > >> >> >>
>> > >> >> >> This article explains how to do just that and then how to
> isntall
>> > >> >> >> it
>> > >> > into
>> > >> >> >> the GAC by using the sn.exe utility to create a strongly named >> > >> > assembly.
>> > >> >> >>
>> > >> >> >>
>> http://www.csharpfriends.com/Article...x?articleID=43
>> > >> >> >>
>> > >> >> >> Hope it helps.
>> > >> >> >>
>> > >> >> >> Gerry
>> > >> >> >>
>> > >> >> >>
>> > >> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
>> > >> >> >> news:u%******************@TK2MSFTNGP10.phx.gbl...
>> > >> >> >> > Hi Gerry,
>> > >> >> >> >
>> > >> >> >> > It is referenced in the references section of the
>> > >> >> >> > solution
>> > > explorer
>> > >> >> >> > (and
>> > >> >> > i
>> > >> >> >> > have referenced it in the coed by "import AxVisOcx =
>> > >> >> >> > AxMicrosoft.Office.Interop.VisOcx"
>> > >> >> >> >
>> > >> >> >> > After speaking with a work colleague we think the problem
>> > >> >> >> > may
>> > >> >> >> > have
>> > >> >> >> > something
>> > >> >> >> > to do witht he assembly not being in the GAC... when trying > to
>> > >> >> >> > add
>> > >> > this
>> > >> >> >> > assembly to the GAC i get an error message saying that it is >> not
>> > >> >> > strongly
>> > >> >> >> > named.
>> > >> >> >> >
>> > >> >> >> > I believe that the assembly came with the Visio 2003 SDK.
>> > >> >> >> >
>> > >> >> >> > Unfortunately i do not have any more information. This
>> > >> >> >> > is
> the
>> > > first
>> > >> >> > time
>> > >> >> >> > i
>> > >> >> >> > have created an application using Visual Studio and the
>> > >> >> >> > first
>> > >> >> >> > time
>> > >> >> >> > using
>> > >> >> >
>> > >> >> >> > hte
>> > >> >> >> > Visio ActiveX control so it has got me a little stumped.
>> > >> >> >> >
>> > >> >> >> > Compiling and trying to run the program form the bin folder > was
>> > > the
>> > >> >> > first
>> > >> >> >> > thing i did (assuming that it would work). after that i
>> removed
>> > > the
>> > >> >> >> > reference, rebuilt, re-referenced and rebuilt.. still no
> luck.
>> > >> >> >> >
>> > >> >> >> > Thanks for you help.
>> > >> >> >> >
>> > >> >> >> > regards
>> > >> >> >> >
>> > >> >> >> > Lee
>> > >> >> >> >
>> > >> >> >> >
>> > >> >> >> >
>> > >> >> >> > "Gerry O'Brien" <gk******@hotmail.com> wrote in message
>> > >> >> >> > news:Oz**************@TK2MSFTNGP10.phx.gbl...
>> > >> >> >> >> How is the AxInterop.VisOcx referenced? Are you certain it > is
>> > >> >> >> >> in
>> > >> > the
>> > >> >> >> >> correct location for the compiled version of your app?
>> > >> >> >> >>
>> > >> >> >> >> Do you include it in the setup of your app or have you just >> > >> >> >> >> compiled
>> > >> >> > the
>> > >> >> >> >> project and attempted to run the exe from the bin
>> > >> >> >> >> folder?
>> > >> >> >> >>
>> > >> >> >> >>
>> > >> >> >> >> --
>> > >> >> >> >> Gerry O'Brien
>> > >> >> >> >> Visual Basic.NET MVP
>> > >> >> >> >>
>> > >> >> >> >>
>> > >> >> >> >> "Lee Newson" <le********@hotmail.com> wrote in message
>> > >> >> >> >> news:Or**************@TK2MSFTNGP14.phx.gbl...
>> > >> >> >> >> > 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."
>> > >> >> >> >> >
>> > >> >> >> >> > I have tried removing the AxInterop.VisOcx refernce from > the
>> > > app,
>> > >> >> >> >> > rebuilding
>> > >> >> >> >> > it then putting the reference back into the solution and >> > >> > rebuilding
>> > >> >> > it
>> > >> >> >> >> > again
>> > >> >> >> >> > but i still get the same error.
>> > >> >> >> >> >
>> > >> >> >> >> > When the app tries to run and consequently debugs, the
>> > >> >> >> >> > disassembly
>> > >> >> >> >> > is
>> > >> >> >> >> > displayed but this is in machine code, which although
>> > >> >> >> >> > i
>> > >> >> >> >> > touched
>> > >> >> >> >> > on
>> > >> >> >> >> > at
>> > >> >> >> > uni,
>> > >> >> >> >> > doesn't mean a thing to me.
>> > >> >> >> >> >
>> > >> >> >> >> > Can anyone help??
>> > >> >> >> >> >
>> > >> >> >> >> > Thanks for any and all help, it is greatly appreciated
>> > >> >> >> >> >
>> > >> >> >> >> > reagrds
>> > >> >> >> >> >
>> > >> >> >> >> > Lee
>> > >> >> >> >> >
>> > >> >> >> >> >
>> > >> >> >> >>
>> > >> >> >> >>
>> > >> >> >> >
>> > >> >> >> >
>> > >> >> >>
>> > >> >> >>
>> > >> >> >
>> > >> >> >
>> > >> >>
>> > >> >>
>> > >> >
>> > >> >
>> > >>
>> > >>
>> > >
>> > >
>> >
>> >
>>
>>
>>
>
>



Nov 21 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the...
6
by: Ayende Rahien | last post by:
Excetremely annoying problem, I've an application with a long startup time. So I created another form with my logo in it to as a splash screen. The splash screen is run from another thread and is...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
6
by: billr | last post by:
I have developed a small API for taking care of a lot of boiler plate stuff in a multi formed windows application, for example setting up a messaging thread framework. New Forms, in the...
1
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
3
by: bsturg21 | last post by:
Hello, I have a windows form that has a series of linklabels on it, and I need to have each linklabel, when clicked, open a separate windows form that has a single paramter passed into it. The...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.