在命令提示符下安装Windows Service期间创建的错误 [英] Error created during the installation of Windows Service in Command prompt

查看:98
本文介绍了在命令提示符下安装Windows Service期间创建的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我已经在分层体系结构中创建了Windows服务.然后使用命令"Installutil"将其安装在命令提示符中(而不是在Visual Studio命令提示符中). 我收到错误消息无法加载文件或程序集+路径名" +或其依赖项之一.试图加载格式不正确的程序"
谁能帮我...

Hi friends,

I had created a windows service in layered architecture.Then I installed it in the command prompt(not in the Visual Studio Command Prompt)using the command "Installutil"
I got the error "Could not load file or assembly +"path name" +or one of it''s dependencies.An attempt was made to load a program with an incorrect format"
Can anybody help me...

推荐答案

请确保该服务的DLL和所有相关DLL均使用相同的目标类型(即32位或64位)进行编译).
Make sure that the service''s DLL and all dependent DLLs are compiled with the same target type (ie 32 or 64 bit).


这篇关于在命令提示符下安装Windows Service期间创建的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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