简体   繁体   中英

guid problem with asp.net using c#

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM