一、安装oracel10g client,必要时请使用administrator用户登录系统后再安装

二、找到安装目录下的bin目录,添加ASP.NET相关的用户权限,之后重启IIS,否则会报告:

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.

三、因为IIS是64位,此时访问Oracle会报告:

Attempt to load Oracle client libraries threw BadImageFormatException.  This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

解决办法是在命令行执行以下命令:

 

 

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

相关文章:

  • 2021-12-21
  • 2021-08-07
  • 2022-02-23
  • 2022-12-23
  • 2021-10-17
  • 2021-12-26
  • 2021-04-02
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2021-07-18
  • 2021-05-22
  • 2022-02-01
  • 2021-12-11
  • 2022-12-23
  • 2022-01-14
相关资源
相似解决方案