x64 ii7 如何用 asp + access
由於64位操作系統不支持Microsoft OLE DB Provider for Jet驅動程序,也不支持更早的Microsoft Access Driver (*.mdb)方式連接。所以用於 Access 和 Excel 數據庫的 Microsoft OLE DB Provider for Jet 在 64 位版本中不可用,也就是說,如下兩種連接字符串都已經無法正常工作了:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.mappath(db)
"driver=Microsoft Access Driver (*.mdb);DBQ="&Server.MapPath(db)
既然這樣,就只能使用一個辦法,將IIS的運行環境設置為32位
IIS6上的做法:1.命 令行鍵入:
cscript.exe %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
即 設置IIS6允許32位程序運行在64位機器上
2.重新註冊.net FrameWorks
%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
3.完成之後,應該會看到多出一個32位的asp.net
IIS7上的做法:
IIS 管理員 --> 應用程式集區 --> 進階設定 --> 啟用 32 位元應用程序 -->True
將其設置為允許,缺點:這樣會使整個IIS上的所有站點都以32位兼容方式運行
參考自: http://www.cnblogs.com/delphinet/archive/2010/03/25/1696083.html
迴響
x64 ii7 如何用 asp + access | 豬窩
I'm gone to inform my little brother, that he should also visit this web site on regular basis to
get updated from latest news update.
x64 ii7 如何用 asp + access | 豬窩
Terrific post however I was wanting to know if you could write a litte more on this subject?
I'd be very thankful if you could elaborate
a little bit further. Thanks!
x64 ii7 如何用 asp + access | 豬窩
Normally I do not read article on blogs, however I wish to say that this write-up very compelled me
to take a look at and do it! Your writing taste has been amazed me.
Thanks, quite great article.
x64 ii7 如何用 asp + access | 豬窩
Good post. I learn something totally new and challenging on sites I stumbleupon every day.
It's always useful to read content from other authors and use a
little something from their websites.
x64 ii7 如何用 asp + access | 豬窩
Hey very interesting blog!