Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Could not load file or assembly 'EPiServer.Framework'

Vote:
 

Im getting this exception when configuring EPi CMS 5 to run under IIS7.5. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'EPiServer.Framework' or one of its dependencies.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Assembly Load Trace: The following information can be helpful to determine why the assembly 'EPiServer.Framework' could not be loaded.

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


Stack Trace: 

[FileNotFoundException: Could not load file or assembly 'EPiServer.Framework' or one of its dependencies. Det går inte att hitta filen.]
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +95
   System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +54
   System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +69
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52

[ConfigurationErrorsException: Could not load file or assembly 'EPiServer.Framework' or one of its dependencies. Det går inte att hitta filen.]
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +360
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +27
   System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +44
   System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +52
   System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +200
   System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1365
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +95
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253

[HttpException (0x80004005): Could not load file or assembly 'EPiServer.Framework' or one of its dependencies. Det går inte att hitta filen.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9080108
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
#63804
Nov 29, 2012 18:42
Vote:
 

Epi CMS 5 should not call for this DLL. So i dont see why it does...

#63818
Nov 30, 2012 10:41
Vote:
 

Check file versions in bin folder and make sure you don't have any EPi 6 dlls there. That would be my first action. It sounds as you have a dll in there.

#63846
Nov 30, 2012 17:06
Vote:
 


Thanks for the tip! Its been checked. Only EPi 5 dlls in there. I know the EPiServer.Framework is only supposed to be called in CMS 6, so i dont understand how this can be?

#63859
Dec 03, 2012 10:28
Vote:
 

Hi!

What steps have you done to try making it run in IIS 7.5? Any configuration that you have added that references EPiServer 6 assemblies?

#63869
Dec 03, 2012 13:16
Vote:
 

Yes i found it now. They where probably copied by mistake when trying to configure for IIS 7.5. Thanks!

#63871
Dec 03, 2012 13:20
Vote:
 

Well there you go then. Feel free to mark it as answered then if you got it to work to help others with the same problem. :)

#63872
Dec 03, 2012 13:31
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.