Could not load file or assembly 'CMS.PortalControls'

Andre Pfanz asked on April 5, 2017 19:00

I'm running Kentico 10.0.16 locally but keep getting this error:

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

I could not find CMS.PortalControls.dll in the bin folder or anywhere else. Is this file needed in v10? Does anyone have any ideas on this error?

Recent Answers


Michal Samuhel answered on April 6, 2017 08:34

Hi Andre,

With changes in namespaces and project clean up and CMS.PortalControls was moved to CMS.PortalEngine.Web.UI. Without error it is hard to tell where exactly is the call coming from.

Is this an upgraded project or some custom code file? It is possible, that some references were not changed.

Have you tried clearing temporary .net files? Same cached files from older version could have been loaded instead of new files.

You can check web config for direct assembly references and lastly you can try clearing global assembly cache as well to ensure new assemblies are loaded.

0 votesVote for this answer Mark as a Correct answer

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