views:

33

answers:

3

In Microsoft Visual Web Developer 2005 Express Edition, I can't find the type System.Guid. Is there problem with my version or do I have another problem? System.Guid is not recognized in IntelliSense.

+2  A: 

You need to import the proper assemblies, and reference the correct namespaces. Make sure have a reference to mscorlib.dll in your project, and that the System namespace is imported in the code file (or type System.Guid instead of just Guid).

To add a reference to a C# project, right click "References", choose "Add reference..." and pick the assembly in the list (or browse, or reference another one of your projects, or whatever you need to do).

In VB.NET, you instead open the project properties (double-click "My Properties") and choose the tab "References" on the left.

Tomas Lycken
yes i did as u said bro but now also same problem
Then, as Chris pointed out, do you have a class named `System` somewhere in your project?
Tomas Lycken
A: 

a using reference might do the trick, i think.

Gunner 4 Life
A: 

I've seen a issue like this before. Have you defined a class called System?

Failing that check your references as directed in Tomas's post.

Chris Diver