无法运行客户端com [英] Cannot run client com

查看:103
本文介绍了无法运行客户端com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经使用.net创建了COM对象.然后,我使用一个非托管客户端来使用COM.结果效果很好.然后,我将客户端应用程序移植到另一台计算机上.但这给了我一个错误:该应用程序无法启动,因为其并行配置不正确.

我已经将程序集注册到注册表和GAC.为了确定,我还检查了GAC文件夹和程序集在那儿.我该如何纠正此问题.我发现了哪些配置.

我使用的是VS 2005 Pro,Win 7

Hye,

I have created COM object using .net. And then I use A Unmanaged client to use the COM. The result works fine. And then I port the client app into another computer. But it give me an error : The application has failed to start because its side by side configuration is incorrect.

I already register the assembly to registry and GAC. To make it sure,I also check the GAC folder and the assembly was there. How do I rectify this problem..What the configuration those I have uncovered.

I''m using VS 2005 Pro, Win 7

推荐答案

在引用该程序集时可能需要更具体.客户端计算机是否已经安装了旧版本?该COM的版本是否也在应用程序目录中?是否在多个地方注册:
[HKEY_CURRENT_USER \ SOFTWARE \ Microsoft \ .NETFramework \ AssemblyFolders \
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ .NETFramework \ AssemblyFolders \

http://msdn.microsoft.com/en-us/library/yf1d93sz% 28vs.71%29.aspx [ ^ ]

一些额外的信息:
http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=1175 [ ^ ]

http://msdn.microsoft.com/en-us/library/ex0ss12c%28VS .80).aspx [ ^ ]

祝您好运!
You probably need to be more specific when referencing that assembly. Does the client machine have an older version installed already? Is the version of that COM also in the application directory? Is it registered at multiple places:
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\

http://msdn.microsoft.com/en-us/library/yf1d93sz%28vs.71%29.aspx[^]

Some extra info:
http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=1175[^]

http://msdn.microsoft.com/en-us/library/ex0ss12c%28VS.80).aspx[^]

Good luck!


您必须在要安装该程序集的新系统上将程序集注册为COM应用程序.

您需要执行此调用才能将其注册到COM.
You have to register the assembly as a COM application with the new system you are installing it on.

You need to execute this call to get it registered with COM.
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\regsvcs /fc "[Drive]:\[Path]\[AssemblyName.dll]"


这篇关于无法运行客户端com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆