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

      1. <small id='rLVgr'></small><noframes id='rLVgr'>

        • <bdo id='rLVgr'></bdo><ul id='rLVgr'></ul>

        在不使用 GAC 的情况下向 COM 注册托管程序集

        时间:2023-10-07
        <legend id='NJ2WQ'><style id='NJ2WQ'><dir id='NJ2WQ'><q id='NJ2WQ'></q></dir></style></legend>
          <bdo id='NJ2WQ'></bdo><ul id='NJ2WQ'></ul>
        • <i id='NJ2WQ'><tr id='NJ2WQ'><dt id='NJ2WQ'><q id='NJ2WQ'><span id='NJ2WQ'><b id='NJ2WQ'><form id='NJ2WQ'><ins id='NJ2WQ'></ins><ul id='NJ2WQ'></ul><sub id='NJ2WQ'></sub></form><legend id='NJ2WQ'></legend><bdo id='NJ2WQ'><pre id='NJ2WQ'><center id='NJ2WQ'></center></pre></bdo></b><th id='NJ2WQ'></th></span></q></dt></tr></i><div id='NJ2WQ'><tfoot id='NJ2WQ'></tfoot><dl id='NJ2WQ'><fieldset id='NJ2WQ'></fieldset></dl></div>
            <tbody id='NJ2WQ'></tbody>

                  <tfoot id='NJ2WQ'></tfoot>

                  <small id='NJ2WQ'></small><noframes id='NJ2WQ'>

                • 本文介绍了在不使用 GAC 的情况下向 COM 注册托管程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想知道是否可以在不向 GAC 注册的情况下向 COM 注册程序集.我们需要使用 CCW 部署一些暴露给经典 asp 的 .net 库.但是部署是一场噩梦.

                  I'm wondering if it possible to register assemblies with COM without having to register it with the GAC. We need to deploy some .net libraries that are exposed to classic asp using a CCW. But deployments are a nightmare.

                  推荐答案

                  是的,使用 regasm.exe/codebase 键.当您使用 regasm.exe 而不使用 /codebase 时,它只会将程序集的文件名写入注册表,因此 .NET 运行时无法找到它,除非程序集位于GAC.使用 /codebase 它将写入完整路径,当使用者调用 CoCreateInstance() 时,.NET 将很高兴找到程序集.

                  Yeap, use regasm.exe with /codebase key for that. When you use regasm.exe without /codebase it only writes the filename of the assmebly to the registry and so the .NET runtime can't find it unless the assembly is in the GAC. With /codebase it will write the full path and .NET will be happy to find the assembly when the consumer calls CoCreateInstance().

                  这篇关于在不使用 GAC 的情况下向 COM 注册托管程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:ASP.NET MVC (C#) 中的经典 ASP 下一篇:如何使用 IIS 7 集成管道获取适用于经典 ASP 的自定义错误页面

                  相关文章

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

                    <legend id='bcZ7Q'><style id='bcZ7Q'><dir id='bcZ7Q'><q id='bcZ7Q'></q></dir></style></legend>

                    <small id='bcZ7Q'></small><noframes id='bcZ7Q'>

                    • <bdo id='bcZ7Q'></bdo><ul id='bcZ7Q'></ul>

                      <tfoot id='bcZ7Q'></tfoot>