473,854 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.File NotFoundExcepti on' occurred
in VisioTimeline.e xe

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

I have tried removing the AxInterop.VisOc x 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 3951
How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on' occurred
in VisioTimeline.e xe

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

I have tried removing the AxInterop.VisOc x 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.Off ice.Interop.Vis Ocx"

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******@hotma il.com> wrote in message
news:Oz******** ******@TK2MSFTN GP10.phx.gbl...
How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on' occurred in VisioTimeline.e xe

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

I have tried removing the AxInterop.VisOc x 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********@hot mail.com> wrote in message
news:u%******** **********@TK2M SFTNGP10.phx.gb l...
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.Off ice.Interop.Vis Ocx"

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******@hotma il.com> wrote in message
news:Oz******** ******@TK2MSFTN GP10.phx.gbl...
How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on' occurred > in VisioTimeline.e xe
>
> Additional information: File or assembly name AxInterop.VisOc x, or one of > its dependencies, was not found."
>
> I have tried removing the AxInterop.VisOc x 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******@hotma il.com> wrote in message
news:uW******** ******@TK2MSFTN GP15.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********@hot mail.com> wrote in message
news:u%******** **********@TK2M SFTNGP10.phx.gb l...
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.Off ice.Interop.Vis Ocx"

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******@hotma il.com> wrote in message
news:Oz******** ******@TK2MSFTN GP10.phx.gbl...
How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on'

occurred
> in VisioTimeline.e xe
>
> Additional information: File or assembly name AxInterop.VisOc x, or one
of
> its dependencies, was not found."
>
> I have tried removing the AxInterop.VisOc x 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********@hot mail.com> wrote in message
news:ua******** ******@TK2MSFTN GP14.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******@hotma il.com> wrote in message
news:uW******** ******@TK2MSFTN GP15.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********@hot mail.com> wrote in message
news:u%******** **********@TK2M SFTNGP10.phx.gb l...
> 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.Off ice.Interop.Vis Ocx"
>
> 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******@hotma il.com> wrote in message
> news:Oz******** ******@TK2MSFTN GP10.phx.gbl...
>> How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
>> news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on'
> occurred
>> > in VisioTimeline.e xe
>> >
>> > Additional information: File or assembly name AxInterop.VisOc x, or one > of
>> > its dependencies, was not found."
>> >
>> > I have tried removing the AxInterop.VisOc x 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.Offic e.Interop.VisOc x.dll type library) when i add the
drawing control to the form it seems to automatically create the
AxInterop.VisOc x.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******@hotma il.com> wrote in message
news:%2******** *********@TK2MS FTNGP14.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********@hot mail.com> wrote in message
news:ua******** ******@TK2MSFTN GP14.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******@hotma il.com> wrote in message
news:uW******** ******@TK2MSFTN GP15.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********@hot mail.com> wrote in message
news:u%******** **********@TK2M SFTNGP10.phx.gb l...
> 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.Off ice.Interop.Vis Ocx"
>
> 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******@hotma il.com> wrote in message
> news:Oz******** ******@TK2MSFTN GP10.phx.gbl...
>> How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
>> news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on'
> occurred
>> > in VisioTimeline.e xe
>> >
>> > Additional information: File or assembly name AxInterop.VisOc x, or

one
> of
>> > its dependencies, was not found."
>> >
>> > I have tried removing the AxInterop.VisOc x 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.VisOc x.dll is in the bin/debug folder. Is
yours?

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hot mail.com> wrote in message
news:Oh******** *****@TK2MSFTNG P15.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.Offic e.Interop.VisOc x.dll type library) when i add the
drawing control to the form it seems to automatically create the
AxInterop.VisOc x.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******@hotma il.com> wrote in message
news:%2******** *********@TK2MS FTNGP14.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********@hot mail.com> wrote in message
news:ua******** ******@TK2MSFTN GP14.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******@hotma il.com> wrote in message
> news:uW******** ******@TK2MSFTN GP15.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********@hot mail.com> wrote in message
>> news:u%******** **********@TK2M SFTNGP10.phx.gb l...
>> > 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.Off ice.Interop.Vis Ocx"
>> >
>> > 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******@hotma il.com> wrote in message
>> > news:Oz******** ******@TK2MSFTN GP10.phx.gbl...
>> >> How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
>> >> news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on'
>> > occurred
>> >> > in VisioTimeline.e xe
>> >> >
>> >> > Additional information: File or assembly name AxInterop.VisOc x,
>> >> > or
> one
>> > of
>> >> > its dependencies, was not found."
>> >> >
>> >> > I have tried removing the AxInterop.VisOc x 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\AxIn terop.VisOcx.dl l 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******@hotma il.com> wrote in message
news:ur******** ******@tk2msftn gp13.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.VisOc x.dll is in the bin/debug folder. Is
yours?

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hot mail.com> wrote in message
news:Oh******** *****@TK2MSFTNG P15.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.Offic e.Interop.VisOc x.dll type library) when i add the
drawing control to the form it seems to automatically create the
AxInterop.VisOc x.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******@hotma il.com> wrote in message
news:%2******** *********@TK2MS FTNGP14.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********@hot mail.com> wrote in message
news:ua******** ******@TK2MSFTN GP14.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******@hotma il.com> wrote in message
> news:uW******** ******@TK2MSFTN GP15.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********@hot mail.com> wrote in message
>> news:u%******** **********@TK2M SFTNGP10.phx.gb l...
>> > 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.Off ice.Interop.Vis Ocx"
>> >
>> > 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******@hotma il.com> wrote in message
>> > news:Oz******** ******@TK2MSFTN GP10.phx.gbl...
>> >> How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
>> >> news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on' >> > occurred
>> >> > in VisioTimeline.e xe
>> >> >
>> >> > Additional information: File or assembly name AxInterop.VisOc x,
>> >> > or
> one
>> > of
>> >> > its dependencies, was not found."
>> >> >
>> >> > I have tried removing the AxInterop.VisOc x 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********@hot mail.com> wrote in message
news:OR******** *****@TK2MSFTNG P15.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\AxIn terop.VisOcx.dl l 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******@hotma il.com> wrote in message
news:ur******** ******@tk2msftn gp13.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.VisOc x.dll is in the bin/debug folder. Is
yours?

--
Gerry O'Brien
Visual Basic.NET MVP
"Lee Newson" <le********@hot mail.com> wrote in message
news:Oh******** *****@TK2MSFTNG P15.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.Offic e.Interop.VisOc x.dll type library) when i add the
> drawing control to the form it seems to automatically create the
> AxInterop.VisOc x.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******@hotma il.com> wrote in message
> news:%2******** *********@TK2MS FTNGP14.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********@hot mail.com> wrote in message
>> news:ua******** ******@TK2MSFTN GP14.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******@hotma il.com> wrote in message
>> > news:uW******** ******@TK2MSFTN GP15.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********@hot mail.com> wrote in message
>> >> news:u%******** **********@TK2M SFTNGP10.phx.gb l...
>> >> > 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.Off ice.Interop.Vis Ocx"
>> >> >
>> >> > 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******@hotma il.com> wrote in message
>> >> > news:Oz******** ******@TK2MSFTN GP10.phx.gbl...
>> >> >> How is the AxInterop.VisOc x 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********@hot mail.com> wrote in message
>> >> >> news:Or******** ******@TK2MSFTN GP14.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.File NotFoundExcepti on' >> >> > occurred
>> >> >> > in VisioTimeline.e xe
>> >> >> >
>> >> >> > Additional information: File or assembly name
>> >> >> > AxInterop.VisOc x,
>> >> >> > or
>> > one
>> >> > of
>> >> >> > its dependencies, was not found."
>> >> >> >
>> >> >> > I have tried removing the AxInterop.VisOc x 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

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

Similar topics

0
2321
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 example source code can be downloaded here: http://www.blogitek.com/timhaughton/archives/files/User%20Interrogator%20And%20TDD.zip The article text is below. Not sure what it will do to the formatting when
6
2590
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 communicated solely through static method and Invoke()'s However, when I close my second form, the first one (main window) is hiding under all the windows on the desktop. If I don't close the splash screen, then everything is fine. I tried...
9
2827
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 facing. Please please help me to solve this as soon as possible. So here we go ... I am not able to take the screen shot of the windows form based "Smart
6
2645
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 appllication using the API, are subclassed to a Form contained within the API, and they are controlled (controlled in this instance means, kept alive, displayed and hidden) at runtime by a thread whose responsibility is this sole task. In order to run...
1
1788
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 members. It works fine on W2k - machines. It works on a WinNT 4 - server, too, but it stops with a runtime error on any Windows 4.0 Workstation. The error is: System.Runtime.InteropServices.COMException 0x800500F. at...
17
5113
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 Windows XP IIS back to ASP.NET 1.1 then I get the Configuration Error (which is understandable because I'm trying to run an ASP.NET 2 site with 1.1 framework). I can however view other ASP.NET 1.1 sites on my local Windows XP machine. It's only the...
15
7097
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 every second. I remote desktop to the computer hosting this application and run the application. It starts up and displays the counter incrementing every second. If I disconnect the network cable between the two computers for 10 seconds and...
3
4703
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 form that has the System.Windows.Forms.LinkLabel controls on it is in a different project and under a different namespace from the file where the LinkLabel_LinkClicked events are, so I can't just do frm.ShowDialog under the LinkClicked method. ...
7
9381
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 display the Windows form. The form is being displayed but the command only returns when the form is closed. I want the command line to return immediately, leaving the form displayed.
21
3401
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 a zipcode that is unknown this form will open. I don't want users to modify any of this customers data until they close the zipcode form. Normally this can accomplished using a modal form, however this prevents me from opening a new copy of...
0
9901
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9751
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10673
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9510
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5937
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4150
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.