【问题标题】:Running Installutil to install a windows service on a shared folder运行 Installutil 以在共享文件夹上安装 Windows 服务
【发布时间】:2013-01-18 23:14:20
【问题描述】:

-你好,

我正在尝试从这样的共享文件夹安装 Windows 服务:

installutil "\\\10.1.5.120\Path1\Path2\MyService.exe"

并出现此错误:

Exception occurred while initializing the installation:
System.IO.FileLoadException: Could not load file or assembly 'file://\\10.1.5.120\Path1\Path2\MyService.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).

installutil 日志文件中没有日志,当我尝试从本地路径安装服务时,它安装成功。

所以我想知道是否可以通过共享路径在电脑上安装 Windows 服务?

感谢您的帮助。

【问题讨论】:

    标签: windows-services installutil


    【解决方案1】:

    你有没有尝试添加

    <runtime>
       <loadFromRemoteSources enabled="true" />
    </runtime>
    

    在 installutil.exe 所在的 installutil.config 中?

    您也可以尝试右键单击 dll 和服务 exe -> 属性 -> 取消阻止。

    【讨论】:

    • 感谢您提供此信息
    • 伙计,我花了一天时间试图让 Fusion++ 告诉我一些事情。这个小技巧需要高分!!!
    猜你喜欢
    • 1970-01-01
    • 2014-03-18
    • 1970-01-01
    • 2015-10-05
    • 1970-01-01
    • 2012-05-04
    • 2017-12-17
    • 2016-01-24
    • 1970-01-01
    相关资源
    最近更新 更多