安装服务时出现问题 [英] Problem while installing Service

查看:186
本文介绍了安装服务时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Friends ..

使用installutil.exe安装Windows服务时出现问题

安装它时,引发System.IO.Filenotfoundexception异常.

我已经意识到的问题是:-路径由空白组成,例如

C:\ Program Files \ Anvi Corp. Ltd \ Install \ WindowsService.Exe ,因为您可以看到路径由
组成
Anvi Corp. Ltd. Program Files之间的空格

如果我通过创建具有相同名称但删除空格的文件夹来创建相同路径,则说明该路径有效.

所以,朋友请告诉我们如何解决这个问题.

在此先感谢.

Hi Friends..

I am getting a problem while installing a windows service using installutil.exe

While installing it throws exception System.IO.Filenotfoundexception.

The Problem i have realised is that :- The Path is Consist of blank spaces like

C:\Program Files\Anvi Corp. Ltd\Install\WindowsService.Exe as u can see the path is consist of

blank spaces between Program Files , Anvi Corp. Ltd.

If i Create same Path by creating Folders with the same names but Removing Blank Spaces then it is working.

So, Friends Please tell how to solve this Problem.

Thanks in Advance.

推荐答案

报价,我的朋友,报价.
具体来说,当您将字符串传递给installutil.exe时,在字符串两边用双引号引起来
Quotes, my friend, quotes.
Specifically, double quotes around the string when you pass it to installutil.exe
"C:\Program Files\Anvi Corp. Ltd\Install\WindowsService.Exe"

应对其进行修复.


这篇关于安装服务时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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