• <i id='28NtZ'><tr id='28NtZ'><dt id='28NtZ'><q id='28NtZ'><span id='28NtZ'><b id='28NtZ'><form id='28NtZ'><ins id='28NtZ'></ins><ul id='28NtZ'></ul><sub id='28NtZ'></sub></form><legend id='28NtZ'></legend><bdo id='28NtZ'><pre id='28NtZ'><center id='28NtZ'></center></pre></bdo></b><th id='28NtZ'></th></span></q></dt></tr></i><div id='28NtZ'><tfoot id='28NtZ'></tfoot><dl id='28NtZ'><fieldset id='28NtZ'></fieldset></dl></div>
      <legend id='28NtZ'><style id='28NtZ'><dir id='28NtZ'><q id='28NtZ'></q></dir></style></legend>

      <small id='28NtZ'></small><noframes id='28NtZ'>

      • <bdo id='28NtZ'></bdo><ul id='28NtZ'></ul>
    1. <tfoot id='28NtZ'></tfoot>

      1. 从经典 ASP 访问 .NET 程序集

        时间:2023-10-06

        <small id='9xWTt'></small><noframes id='9xWTt'>

        <tfoot id='9xWTt'></tfoot>
          <legend id='9xWTt'><style id='9xWTt'><dir id='9xWTt'><q id='9xWTt'></q></dir></style></legend>
            • <bdo id='9xWTt'></bdo><ul id='9xWTt'></ul>

                    <tbody id='9xWTt'></tbody>
                  <i id='9xWTt'><tr id='9xWTt'><dt id='9xWTt'><q id='9xWTt'><span id='9xWTt'><b id='9xWTt'><form id='9xWTt'><ins id='9xWTt'></ins><ul id='9xWTt'></ul><sub id='9xWTt'></sub></form><legend id='9xWTt'></legend><bdo id='9xWTt'><pre id='9xWTt'><center id='9xWTt'></center></pre></bdo></b><th id='9xWTt'></th></span></q></dt></tr></i><div id='9xWTt'><tfoot id='9xWTt'></tfoot><dl id='9xWTt'><fieldset id='9xWTt'></fieldset></dl></div>
                • 本文介绍了从经典 ASP 访问 .NET 程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我一直在尝试访问我在经典 ASP 中使用创建的 .NET 程序集

                  I have been trying to access a .NET Assembly that I have created in classic ASP using

                  dim foo
                  set foo = Server.CreateObject("TestAssembly.MyClass")
                  

                  问题是我遇到了一个错误:

                  The problem is I'm getting an error:

                  Server object error 'ASP 0177 : 800401f3'
                  
                  Server.CreateObject Failed
                  
                  /test.asp, line 4
                  
                  Invalid class string
                  

                  我已经按照文章中的说明使用 gacutil 和 regasm 注册了程序集 (TestAssembly.dll):用我从 from-asp-classic-to-asp-net/104187#104187">另一个问题.它提供了两种安装程序集的方法,我都尝试过,但都无济于事.

                  I have registered the assembly (TestAssembly.dll) using gacutil and regasm as instructed in the article: Replacing Old Classic ASP COM Components with .NET Assemblies which I referenced from another question. It supplies two methods in which to install the assembly and I have tried both, but to no avail.

                  让这个工作很好,因为它可以让我逐渐将一个经典的 ASP 网站迁移到 .NET

                  Getting this working would be great because it would allow me to gradually migrate a classic ASP site to .NET

                  推荐答案

                  要检查的另一件事:确保您的 .Net 程序集设置为 COM Visible.

                  Another thing to check: make sure your .Net assembly is set to be COM Visible.

                  这篇关于从经典 ASP 访问 .NET 程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:经典 ASP 和 ASP.NET 集成 下一篇:是否可以在 asp classic 和 asp.net 之间共享会话状态

                  相关文章

                    <bdo id='3Xsn2'></bdo><ul id='3Xsn2'></ul>
                  <i id='3Xsn2'><tr id='3Xsn2'><dt id='3Xsn2'><q id='3Xsn2'><span id='3Xsn2'><b id='3Xsn2'><form id='3Xsn2'><ins id='3Xsn2'></ins><ul id='3Xsn2'></ul><sub id='3Xsn2'></sub></form><legend id='3Xsn2'></legend><bdo id='3Xsn2'><pre id='3Xsn2'><center id='3Xsn2'></center></pre></bdo></b><th id='3Xsn2'></th></span></q></dt></tr></i><div id='3Xsn2'><tfoot id='3Xsn2'></tfoot><dl id='3Xsn2'><fieldset id='3Xsn2'></fieldset></dl></div>

                  1. <tfoot id='3Xsn2'></tfoot>

                    <small id='3Xsn2'></small><noframes id='3Xsn2'>

                      <legend id='3Xsn2'><style id='3Xsn2'><dir id='3Xsn2'><q id='3Xsn2'></q></dir></style></legend>