asp.net连接数据库问题
我用连接数据库老是报错。错误提示:用户名/ASPNET登录失败。同样的代码在开发的桌面程序中却能成功执行。我的账户也是设为了管理员模式。到底是怎么回事呢?请知道的朋友指点指点。谢谢!
我的ACCESS数据库连接也老出错..
错误如下:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file 'D:\webdb1.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
Source Error:
Line 186: else
Line 187: {
Line 188: oleDbConnection1.Open();
Line 189: DataColumnCollection myDCC=applyDataSet1.Tables[0].Columns ;
Line 190: DataColumn[] myDC={myDCC["username"]};