c# - 解决程序集未找到 |文件未找到异常 |融合日志

标签 c# .net sharepoint sharepoint-2007 fusion

我正在尝试将我的解决方案包 (wsp) 部署到 SharePoint 2007 环境。 WSP 包含加载功能接收器类以在运行时部署计时器作业的功能。

在部署此 WSP 时,我一直在获取

Feature 'fb631f6c-2c46-4ab5-b7b3-f3d0c949c5f0' could not be installed because the loading of event receiver assembly "XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad6857072694970" failed: System.IO.FileNotFoundException

我仔细检查了所有内容(公钥 token 、程序集名称等)是否正确。我过去部署过许多 WSP,我很困惑为什么这个失败。

为了对此进行调试,我使用了程序集绑定(bind)日志查看器。我选择了“登录异常文本”并给出了自定义日志路径。我也没有收到任何日志消息,并且异常文本始终显示此消息:

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

知道为什么会发生这种情况吗?如何启用程序集绑定(bind)日志查看?

最佳答案

要打开日志记录,请使用 Regedit 并更新错误消息中的注册表项。

可能是您的程序需要一个未包含在包中的 dll。

有时它只需要一个IISRESET 就可以意识到该dll 在GAC 中可用。

关于c# - 解决程序集未找到 |文件未找到异常 |融合日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4562859/

相关文章:

c# - 对已实例化的对象使用 using 语句

c# - 需要文本排序/对齐/间距算法

c# - 我怎样才能防止 "possible loss of fraction"?

c# - using关键字和IDisposable接口(interface)有什么关系?

c# - 从同名节点获取值

javascript - 从 SharePoint 中的 javascript 明确识别当前用户

c# - 快速 : Set top 2 bits of int

c# - 从 Delphi 调用 .NET DLL

c# - 我仍然可以使用 CAML 进行此查询吗?

vb.net - 在哪里可以下载 Sharepoint DLL