<bdo id='5pj29'></bdo><ul id='5pj29'></ul>

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

      1. <tfoot id='5pj29'></tfoot>

        <small id='5pj29'></small><noframes id='5pj29'>

        是否可以在不添加注册表项的情况下为 COM 互操作注册 .NET 程序集?

        时间:2023-07-24

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

                • <bdo id='iDf1j'></bdo><ul id='iDf1j'></ul>
                  本文介绍了是否可以在不添加注册表项的情况下为 COM 互操作注册 .NET 程序集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在通过单击一次来部署 .NET VSTO 应用程序.作为安装过程的一部分,需要为 COM 互操作注册应用程序的主程序集.我知道这可以通过编写代码来执行REGASM assembly.dll/tlb"来完成,但问题是将安装我的应用程序的目标工作站没有管理权限,因此在尝试注册时 regasm 失败类型库.

                  我的问题是,当我没有管理访问权限时,如何注册我的 .net 程序集以实现 com 互操作性?

                  解决方案

                  您可以使用免注册激活COM组件.我已经在通过单击一次部署的应用程序中使用了它,并且效果很好.以下是一些帮助您入门的链接:

                  基于 .NET 的组件的免注册激活p>

                  演练:手动部署 ClickOnce 应用程序

                  如何:在托管程序集中使用 COM 组件为非托管应用部署 ClickOnce

                  I am deploying a .NET VSTO application via click once. The application's main assembly needs to be registered for COM interop as part of the installation process. I know that this can be done by writing code to execute "REGASM assembly.dll /tlb", but the problem is that the target workstations that will be installing my application don't have administrative rights, so the regasm fails when trying to register the type library.

                  My question is, how can I register my .net assembly for com interoperability when I don't have administrative access?

                  解决方案

                  You could use registration-free activation of COM components. I have used this in an application deployed via click-once and it worked well. Here are a few links to get you started:

                  Registration-Free Activation of .NET-Based Components

                  Walkthrough: Manually Deploying a ClickOnce Application

                  How To: ClickOnce deployment for unmanaged app with COM component in managed assembly

                  这篇关于是否可以在不添加注册表项的情况下为 COM 互操作注册 .NET 程序集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何让 LINQPad 转储() System.__ComObject 引用? 下一篇:COM 对象 C# 将 MMDeviceEnumerator 转换为 IMMDeviceEnumerator Inval

                  相关文章

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

                      <i id='sK11b'><tr id='sK11b'><dt id='sK11b'><q id='sK11b'><span id='sK11b'><b id='sK11b'><form id='sK11b'><ins id='sK11b'></ins><ul id='sK11b'></ul><sub id='sK11b'></sub></form><legend id='sK11b'></legend><bdo id='sK11b'><pre id='sK11b'><center id='sK11b'></center></pre></bdo></b><th id='sK11b'></th></span></q></dt></tr></i><div id='sK11b'><tfoot id='sK11b'></tfoot><dl id='sK11b'><fieldset id='sK11b'></fieldset></dl></div>
                    1. <tfoot id='sK11b'></tfoot>
                      • <bdo id='sK11b'></bdo><ul id='sK11b'></ul>
                    2. <small id='sK11b'></small><noframes id='sK11b'>