Microsoft KB Archive/316015

= BUG: You receive an error message when you set the table property of a DataView control to &quot;(None)&quot; =

Article ID: 316015

Article Last Modified on 8/17/2005

-

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: &quot;Invalid properties value&quot; 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.



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 &quot;Symptoms&quot; section of this article.

Additional query words: None

Keywords: kberrmsg kbbug kbnofix kbide kbvs2002sp1sweep KB316015

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.