如何将窗口服务从32位计算机转换为64位计算机 [英] How to convert window service from 32-bit computer to 64-bit computer

查看:68
本文介绍了如何将窗口服务从32位计算机转换为64位计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

在这里,我编写了Windows Service的代码,该代码已经在32位计算机上开发了该服务,并且可以正常工作.现在,我正在尝试在64位计算机上安装相同的Windows Service安装程序.引用不是对象的实例.可能是由于程序集版本问题引起的错误.因此iam不会在iam做错的地方.如果有人对此有所了解,请共享信息.



问候,

AnilKumar.D

Dear Friends,

Here i have written the code for Windows Service that i have developed the Service in 32-bit computer its working fine.Now iam trying to install the Same Windows Service setup in 64-Bit computer.So the SetUp is not Installing the Error is Object Referrence is not an instance of an Object.May be the error is from the Assembly version problem.So iam not getting where iam doing wrong.if any body knows regarding this please share the Information.



Regards,

AnilKumar.D

推荐答案

在Windows Core 6.0及更高版本上,您甚至可以在x64操作系统中安装x86驱动程序,但是使用.net解析,这有点复杂.首先阅读以下内容: http://www.dottodotnet.com/2010/04/compiling-net-for-specific-target.html [依赖步行者 [ ^ ],以检查是否存在由于平台目标不一致而无法加载的引用的Assambis.

最好的方法是将解决方案的发布目标设置为x64,并确保将第三方组件的x64或AnyCPU版本安装到目标计算机上.
On windows core 6.0 and above you can have even x86 drivers in an x64 OS, but with .net assamblies it is a little bit complicated. First read this: http://www.dottodotnet.com/2010/04/compiling-net-for-specific-target.html[^]. You can use a dependency walker[^] to check if there are assambies referenced that cannot be loaded due to unconforming platform target.

The best way is to set your solution''s release target to x64 and be sure to install third-party the x64 or AnyCPU version of the third party components to the target machine.


这篇关于如何将窗口服务从32位计算机转换为64位计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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