Re: Windows form application problem

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Gerry O'Brien (gkcomput_at_hotmail.com)
Date: 02/22/05


Date: Tue, 22 Feb 2005 16:48:04 -0400

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" <lee_newson@hotmail.com> wrote in message 
news:uaGvihMGFHA.3732@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" <gkcomput@hotmail.com> wrote in message
> news:uWwZHPIGFHA.2296@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/Articles/getArticle.aspx?articleID=43
>>
>> Hope it helps.
>>
>> Gerry
>>
>>
>> "Lee Newson" <lee_newson@hotmail.com> wrote in message
>> news:u%23%23$fUDGFHA.2568@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" <gkcomput@hotmail.com> wrote in message
>> > news:OzkyEJDGFHA.2180@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" <lee_newson@hotmail.com> wrote in message
>> >> news:OrhttwBGFHA.1932@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
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
> 


Relevant Pages

  • Re: VB 6 Project drops controls & gets out of memory errors
    ... Sometimes VB stores a reference to ... the oca file associated with a control instead of the ocx. ... Either way, the next time you load the project, you're hit with 'failed ...
    (microsoft.public.vb.general.discussion)
  • Re: Windows form application problem
    ... I'm not doing anything with the control at all, just placed it on the form. ... Gerry O'Brien ... >> I thought I saw just plain .ocx as the extension. ... >>>>> It is referenced in the references section of the solution explorer ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Best Way to Find Text After Using Like
    ... then require addition of some runtime file for others to use, like an OCX ... The reference shows system32\vbscript.dll\3, so I assume ... If you're in control of ...
    (microsoft.public.vb.general.discussion)
  • Re: Windows form application problem
    ... I have just tried creating a basic form that only has the Visio Drawing ... drawing control to the form it seems to automatically create the ... > I thought I saw just plain .ocx as the extension. ... > Gerry O'Brien ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ActiveX Download Conflict Directory
    ... changes for the same named OCX or packaged files, ... > existing control and update the control (rather than install a second, ... downloaded on client machines by ASP. ...
    (microsoft.public.vb.controls.internet)