Re: Strange Problem with Interface

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'm still hitting this problem. Does anyone have any idea what could be
causing this? Thanks!

"Bagger" wrote:

> No, I didn't rename the class. That's the default name that VB.Net gives it.
> The project is set to use Form1 as the startup object.
>
>
> "CodeMeister" wrote:
>
> > Have you renamed the class Form1? If you have, you need to change your
> > startup object to use the correct form name. In C#, find your Main method
> > and edit the name of the class in the Applicatn.Run call. In VB.Net right
> > click on your project name and select properties. Change the name of the
> > startup object.
> >
> > IHTH
> >
> > Jon
> >
> >
> > "Bagger" <Bagger@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:DCD5CC0C-6396-469D-B438-B0BED3C71A2C@xxxxxxxxxxxxxxxx
> > > Ok, I have a strange problem. I have a DLL that defines a couple of
> > > interfaces. They just have a few properties and a couple of functions in
> > > them. Now, I create a new Windows Forms project and add a reference to
> > > that
> > > DLL. Now, before I do anything, I run the project. A blank form pops up.
> > > That's good. Now, I add the Implements line for one of the interfaces,
> > > which
> > > automatically creates the property and function shells for me. But when I
> > > try to run it again, I get the following error :
> > >
> > > --------------
> > > An unhandled exception of type 'System.TypeLoadException' occurred in
> > > Unknown Module.
> > >
> > > Additional information: Could not load type WindowsApplication3.Form1 from
> > > assembly WindowsApplication3, Version=1.0.1994.17092, Culture=neutral,
> > > PublicKeyToken=null.
> > > ---------------
> > >
> > > Can anyone explain to me what this means, exactly, and why I'm getting the
> > > error? Any help is appreciated. Thanks!
> >
> >
> >
.



Relevant Pages

  • Re: Strange Problem with Interface
    ... I didn't rename the class. ... The project is set to use Form1 as the startup object. ... Could not load type WindowsApplication3.Form1 from ...
    (microsoft.public.dotnet.framework)
  • Re: interface rename ?
    ... | How can I rename interface in gentoo? ... | I have many ppp interfaces (pppoe server) and I want to rename them ... I use UDEV to rename my ethernet interfaces, ...
    (comp.os.linux.networking)
  • Re: [PATCH] Allow renaming of network interfaces that are up.
    ... breaking any userspace that relies on renaming ... We have a choice of breaking ... that assume that they can rename interfaces, ...
    (Linux-Kernel)
  • Solaris 10 - Login problem
    ... Networking team decided to use .1q trunking and we have to rename the ... We renamed interfaces files (/etc/hostname.ce0 and ce3 to ... a login prompt through console. ...
    (comp.sys.sun.admin)
  • Solaris 10 - console login
    ... Networking team decided to use .1q trunking and we have to rename the ... We renamed interfaces files (/etc/hostname.ce0 and ce3 to ... a login prompt through console. ...
    (comp.unix.solaris)