Follow @Lusse3 (137 followers)

Flickr Recent Photos

Laddning inför knatteliganKräftskivan i full rulle :-)Inför Kräftskiva :-)Ett av många äpplen från vårt äppelträd :-)Fika dags :-)Liams första fotbollsmatch. :-)Liams första tunnelbana åk. Självklart smockfullt. :-)Otrolig trevlig kväll med @plingplongen och hanna. Fast här ser vi lite seriösa ut. :-)Glömt att lägga upp bild på våran fina framsida. :-)Liam kör och ilia övervakar. :-)SoooommarMums!! Arkham expansion. :-)

Categories

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.

Leave a Reply

 

 

 

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