在64位计算机上强制一个.net Windows服务为运行32位机上、net、Windows

由网友(心蛊)分享简介:我已经被赋予了窗口服务,它引用了只能运行在32位的COM组件。我的机器是64位,因此该服务将尝试启动,无法创建COM组件,并且死。 I've been given a windows service which references a COM component that only runs on 32-bit....

我已经被赋予了窗口服务,它引用了只能运行在32位的COM组件。 我的机器是64位,因此该服务将尝试启动,无法创建COM组件,并且死。

I've been given a windows service which references a COM component that only runs on 32-bit. My machine is x64, so the service tries to start, fails to create the COM component, and dies.

我没有源代码,只是.exe文件。有没有办法强制服务启动在32位模式下的Win64的机器上?

I don't have the source, just the .exe file. Is there any way to force a service to start in 32-bit mode on a win64 machine?

推荐答案

也许.NET工具 corflags 的会有所帮助:

Maybe the .NET tool corflags will help:

corflags / 32位+ myservice.exe

阅读全文

相关推荐

最新文章