[英]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:以下是我尝试解决问题的步骤:
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:在启用程序集绑定日志记录后,我能够诊断此问题,以下是启用程序集登录的步骤:
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Fusion HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Fusion
Add:添加:
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.