Hi there,
I got a problem using an MS Access database through
ASP.NET.
After updating my system from .NET Framework 1.0 to 1.1,
my existing
application gives me the following error when opening a
connection
with the code below:
"Unspecifie d error" (ErrorCode: -2147467259)
string connectionStrin gKey = "LocalDBConnect ionString";
string connectionStrin g
= "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=C:\InetP ub\wwwroot\IS_I taly_2003\IS.md b";
OdbcConnection connection = new OdbcConnection
(connectionStri ng);
try
{
connection.Open ();
}
catch (OdbcException ex)
{
string error = ex.Message;
}
finally
{
connection.Clos e();
}
What's really strange is that:
1. The same application works on some of my colleagues'
computers with
the .net Framework 1.1
2. The very same code works on my computer when creating a
brand new
application with VS.NET 2003
3. The same application was working with .NET Framework 1.0
The same thing happens (including the two cases above)
when using ODBC
classes instead of OleDB ones. In this case the connection
string is:
"FIL=MS Access;DSN=AIS_ Local"
and the error is:
"ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]
Disk or
network error.\r\nERROR [IM006] [Microsoft][ODBC Driver
Manager]
Driver's SQLSetConnectAt tr failed\r\nERROR [HY000]
[Microsoft][ODBC
Microsoft Access Driver] Disk or network error."
Need HELP!!!
tks
I got a problem using an MS Access database through
ASP.NET.
After updating my system from .NET Framework 1.0 to 1.1,
my existing
application gives me the following error when opening a
connection
with the code below:
"Unspecifie d error" (ErrorCode: -2147467259)
string connectionStrin gKey = "LocalDBConnect ionString";
string connectionStrin g
= "Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=C:\InetP ub\wwwroot\IS_I taly_2003\IS.md b";
OdbcConnection connection = new OdbcConnection
(connectionStri ng);
try
{
connection.Open ();
}
catch (OdbcException ex)
{
string error = ex.Message;
}
finally
{
connection.Clos e();
}
What's really strange is that:
1. The same application works on some of my colleagues'
computers with
the .net Framework 1.1
2. The very same code works on my computer when creating a
brand new
application with VS.NET 2003
3. The same application was working with .NET Framework 1.0
The same thing happens (including the two cases above)
when using ODBC
classes instead of OleDB ones. In this case the connection
string is:
"FIL=MS Access;DSN=AIS_ Local"
and the error is:
"ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver]
Disk or
network error.\r\nERROR [IM006] [Microsoft][ODBC Driver
Manager]
Driver's SQLSetConnectAt tr failed\r\nERROR [HY000]
[Microsoft][ODBC
Microsoft Access Driver] Disk or network error."
Need HELP!!!
tks
Comment