国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 服務(wù)器 > Web服務(wù)器 > 正文

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

2024-09-01 13:45:18
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
ASP連接數(shù)據(jù)庫(kù)的連接字符串是Provider=Microsoft.Jet.OLEDB.4.0; Data Source=路徑,采用的是OleDB方式連接,問(wèn)題可能就出在OleDB方式連接這一環(huán)節(jié)上。

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

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



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).

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

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 石景山区| 扶余县| 灵寿县| 日喀则市| 松桃| 衢州市| 明星| 安塞县| 寿阳县| 安远县| 巴青县| 遵义市| 沧州市| 湖北省| 邹城市| 江永县| 临西县| 禹城市| 察隅县| 兴安县| 临夏市| 康乐县| 闸北区| 睢宁县| 兰考县| 寿光市| 新绛县| 汶上县| 正定县| 酒泉市| 卢氏县| 昭平县| 三原县| 屯留县| 河南省| 诸城市| 贵德县| 仁寿县| 成安县| 湖北省| 察隅县|