Results 1 to 8 of 8

Thread: Could not find type 'System.ComponentModel.IContainer'

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Could not find type 'System.ComponentModel.IContainer'

    Could not find type 'System.ComponentModel.IContainer'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.

    Okay suddenly I got that error. I think the issue is I didn't include a certain reference. But what?

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: Could not find type 'System.ComponentModel.IContainer'

    Hi,

    I think you can find some information, here.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Re: Could not find type 'System.ComponentModel.IContainer'

    I got the same problem.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Re: Could not find type 'System.ComponentModel.IContainer'

    If I click add reference I do not find System.ComponentModel

  5. #5
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: Could not find type 'System.ComponentModel.IContainer'

    Hi,

    What version your working with?
    Because when you rightclick in the solution Explorer: select -> add Reference go to the .Net part and then you'll find: System.ComponentModel.DataAnnotations

    When you add this Framework it provides containers functionality.
    Last edited by sparrow1; Apr 30th, 2011 at 09:01 AM.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Re: Could not find type 'System.ComponentModel.IContainer'

    Hm... I'll try then.

    The problem is I opened a different project file (that points to the same files) and somehow it works. No question asked.

    I remember that this is not the first time I have this problem.

  7. #7
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: Could not find type 'System.ComponentModel.IContainer'

    Hi,

    If that solved your problem, mark your thread as solved.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Re: Could not find type 'System.ComponentModel.IContainer'

    Not solved. The original vb.net file still produced this error and I still can't fix it. Another similar project file (that uses local files rather than remote) works fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width