Solving Assembly not Found | FileNotFoundException | Fusion Log

前提是你 提交于 2019-12-24 02:48:37

问题


I am trying to deploy my solution package (wsp) to SharePoint 2007 environment. The WSP contains a feature which loads the feature receiver class to deploy a timer job at run time.

While deploying this WSP, I am consistently getting

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

I have double checked everything (public key token, assembly name etc) is correct. I have deployed many WSP in past and I am confused why this one is failing.

To debug this , I am using Assembly Binding Log Viewer. I have selected "Log in exception text" and given custom log path. Neither I am getting any log messages and the exception text is consistently giving this message:

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].

Any ideas why this could be happening ? How to enable Assembly Binding Log viewing?


回答1:


To turn the logging on use Regedit and updated the registry entry in the error message.

It could be that your program requires a dll that is not included in the package.

Sometimes it just needs an IISRESET to realise that the dll is available in the GAC.



来源:https://stackoverflow.com/questions/4562859/solving-assembly-not-found-filenotfoundexception-fusion-log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!