博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
配置dcom时,在此计算机运行应用程序不可选
阅读量:5757 次
发布时间:2019-06-18

本文共 2021 字,大约阅读时间需要 6 分钟。

Finally.... After installing windows 7 - 32 bit and seeing that DcomCnfg worked led me to believe that the problem was 64 bit related.  So I googled DcomCnfg 64 bit and found:

Kepware Server是32位的,所以要在32位程序下配置应用服务。

在控制台运行mmc comexp.msc /32即可。

 

"Dcomcnfg.exe and 64-bit Applications

On x64 operating systems from Windows XP to Windows Server 2008, the 64-bit version of DCOMCNFG.EXE does not correctly configure 32-bit DCOM applications for remote activation. This behavior causes components that are meant to be activated remotely instead being activated locally. This behavior does not occur in Windows 7 and Windows Server 2008 R2 and higher versions.

The workaround is to use the 32-bit version of DCOMCNFG. Run the 32-bit version of mmc.exe and load the 32-bit version of the Component Services snap-in by using the following command line.

C:\WINDOWS\SysWOW64>mmc comexp.msc /32

The 32-bit version of Component Services correctly registers 32-bit DCOM applications for remote activation."

My suspicions were confirmed, although the article incorrectly has the sub-title: "Dcomcnfg.exe and 64-bit Applications"

The 64 bit version of DCOMCNFG does NOT work!   The 32 bit version of DCOMCNFG does work.

I immediately tested this on Windows 7 - 64 bit:   Start -> Run -> mmc comexp.msc /32

Then going to my 32 bit ATL exe component under DCOM Config -> properties -> location tab.  All check boxes were available, none were grey.   Furthermore the previously greyed unchecked "Run application on this computer" was now checked and available!  Imagine that, previously shown unchecked and not editable, now shown correctly using the 32 bit version of DcomCnfg!

It is disappointing that the article says "This behavior does not occur in Windows 7 and Windows Server 2008 R2 and higher versions."  Hello?   Does anybody test this stuff?  Clearly this statement in the article is false.

Anyway.... the solution to bad DcomCnfg behavior under 64 - bit Windows OS's is to use the 32 bit version of DcomCnfg.

Start -> Run -> mmc comexp.msc /32

转载地址:http://mlpkx.baihongyu.com/

你可能感兴趣的文章
开发者报 | Github造假产业链曝光,花钱就能买Star;黑客又多一个可以偷你密码的方法了...
查看>>
git 相关开发常用
查看>>
编码服务正在步入云端
查看>>
javascript对象数组的二维比较和插入
查看>>
【CodeForces】585 E. Present for Vitalik the Philatelist
查看>>
阿里数据库内核月报:2017年02月
查看>>
细节之处 这么长时间才知道 哎 不应该
查看>>
Codeforces Round #288 (Div. 2) E. Arthur and Brackets [dp 贪心]
查看>>
转 C++中不能声明为虚函数的有哪些函数
查看>>
[开源]KJFramework.Message 高性能二进制消息框架 - 多元素数组的高性能优化
查看>>
补全Java基础(二)JavaSE基础
查看>>
Codelabs & 研讨会, 小小一隅,大大收获!
查看>>
《必备干货!程序员的自我修养&高效学习方法》观后笔记
查看>>
Sonar 应用
查看>>
为什么要重写toString()方法和hashcode()方法
查看>>
Maven
查看>>
正确甄别API & REST API & RESTful API & Web Service之间的差异与联系
查看>>
SpringBoot 整合Shiro实现动态权限加载更新+Session共享+单点登录
查看>>
Node js 集群(cluster)
查看>>
Eclipse(STS) 初次搭建Spring Cloud项目之路由器(服务网关)zuul(六)
查看>>