Wednesday, March 28, 2012

Strange compile problem

I am compiling a simple application and am getting these types of errors:

Type 'EventArgs' is not defined.
Type 'Exception' is not defined.
Type 'Int32' is not defined.
Type 'Type' is not defined.
Name 'Convert' is not declared.

It seems as if the compiler is not including the System.dll (which is obviously referenced in the project). I have tried deleting the bin directory and removing the cache, but nothing helps.

Any ideas?

Thanks,

AndrewLooks like one of the System.* is missing, but is very difficult to tell which one
It looks to me like you haven't declared that you are using the System namespace at the top of your file:

using System;

I have the following references showing:
System
System.Data
System.Design
System.Drawing
System.Web
System.Windows.Forms
System.XML
No, that is not required in vb.

Andrew

0 comments:

Post a Comment