开发者

ASP.NET and Access Databases

I have an ASP.NET web application that accesses an Access Database. The Access Database is only for testing purposes. I have hard coded the connection string which is correct, yet the application throws an error saying:

C:\开发者_Go百科MyDb\Db.mdb is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

My Connection String is:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDb\Db.mdb;

This is the correct path, why can't the developement server see the database? Do I have to configure it?

Please Help


See 'Not a valid path' Error when Using Access Data Source, I think it may help.


Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDb\Db.mdb;Persist Security Info=True


Are you using IIS? If so, does the IIS server have access to this file directory?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜