windows服务安装 System.IO.FileLoadException
2017-11-10 13:44
274 查看
报错如下:
System.IO.FileLoadException: 未能加载文件或程序集“file:///D:\WindowsService\bin\Debug\WindowsService.exe”或它的某一个依赖项。不支持操作。 (异常来自 HRESULT:0x80131515)。
原因:exe文件是从别的电脑的考过来的。
右键exe文件,属性,最下面有个解除锁定按钮,点击下。再执行installutil.exe,问题解决。
相关文章推荐
- 服务 在初始化安装时发生异常:System.IO.FileNotFoundException: 未能加载文件或******
- 关于运行系统服务时出现 System.IO.FileLoadException的问题
- 服务 在初始化安装时发生异常:System.IO.FileNotFoundException: "file:///D:\testService"未能加载文件或程序集。系统找不到指定文件。
- 服务 在初始化安装时发生异常:System.IO.FileNotFoundException: 未能加载文件或******
- 异常详细信息: System.IO.FileLoadException: 未能加载文件或程序集
- 【已解决】Windows Service 问题System.IO.FileNotFoundException: 未能加载文件或程序集“file:///”或它 的某一个依赖项。系统找不到指定的文件。。
- system.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727'...问题解决方案
- win7 安装windows 服务 报错 System.Security.SecurityException 解决方法 An exception occurred during the Install phase. System.Security.SecurityException: The so
- System.IO.FileLoadException was unhandled解决方法
- 安装错误: System.IO.FileNotFoundException: 未能加载文件或程序集“Microsoft.VisualStudio.Zip.9.0, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它
- Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Enterp
- [SharePoint 2010]System.IO.FileLoadException: 找到的程序集清单定义与程序集引用不匹配
- windows 服务 安装时System.BadImageFormatException:格式无效
- Windows服务安装异常:System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不可 访问的日志: Security
- windows 服务 安装时System.BadImageFormatException:格式无效
- System.IO.FileLoadException: 未能加载文件或程序集 访问拒绝 解决方案之一
- windows 服务 安装时System.BadImageFormatException:格式无效
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- 异常详细信息: System.IO.FileLoadException: 未能加载文件或程序集“Office, Version=7.0.3300.0,
- Windows服务安装异常:System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不可 访问的日志: Security