PRB: "Cannot Start Your Application" Error When You Open a Database Project That Has an Access Data Connection (823913)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
SYMPTOMSYou connect to a password-protected Microsoft Access
database by using the Microsoft Jet 4.0 OLE DB Provider from a Microsoft Visual
Studio .NET Database project, and then you remove the data connection and close
the Database project. When you reopen the Database project, the data connection
is not opened, and you receive the following error: Unable
to connect to database. Cannot start your application. The workgroup
information file is missing or opened exclusively by another
user. Note The Microsoft Development Environment dialog box
also appears and displays the following message: Unable to
connect to a Database specified in the Solution. Do you want to modify this
Database connection properties? CAUSETo open a connection to a password-protected Access database
by using the Microsoft Jet 4.0 OLE DB Provider, you must provide a value to the
Jet OLEDB:Database Password property. However, you cannot type a database password in the
Please Enter MS JET OLE DB Initialization Information dialog
box. Therefore, you receive an error when you try to open the connection to the
password-protected Access database from the Database project.WORKAROUNDTo work around the problem that is described in the "More
Information" section of this article, provide the database password in the Data
Link Properties dialog box. To do this, follow these steps:
- In the Solution Explorer, expand Database
References.
- Double-click the reference to the Access database. In the
Please Enter MS JET OLE DB Initialization Information dialog
box, click Cancel.
- In the Server Explorer message box, click
OK.
- In the Microsoft Development Environment
dialog box, click Yes.
- In the Data Link Properties dialog box,
click the All tab.
- Click Jet OLEDB:Database Password in the
properties list,
and then click Edit Value.
- In the Edit Property Value dialog box,
type testpwd in the Property Value box,
and then click OK.
- In the Data Link Properties dialog box,
click OK.
-or- To work around the problem, provide user level
security for the Access database. When you provide user level security to the
database, the data connection is opened. STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft
Developers Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 9/3/2003 |
---|
Keywords: | kbJET kbSecurity kbDatabase kbprb KB823913 kbAudDeveloper |
---|
|