Re: Windows form application problem
From: Gerry O'Brien (gkcomput_at_hotmail.com)
Date: 02/22/05
- Next message: Herfried K. Wagner [MVP]: "Re: Main application object in vb.net"
- Previous message: Jeremy Olmstead: "System.IO.FileNotFoundException: imagefile.bmp"
- In reply to: Lee Newson: "Re: Windows form application problem"
- Next in thread: Lee Newson: "Re: Windows form application problem"
- Reply: Lee Newson: "Re: Windows form application problem"
- Reply: Lee Newson: "Re: Windows form application problem"
- Messages sorted by: [ date ] [ thread ]
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 >> >> > >> >> > >> >> >> >> >> > >> > >> >> > >
- Next message: Herfried K. Wagner [MVP]: "Re: Main application object in vb.net"
- Previous message: Jeremy Olmstead: "System.IO.FileNotFoundException: imagefile.bmp"
- In reply to: Lee Newson: "Re: Windows form application problem"
- Next in thread: Lee Newson: "Re: Windows form application problem"
- Reply: Lee Newson: "Re: Windows form application problem"
- Reply: Lee Newson: "Re: Windows form application problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|