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?
Re: Could not find type 'System.ComponentModel.IContainer'
Hi,
I think you can find some information, here.
Re: Could not find type 'System.ComponentModel.IContainer'
Re: Could not find type 'System.ComponentModel.IContainer'
If I click add reference I do not find System.ComponentModel
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.
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.
Re: Could not find type 'System.ComponentModel.IContainer'
Hi,
If that solved your problem, mark your thread as solved.
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.