【问题标题】:Error Showing .asp file?显示 .asp 文件时出错?
【发布时间】:2017-01-09 06:13:27
【问题描述】:

我最近为我的一个域更改了服务器。此域是在 asp 文件中构建的,但我发现一些链接无法正常工作并重定向到 BIZyCart.asp 并显示一些错误,如下所述:

<%
Server.ScriptTimeout=30
Response.Buffer=True
Response.Expires=0

If (VarType(Application("~WC~WebClassManager")) = 0) Then
Application.Lock
If (VarType(Application("~WC~WebClassManager")) = 0) Then
    Set Application("~WC~WebClassManager") = Server.CreateObject("WebClassRuntime.WebClassManager")
End If
Application.UnLock
End If

Application("~WC~WebClassManager").ProcessNoStateWebClass "BIZyCart_VB.BIZyCart", _
    Server, _
    Application, _
    Session, _
    Request, _
    Response
%>

所以请帮我解决这个问题,让我知道哪里出了问题?

【问题讨论】:

    标签: asp.net


    【解决方案1】:

    您在经典 ASP 中是 using a COM object。下面的行创建了这个 COM 对象。

    Server.CreateObject("WebClassRuntime.WebClassManager")
    

    由于您更改了域,因此该 COM 对象在您的新域中不存在。您需要在新域中找到此 COM 对象和 register it 的 dll 文件。 好。最后我找到了vbscript注册reference

    要将 DLL 注册为 COM+ 服务器,请键入

    regsvr32 /c /s YOURDLLNAME.dll
    

    要注销 DLL,请键入

    regsvr32 /u /s YOURDLLNAME.dll
    

    您需要找到必要的 dll 文件,否则您的页面将无法正常工作。请参阅following question,它列出了您的 COM 对象的一些 dll 名称。

    【讨论】:

    • 感谢您的回复,但我是 asp 新手,不知道如何注册它。我在服务器中有一些文件,但没有找到任何 DLL。所以请帮助我在哪里以及如何注册 DLL
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-01
    • 1970-01-01
    • 2013-07-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多