0
我正在調試用傳統ASP編寫的應用程序。我使用IIS Express 7.5來調試應用程序。一切都很好,直到我到達以下行:無法創建COM對象
set somevariable =Server.CreateObject("somelibrary.somemember")
「未知異常」引發。
語境
我有管理權限。 操作系統是Windows XP SP3。 「somelibrary」程序集已正確註冊regasm,並已通過gacutil包含在GAC中。 我能夠從PowerShell的執行大會:
$instance =New-Object -ComObject "somelibrary.somemember")
我在IIS Express中的下列配置ASP:
<asp enableParentPaths="true"
bufferingOn="true"
errorsToNTLog="true"
appAllowDebugging="true"
appAllowClientDebug="true"
scriptErrorSentToBrowser="true">
<session allowSessionState="true" />
<cache diskTemplateCacheDirectory="%TEMP%\iisexpress\ASP Compiled Templates" />
<limits />
</asp>
該網站有窗戶和啓用匿名身份驗證(禁用Windows身份驗證獲得相同的結果)
問題的原因是什麼?
XP並不是完全與IIS有關的最佳操作系統。你檢查事件日誌嗎?嘗試運行procmon並查看IIS是否嘗試訪問有問題的DLL。如果不是,則可能需要調整一些IIS設置... –
錯誤返回的HRESULT值是多少?當您捕獲錯誤時,您可以從Err.Number中獲取此值。 – Garett