중앙 관리 : 작업 정의 (_admin / servicejobdefinitions.aspx) 페이지 던지기 오브젝트 참조 오류

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/83282

문제

중앙 관리자 : 작업 정의 (_admin / servicejobdefinitions.aspx) 페이지 객체 참조 오류를 던지고 있습니다.모든 것이 예상 3-4 일 후에 일하고 있었고 맞춤 타이머 작업이 예상대로 작동하는지 확인하려고했지만 위의 오류가 발생합니다.사용자 정의 타이머 작업을 수축시킨 다음, 타이머 작업을 볼 수 있습니다.이 기능을 활성화하려고하면 아래 오류가 발생합니다.

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase,  Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr  pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean  suppressSecurityChecks) 
  at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) 
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 
at System.Reflection.Assembly.Load(String assemblyString) 
at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject() 

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

도움이 되었습니까?

해결책

Below mentioned issue helped me to resolve the issue: Failed to load receiver assembly when activate feature

If the assembly contains any event or feature receivers then the deployment target should be Global Assembly Cache. And if you deploy the solution using a command line then you should start a new instance of that before activating the feature (this is most important when you get to upgrading) as an old version of the dll can't be unloaded.

Remove feature receiver
Clean solution
Close Visual Studio
Delete SharePoint project's obj folder in Windows Explorer
Delete SharePoint project's bin folder in Windows Explorer
Open Visual Studio and re-add feature receiver
Start Debugging
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top