强制 .Net Windows 服务在 64 位机器上作为 32 位运行 [英] Forcing a .Net Windows service to run as 32-bit on a 64-bit machine

查看:49
本文介绍了强制 .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 文件.有没有办法在win64 机器上强制服务以32 位模式启动?

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屋!

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