"Connection string is invalid" error message when you preview data or generate a dataset control (815119)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework 1.1)
- Microsoft Visual C# .NET (2003)
- Microsoft Visual Basic .NET (2003)
SYMPTOMSIf more than one connection exists in Microsoft Visual
Studio .NET Server Explorer, and if you cannot see Server Explorer in Visual
Studio .NET, you may receive the following error message when you click
Fill Dataset to preview the data in the Data Adapter Preview
window: SqlDataAdapterName. The data adapter could not
return the data from the data source.
The connection string is
invalid. Alternatively, when you right-click
DataAdapter and then click Generate Dataset,
you may receive the following error message: Retrieving
the schema for SqlDataAdapter1 failed.
The connection string is
invalid. CAUSE Connection Manager manages the Microsoft SQL Server
connections in Visual Studio .NET. When you click Fill Dataset
or Generate Dataset, a Connection object is built and then added to the Connection Manager list of Connection objects. Connection Manager finds the Connection in its list and then prepares to return the Connection with the display name of the Connection. To return the display name, Connection Manager incorrectly opens
Server Explorer and then looks for a connection in Server Explorer.
Connection
Manager generates an error because the connection does not exist in Server
Explorer.RESOLUTIONYou can safely ignore this error message and then click
Fill Dataset or Generate Dataset a second
time. Alternatively, you can open Server Explorer before you click Fill
Dataset or Generate Dataset.
To open Server
Explorer, click Server Explorer on the View
menu in Visual Studio .NET.STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 3/9/2006 |
---|
Keywords: | kbDragDrop kbDataview kbDatabase kbDataAdapter kbSystemData kberrmsg kbbug KB815119 kbAudDeveloper |
---|
|