• <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 注册托管程序集

        Register managed assemblies with COM without using the GAC(在不使用 GAC 的情况下向 COM 注册托管程序集)
        <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 注册托管程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  WPF ListBox not updating with the ItemsSource(WPF ListBox 未使用 ItemsSource 更新)
                  Problem getting list box items added through jquery in code behind(在后面的代码中通过 jquery 添加列表框项目时出现问题)
                  Selected item in list box is null(列表框中的选定项为空)
                  ASP.NET: Listbox datasource and databind(ASP.NET:列表框数据源和数据绑定)
                  .NET 3.5 Listbox Selected Values (Winforms)(.NET 3.5 列表框选定值(Winforms))
                  Why does the WPF listbox change selection on mouse button down rather than button up?(为什么 WPF 列表框在鼠标按下而不是按下按钮时更改选择?)
                • <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'>

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

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