You receive an internal compiler error message when you compile a Visual C# .NET 2003 or a Visual C# 2005 project (889831)
The information in this article applies to:
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# 2005, Express Edition
SYMPTOMSWhen you try to compile a Microsoft Visual C# .NET 2003 or Microsoft Visual C# 2005 project, you may receive an error message that is similar to the following: error CS0583: Internal Compiler Error In Microsoft Visual Studio 2005, you receive the following error message: error CS0572: 'type' : cannot reference a type through an expression; try 'path_to_type' instead For more information about this error message, visit the following Microsoft Developer Network (MSDN) Web site: CAUSEThis problem occurs because you incorrectly tried to use a type name to access an instance member on a nested type instead of using a variable name.RESOLUTIONTo resolve this problem, use a variable name in the reference. For an example, see the "More Information" section.STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 1/18/2006 |
---|
Keywords: | kbDev kbtshoot kbprb KB889831 kbAudDeveloper |
---|
|