在server2008R2的IIS7中调试asp程序遇到的错误

最近因为需要,把很久之前的一个asp程序拿回来调试,本以为IIS7这么高级的玩意肯定支持asp,没想到出现了以下问题:

 

按照以前的步骤设置新网站,设置端口,设置程序池,结果,打不开!

 

按照提示发现了这个页面:

 

http://learn.iis.net/page.aspx/559/running-classic-asp-applications-on-iis-70-and-iis-75/

 

Running Classic ASP Applications on IIS 7.0 and IIS 7.5

看来直接在2008R2的IIS7里调试asp还需要一番设置。2008R2已经是纯64位了,因为要用到access数据库,首先要改程序池的这个地方:

刚才又查了一下,原来是微软没有出支持64位的oledb,IIS默认运行在64位下,因此不能连接到oledb数据库了。

Working with 64-bit Systems

Unfortunately there are no 64-bit ODBC drivers, so on 64-bit systems you will have to run your applications in 32-bit mode. To do so, use the following steps:

  1. On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. In the Connections pane, click Application Pools.
  3. Highlight the application pool for your application, then click Advanced Settings... in the Actions pane.
  4. In the Advanced Settings dialog, specify True for Enable 32-Bit Applications.
  5. Click OK to close the Advanced Settings dialog.

  让他支持32位

 

然后打开程序,还是不行,IIS7里默认父路径也是关闭的,也需要打开,启用客户端调试

 

然后还是遇到那个经典的“操作必须使用一个可更新的查询”错误,这个应该就是数据库目录权限不够,但是已经添加了 IIS_IURS的权限啊。因为时间紧,只能给everyone添加写入权限了,这样应该不安全,但总算可以运行了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值