我遇到了IIS应用程序和SQL的问题。
我可以使用用户名:vtc2直接登录SQL服务器
我可以使用相同的用户名使用ODBC连接访问SQL服务器:vtc2
这是我申请的ini文件:
DSN=VTE
Driver=SQL Server
Server=MLAERP01\VTIMECARD
Database=vTimeCard
UID=vtc2
PWD=
但是当我尝试直接访问该网站时,它会给我一个错误:
并且SQL服务器日志说:
web.config文件:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="timecard.dll" />
</files>
</defaultDocument>
<handlers>
<remove name="ISAPI-dll" />
<add name="ISAPI-dll" path="*.dll" verb="*" modules="IsapiModule" scriptProcessor="C:\Program Files (x86)\Virtual Time+Expense\Timecard.dll" resourceType="Unspecified" requireAccess="Execute" allowPathInfo="true" preCondition="bitness32" />
</handlers>
</system.webServer>
</configuration>
请帮忙!我需要尽快完成这项工作。我不知道该为什么用户名通过网站失败了...