InstallUtil.exe报错,错误代码HRESULT: 0x80131515
来源:互联网 发布:大数据宣传片 编辑:程序博客网 时间:2024/06/06 21:03
InstallUtil.exe报错,错误代码HRESULT: 0x80131515
使用InstallUtil.exe安装一个用.NET写的Windows服务时,报错了,错误信息如下:
Exception occurred while initializing the installation:
System.IO.FileLoadException: Colud not load file or assembly 'xxxxxx' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
按照提示的指示,排除了以下情况:
1、服务本身在其他电脑上正常
2、.NET框架安装正常
3、所有依赖项均已到位
4、待安装的服务程序放在C盘的,排除了权限问题
5、最后把项目在这个服务器上重新编译了一下,问题解决
到底是因为什么原因为导致这个问题呢,总不能每做一台服务器都装个VS2008重新编译一下吧,通过对比,发现发生故障的文件在文件属性中多了一个解除锁定的按钮。
点击解附近锁定,问题解决。
原来Exe文件或者Dll文件从其他电脑拷贝过来的时候,都会自动加上这个标记,需要手工去掉。
0 0
- InstallUtil.exe报错,错误代码HRESULT: 0x80131515
- HRESULT:0x80131515
- HRESULT:0x80131515
- nopcommerce之HRESULT:0x80131515异常
- wpf 编辑XAML出现Exception from HRESULT: 0x80131515
- VS: Unknown Build Error Could not load file or assembly (HRESULT 0x80131515)
- InstallUtil.exe 路径
- 解决VS2008安装报错“setup.exe [2] ISetupComponentPrePostInstall() failed in ISetupManagerInternalInstallManager() with HRESULT -21474
- 创建Shp报错 (异常来自 HRESULT:0x80010105 (RPC_E_SERVERFAULT))
- AE二次开发异常报错:异常来自 HRESULT:0x80040228
- 页面报错错误代码
- InstallUtil.exe 安装服务程序
- 安装程序工具 InstallUtil.exe
- 安装.net framework 4.0失败,出现HRESULT 0xc8000222错误代码
- Windows 7安装.net,错误代码HRESULT 0xc8000222解决方法
- 安装.net framework 4.0失败,出现HRESULT 0xc8000222错误代码
- 不使用installutil.exe安装WINDOWS服务
- 不使用installutil.exe安装WINDOWS服务
- HDU 5617 Jam's maze(dp)
- JVM参数总结及调优
- android Button防止多次点击
- 在Vim中执行Python
- LCA-最近公共祖先-Tarjan解法
- InstallUtil.exe报错,错误代码HRESULT: 0x80131515
- mac 终端 常用命令
- 清除WKWebView的缓存
- javascript实现用户名是否存在的实时提醒
- C++基础知识——引用
- Android Studio如何用release签名进行debug调试
- runtime简单理解之消息传递 objc_msgSend
- Android Studio 生成APK实践
- MFC基于单文档制作吹彩色泡泡程序