Windows services 运行Installutil在共享文件夹上安装windows服务

Windows services 运行Installutil在共享文件夹上安装windows服务,windows-services,installutil,Windows Services,Installutil,-你好, 我正在尝试从以下共享文件夹安装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\MyServ

-你好,

我正在尝试从以下共享文件夹安装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日志文件中没有日志,当我尝试从本地路径安装服务时,它会成功安装

所以我想知道是否可以从共享路径在pc上安装windows服务

谢谢您的帮助。

您尝试添加了吗

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

在installutil.config中,installutil.exe位于何处


您也可以尝试右键单击DLL和service exe->properties->unblock。

感谢您提供此信息人。我花了一天时间试图让Fusion++告诉我一些事情。这个小把戏需要得到更高的分数!!!