You receive an "Object reference not set to an instance of an object" error message when you try to open a project that contains an inherited user control in Visual Studio .NET or Visual Studio 2005 (894438)
The information in this article applies to:
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
- Microsoft Visual C# 2005, Express Edition
- Microsoft Visual C++ .NET (2003)
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ 2005 Express Edition
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual Basic 2005
SYMPTOMSWhen you try to open a project that contains an inherited
user control, you receive an error message that is similar to the following: Object reference not set to an instance of an
object. This problem occurs in Microsoft Visual Studio .NET or in Microsoft Visual Studio 2005. Note This problem occurs when your project contains Web
references. CAUSEThis problem occurs when you save your project with XML
attribute characters that are not valid in the project path. Examples of XML
attribute characters that are not valid follow: When you try to open the project that contains the inherited
user control, Visual Studio .NET 2003 or Visual Studio 2005 scans through the references to find the
base type of the control. All references are stored in an XML fragment. The "#"
character and the "&" character are valid Windows directory characters.
However, they are not valid characters XML attribute characters. This causes
Visual Studio .NET 2003 or Visual Studio 2005 to stop scanning through the references when these
characters are encountered. Therefore, the base type of the control is not
found. WORKAROUNDTo work around this problem, you must avoid using XML
attribute characters that are not valid. Do not use the "#" character and the
"&" character in the project path.
Modification Type: | Minor | Last Reviewed: | 10/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbvs2002sp1sweep kbtshoot kbbug KB894438 kbAudDeveloper |
---|
|