Could not load file or assembly 'CMS.ProjectManagement' or one of its dependencies. The system canno

Sachin Pachori asked on September 19, 2016 07:23

Hi,

As part of the upgrade the CMS.ProjectMangement dll is removed however we are not able to load the scheduled task page and also getting this error in backend in CMS_EventLog

Message: Could not load file or assembly 'CMS.ProjectManagement' or one of its dependencies. The system cannot find the file specified.

Exception type: System.IO.FileNotFoundException Stack Trace: 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 CMS.Base.ClassHelper.GetAssemblyInternal(String assemblyName) at CMS.Base.ClassHelper.GetClassInternal(String assemblyName, String className) at CMS.Scheduler.TaskExecutor.get_TaskInstance() at CMS.Scheduler.TaskExecutor.RunAsync(WindowsIdentity wi) at CMS.Scheduler.SchedulingExecutor.ExecuteTask(Int32 taskID, String siteName)

Thanks, Sachin

Recent Answers


Michal Samuhel answered on September 19, 2016 08:18

It looks like some code files were not upgraded properly and thus are referencing older controls. As a workaround you might be able to replace them by copying the files from clean installation, but there is not telling whether there is something else that may be broken.

Did you have upgrade finished logged in the event log after finishing the upgrade?

Generally I would recommend restoring backups and re-trying the upgrade.

0 votesVote for this answer Mark as a Correct answer

Sachin Pachori answered on September 19, 2016 08:20

Yes I have tried couple of time upgrading it however still getting this error. Can you let me know the starting point to debug this issue.

0 votesVote for this answer Mark as a Correct answer

Michal Samuhel answered on September 19, 2016 13:31

Based on stack trace it seems like the problem is coming from CMS.Scheduler, my guess is on some task start. Any more details in the event URL or at least task name? Do you have any custom scheduled tasks running? What version you upgraded from and to? This could lead to identifying part of code that is making this obsolete code.

One more thing at last. Have you tried clearing .NET temp files. It may be possible that there are old files stored and these calls are the result of that.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.