强制.Net Windows服务在64位计算机上以32位运行 [英] Forcing a .Net Windows service to run as 32-bit on a 64-bit machine
本文介绍了强制.Net Windows服务在64位计算机上以32位运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经得到一个Windows服务,引用一个只运行在32位的COM组件。
我的机器是x64,所以服务尝试启动,无法创建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 / 32bit + myservice.exe
这篇关于强制.Net Windows服务在64位计算机上以32位运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文