dtcyv3985 2015-12-13 11:33
浏览 315

在Windows 10上通过ODBC连接到Access数据库时出现IIS 500错误

I upgraded to from Windows 8.1 (64 bit) to Windows 10 (64 bit). I run an IIS-10 server, with PHP, which does an ODBC connect to a MS-Access database. I'm running the 32 bit version of Access 2016. I have installed the Access/Jet database driver.

Using the 32 bit ODBC Data Source Administrator I created a DSN named "TFD_Local" which connects to a .accdb database on the server.

The PHP script which runs on IIS execute the following

 $odbc = odbc_connect('TFD_Local', '', '') or reportError("Connect error: " . odbc_errormsg() . " " . odbc_error());

and I get an:

HTTP Error 500.0 - Internal Server Error
C:\Program Files (x86)\PHP\v5.4\php-cgi.exe - The FastCGI process exited unexpectedly

I suspect that this has something to do with a 32/64 bit incompatibility as this runs OK on a 32 bit machine running the same software. This used to run on my Win 8.1 64 bit system. Note that things like phpinfo run just fine. What needs to be done to keep this from generating the 500 error?

  • 写回答

1条回答 默认 最新

  • doulao3078 2015-12-13 17:29
    关注

    To answer my own question:

    I deleted the DSN which had been created by going through the Administrative Tools/ODBC Data Sources (32 Bit) and then ran C:\Windows\SysWOW64\odbcad32.exe and recreated it. I don't know what the difference is, but this worked.

    评论

报告相同问题?

悬赏问题

  • ¥15 C#读写EXCEL文件,不同编译
  • ¥15 如何提取csv文件中需要的列,将其整合为一篇完整文档,并进行jieba分词(语言-python)
  • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
  • ¥15 扩散模型sd.webui使用时报错“Nonetype”
  • ¥15 stm32流水灯+呼吸灯+外部中断按键
  • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符
  • ¥15 NX MCD仿真与博途通讯不了啥情况
  • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置