BUG: You receive an error message when you set the table property of a DataView control to "(None)" (316015)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition

This article was previously published under Q316015

SYMPTOMS

When you use the Microsoft Visual Studio .NET (VS .NET) Database Designer to set the table property of a DataView control to (None), you may receive the following error message:
Error: "Invalid properties value" Object reference not set to an instance of an object.

RESOLUTION

Although there is not an available workaround for this problem, you can set the table property to a valid table reference and it will not impact your ability to continue using the designer to develop your application.

NOTE: If a table reference is not available, this table property remains blank and you cannot set it to (None).

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Problem

NOTE: The following steps assume that you have Microsoft SQL Server 7.0 or later with the pubs database installed.
  1. Create a new Microsoft Visual Basic .NET Web application.
  2. From the Server Explorer, right-click Data Connections, and then click Add Connection.
  3. Create a connection to your SQL Server pubs database.
  4. In the Server Explorer, expand the table tree view to see the new data connection.
  5. Drag the Titles table to the designer window.
  6. Right-click the data adapter SQLDataAdapter1, select Generate DataSet, and then click OK.
  7. Drag a DataView control to the design window from the Data menu on the Toolbox.
  8. Set the table property of the DataView to dataset11.titles.
  9. Set the table property of the DataView control to (None).
  10. You will receive the error message that is described in the "Symptoms" section of this article.

Modification Type:MinorLast Reviewed:8/17/2005
Keywords:kbvs2002sp1sweep kbbug kberrmsg kbide kbnofix KB316015