这是由于我们使用的Win2008系统是64位的,以前Win2003是32位的系统 。
/应用程序中的服务器错误 。
【IIS7下使用ASP.NET连接ACCESS数据库时提示如下错误怎么办】未在本地计算机上注册microsoft.jet.oledb.4.0提供程序 。
这是由于我们使用的Win2008系统是64位的,以前Win2003是32位 。按以下解决方法:
1、修改连接数据库的代码:
如原代码是
DataPath = App_Data/#data.mdb;
String constring = provider=microsoft.jet.oledb.4.0;data source= + HttpContext.Current.Server.MapPath(DataPath) + ;
修改后的是:
DataPath = App_Data/#data.mdb;
string constring = provider=Microsoft.ACE.OLEDB.12.0;data source= + HttpContext.Current.Server.MapPath(DataPath) + ;
注意:只需要修改为红色字体部份,其它的不用修改 。也就是换一种连接数据库的驱动
IIS7下使用ASP.NET连接ACCESS数据库时提示如下错误怎么办的详细内容就为您分享到这里,【精彩生活】jing111.com小编为您精选以下内容,希望对您有所帮助:
- iphone4怎么下载歌曲 iphone4下载歌曲教程
- 使用爽身粉要注意什么
- 皮下T细胞淋巴瘤的症状,皮下T细胞淋巴瘤的早期症状,并发症
- ps怎么使用修复画笔工具
- 酷我音乐盒怎么下载皮肤
- 地下城与勇士缔造者刷图怎么加点 地下城与勇士缔造者刷图加点攻略
- 排气扇使用注意事项有哪些
- 羽绒服味道大用清水洗一下可以吗 羽绒服有鸭毛味道算质量不合格吗
- ps怎么制作阳光发散?ps制作漂亮逼真的阳光发散效果
- 心脏跳几下停顿一下很严重吗 心脏一分钟偷停五次严重吗