Follow @Lusse3 (236 followers)

Flickr Recent Photos

Soluppgången i KnivstaEn vacker morgonPalt palt i stora lass! Sara lyckades magnifikt med sin första palt sats #bArkham horrorDe gjorde bättre tidningar förr :) "gör det själv" från 1970 talet #fbPlanterar litePotatistävlingDragkampDragkampPotatistävlingMini DragkampKapten Liam

Kategorier

ClassFactoryException: ClassFactory not initialized After EPiServer 5 Migration

This is a common error to get after migration to EPiServer 5 and happens when you do the migration itself on a machine running IIS7, because the migration will make your web.config configured for IIS7, then when you take it to your developing machine that is running IIS6 you’ll get this error. What you need to do is take away the IIS7 settings and implement the IIS6 ones. Biggest difference is that IIS6 uses <system.web>(Integrated mode)  and IIS6 uses <system.webserver>(Classic mode).

IIS6 Example:


<system.web>
<httpModules>
<add name=”WorkflowRuntime” type=”EPiServer.
Web.InitializationModule, EPiServer” />
</httpModules>
<httpHandlers>
<add verb=”Get” path=”WebResource.axd”
type=”System.Web.Handlers.AssemblyResourceLoader” />
</httpHandlers>
</system.web>

IIS7 example


<system.webServer>
<modules>
<add name=”WorkflowRuntime” type=”EPiServer.Web.
InitializationModule, EPiServer” />
</modules>
<handlers>
<add name=”webresources” verb=”Get” path=”WebResource.axd”
type=”System.
Web.Handlers.AssemblyResourceLoader” />
</handlers>
</system.webServer>

The examples are taken from the EPiServer documentation and you can read more about this issue there.

Easy fix:

Easiest way for you to fix this is to simply install a new EPiServer 5 solution on your machine that is running IIS6, copy the web.config and add your specific changes to that web.config.

Kommentera

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Additional comments powered by BackType