简体   繁体   English

无法加载文件或程序集“Logging.SNLLoggingStandard3”或其依赖项之一。 该系统找不到指定的文件

[英]Could not load file or assembly 'Logging.SNLLoggingStandard3' or one of its dependencies. The system cannot find the file specified

Problem statement:问题陈述:

I am setting up my project.我正在设置我的项目。 When I build the project/solution.当我构建项目/解决方案时。 Project build successfully but I am getting this run time error项目构建成功,但我收到此运行时错误

Could not load file or assembly 'Logging.SNLLoggingStandard3' or one of its dependencies.无法加载文件或程序集“Logging.SNLLoggingStandard3”或其依赖项之一。 The system cannot find the file specified.该系统找不到指定的文件。

Tried Solutions:尝试的解决方案:

Below are the steps I have tried to resolve the issue:以下是我尝试解决问题的步骤:

  • Deleted the source code, Taken fresh/ clone of the repository ( Build the project where at the solution level Manage Package Level Solution-> Package Source is 'ALL'. )删除了源代码,重新获取/克隆存储库(在解决方案级别构建项目管理包级别解决方案-> 包源为“全部”。
  • I have updated the Logging.SNLLoggingStandard3.MILoggingWebEventProvider package to latest stable version.我已将 Logging.SNLLoggingStandard3.MILoggingWebEventProvider 包更新为最新的稳定版本。
  • Solution Configuration to ' Debug '. 调试”的解决方案配置。
  • Recreated the IIS Application pool.重新创建了 IIS 应用程序池。 Set Process Model->Identity to My user.将流程模型->身份设置为我的用户。
  • Deleted the Bin Folder and Rebuild the solution.删除Bin文件夹并重建解决方案。
  • Uninstall the VS and installed it again.卸载VS并重新安装

I am blocked at this moment due to this issue.由于这个问题,我此时被阻止。

Your kind guidance to resolve the issue is highly appreciated.Feel free to tag the developers who has faced and resolved the issues in the past.非常感谢您解决问题的亲切指导。请随意标记过去遇到并解决问题的开发人员。

Happy coding!快乐编码!

The problem is now addressed.现在解决了这个问题。

The root cause of the issue was wrong generation of the virtual directory, I have deleted all the applications from the Default web site and deleted all Application pool from IIS (Internet Information Service) Manager.问题的根本原因是虚拟目录生成错误,我已从默认网站中删除了所有应用程序,并从 IIS(Internet 信息服务)管理器中删除了所有应用程序池。 and created them again.并再次创建它们。

Diagnosis of issue:问题诊断:

I was able to diagnose this issue after I have enable the Assembly binding logging, Below are the steps to enable the assembly login:在启用程序集绑定日志记录后,我能够诊断此问题,以下是启用程序集登录的步骤:

  1. Search Registry Editor in the start menu and select Open file location.在开始菜单中搜索注册表编辑器并选择打开文件位置。 Open the Registry Editor as admin以管理员身份打开注册表编辑器

HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Fusion HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Fusion

Add:添加:

  • DWORD(32-Bit) ForceLog set value to 1 DWORD(32-Bit) ForceLog 设置值为 1
  • DWORD(32-Bit) LogFailures set value to 1 DWORD(32-Bit) LogFailures 将值设置为 1
  • DWORD(32-Bit) LogResourceBinds set value to 1 DWORD(32 位)LogResourceBinds 将值设置为 1
  • DWORD(32-Bit) EnableLog set value to 1 DWORD(32-Bit) EnableLog 设置值为 1
  • String LogPath set value to folder for logs (eg C:\\FusionLog) String LogPath 将值设置为日志文件夹(例如 C:\\FusionLog)

Make sure you include the backslash after the folder name and that the Folder exists .确保在文件夹名称后包含反斜杠并且文件夹存在。

You need to restart the program that you're running(Visual studio) to force it to read those registry settings.您需要重新启动正在运行的程序(Visual Studio)以强制它读取这些注册表设置。 Don't forget to turn off fusion logging when not needed.不要忘记在不需要时关闭融合日志记录。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集或其依赖项之一。 该系统找不到指定的文件。 (不允许GAC) - Could not load file or assembly or one of its dependencies. The system cannot find the file specified. (No GAC allowed) 无法加载文件或程序集“ServiceStack”或其依赖项之一。 该系统找不到指定的文件 - Could not load file or assembly 'ServiceStack' or one of its dependencies. The system cannot find the file specified 无法加载文件或程序集“Elmah”或其依赖项之一。 该系统找不到指定的文件 - Could not load file or assembly 'Elmah' or one of its dependencies. The system cannot find the file specified 无法加载文件或程序集的“扩展名”或其依赖项之一。 该系统找不到指定的文件 - Could not load file or assembly 'Extensions' or one of its dependencies. The system cannot find the file specified 无法加载文件或程序集“ Ajax”或其依赖项之一。 该系统找不到指定的文件 - Could not load file or assembly 'Ajax' or one of its dependencies. The system cannot find the file specified 具体:无法加载文件或程序集“xxxx”或其依赖项之一。 该系统找不到指定的文件 - A specific: Could not load file or assembly 'xxxx' or one of its dependencies. The system cannot find the file specified 无法加载文件或程序集“ XXX”或其依赖项之一。 该系统找不到指定的文件 - Could not load file or assembly 'XXX' or one of its dependencies. The system cannot find the file specified 无法加载文件或程序集“coba4”或其依赖项之一。 该系统找不到指定的文件 - Could not load file or assembly 'coba4' or one of its dependencies. The system cannot find the file specified 无法加载文件或程序集“路径”或其依赖项之一。 该系统找不到指定的文件 - Could not load file or assembly "path" or one of its dependencies. The system cannot find the file specified XamlParseException:无法加载文件或程序集“ ResourceLibrary,...”或其依赖项之一。 该系统找不到指定的文件 - XamlParseException: Could not load file or assembly 'ResourceLibrary, …' or one of its dependencies. The system cannot find the file specified
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM