【已解决】Windows Service 问题System.IO.FileNotFoundException: 未能加载文件或程序集“file:///”或它 的某一个依赖项。系统找不到指定的文件。。
2016-12-24 23:58
1771 查看
bat文件 内容为
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
InstallUtil.exe
InstallUtil F:\Windows Services\WindowsServiceTest\WindowsServiceTest_1_0_0_0\WindowsServiceTest.exe
Net Start Service1
pause
其中C:\Windows\Microsoft.NET\Framework\v4.0.30319\为installutil的路径
WindowsServiceTest.exe为Windows Service服务的应用程序,教程
Service1为服务名
ps:.bat与WindowsServiceTest.exe在同一路径
【出现问题】
在初始化安装时发生异常:
System.IO.FileNotFoundException: 未能加载文件或程序集“file:///F:\Windows”或它
的某一个依赖项。系统找不到指定的文件。。
原因:
路径中出现了空格
解决方案:文件放到没有空格的路径
eg:
F:\WindowsServiceTest_1_0_0_0\WindowsServiceTest.exe
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
InstallUtil.exe
InstallUtil F:\Windows Services\WindowsServiceTest\WindowsServiceTest_1_0_0_0\WindowsServiceTest.exe
Net Start Service1
pause
其中C:\Windows\Microsoft.NET\Framework\v4.0.30319\为installutil的路径
WindowsServiceTest.exe为Windows Service服务的应用程序,教程
Service1为服务名
ps:.bat与WindowsServiceTest.exe在同一路径
【出现问题】
在初始化安装时发生异常:
System.IO.FileNotFoundException: 未能加载文件或程序集“file:///F:\Windows”或它
的某一个依赖项。系统找不到指定的文件。。
原因:
路径中出现了空格
解决方案:文件放到没有空格的路径
eg:
F:\WindowsServiceTest_1_0_0_0\WindowsServiceTest.exe
相关文章推荐
- 解决 System.IO.FileNotFoundException: 未能加载文件或程序集“Team.DLinqDAL”或它的某一个依赖项。系统找不到指定的文件。
- System.IO.FileNotFoundException:“未能加载文件或程序集“xxx”或它的某一个依赖项。系统找不到指定的文件。”
- 服务 在初始化安装时发生异常:System.IO.FileNotFoundException: "file:///D:\testService"未能加载文件或程序集。系统找不到指定文件。
- IIS报错:未能加载文件或程序集"file:///c:/windows/temp/iuwelzdf.dll"或它的一个依赖项。系统找不到指定的文件
- 未能加载文件或程序集"System.Data,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089"或它的某一个依赖项。系统找不到指定的文件。解决办法
- 解决 System.IO.FileNotFoundException: 未能加载文件或程序集
- System.IO.FileNotFoundException: 未能加载文件或程序集“CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken
- 未能加载文件或程序集“System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件
- 未能加载文件或程序集“SQLServerDAL”或它的某一个依赖项,系统找不到指定的文件-解决办法
- 未能加载文件或程序集“”或它的某一个依赖项。系统找不到指定的文件,解决方法
- 未能加载文件或程序集“System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件
- n unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.Additional information: 未能加载文件或程序集“..
- 安装错误: System.IO.FileNotFoundException: 未能加载文件或程序集“Microsoft.VisualStudio.Zip.9.0, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它
- Visual Studio 2008不能创建数据库连接出现:未能加载文件或程序集“Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral,PublicKeyToken=89845dcd8080cc91”或它的一个依赖项。系统找不到指定的文件的解决办法
- 异常:System.IO.FileNotFoundException: 未能加载文件或程序集“Microsoft.mshtml
- 未能加载文件或程序集“”或它的某一个依赖项。系统找不到指定的文件,解决方法
- System.IO.FileNotFoundException: 未能加载文件或程序集 ,webservice 部署500错误
- 分析器错误消息: 未能加载文件或程序集“System.WEB.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。
- 如何解决java.io.FileNotFoundException: mysql.ini (系统找不到指定的文件。)
- 解决:未能加载文件或程序集“AjaxControlToolkit”或它的某一个依赖项。系统找不到指定的文件。