麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 服務(wù)器 > Win服務(wù)器 > 正文

Win7 ASP連接數(shù)據(jù)庫“未找到提供程序.該程序可能未正確安裝”問

2024-09-10 00:04:59
字體:
供稿:網(wǎng)友
ASP連接數(shù)據(jù)庫的連接字符串是Provider=Microsoft.Jet.OLEDB.4.0; Data Source=路徑,采用的是OleDB方式連接,問題可能就出在OleDB方式連接這一環(huán)節(jié)上。

后來搜索網(wǎng)絡(luò)得到了解決的辦法 。原來是自己裝的64位Windows 7系統(tǒng)的原因,默認64位環(huán)境下,IIS應(yīng)用程序池未啟用32位應(yīng)用程序,我們只需要啟用一下就可以了。打開IIS 7,定位到“應(yīng)用程序池”,然后選擇使用OleDB方式連接數(shù)據(jù)庫的程序池,然后將啟用32位應(yīng)用程序設(shè)置為True就可以了。



Using MyODBC with ASP.NET in IIS7 on Vista x64

That's a heck of a title, but it's a problem I hit recently. I have a bunch of ASP.NET sites that use MySQL as their datastore, but I hadn't tried the on IIS7 yet. It took a while to get them to work at all (I had to set permissions on web.config and the other website files so that they could be read by both the Users group and the IIS_IUSRS group), but then I was left with an error about my MySQL connection. “ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified” – another very general error that basically means “Something is wrong with your ODBC driver, somewhere.”

After some searching, I learned two things. The first is that if you're running 64-bit you can't use the standard ODBC Data Source Administrator in Administrative Tools with MySQL. You've got to go to C:/Windows/SysWOW64/odbcad32.exe and set up your DSN, if that's your thing. The other thing is that the MyODBC driver is 32-bit only. So to use it at all, you need to make sure you're calling it from 32-bit apps only. That means you've got to tweak the Application Pool you're using to run all its ASP.NET applications as 32-bit. To do this, go to Administrative Tools > Internet Information Services (IIS) Manager (or just hit the Windows key and type “IIS”). Then go to “Application Pools” and select whichever application pool your ASP.NET app uses (or create a new one just for your MySQL apps. Click “Advanced Settings…” and set “Enable 32-Bit Applications”. Now the AppPool will use the 32-bit .NET CLR to run your app, and it'll be able to see your MyODBC driver (whether you use a DSN or not).

IIS7 32-bit Application Pool

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 久久国产免费 | 免费观看的毛片手机视频 | 看免费一级毛片 | chinesehdxxxx无套| 国产chinesehd精品91 | 天天操综 | 欧美日韩免费观看视频 | 青青操精品 | 精品亚洲va在线va天堂资源站 | 免费在线观看一级片 | 久久久成人免费视频 | 成人性生活视频在线观看 | 中文字幕在线日韩 | 久久99精品久久久久久久久久久久 | 精品成人久久久 | 欧美无极品 | 免费高清一级欧美片在线观看 | 亚洲国产二区 | 激情综合在线观看 | 国产精品18久久久久久久久 | 亚洲精品午夜国产va久久成人 | 国产中文99视频在线观看 | 成人男女视频 | 久色一区| 欧美黄色试片 | 精品成人av一区二区在线播放 | 亚洲小视频在线 | 国产刺激高潮av | 日韩午夜一区二区三区 | 午夜视频国产 | 色视频在线 | 神马视频我不卡 | 91资源在线观看 | 欧美日本一| 在线成人精品视频 | 欧美一级毛片大片免费播放 | 亚州综合图片 | 黄网免费看 | 久久伊人国产精品 | 亚洲第一页中文字幕 | 国产成人精品一区在线播放 |