This error will typically occur if you copy a web.config file from Vista (which runs IIS 7.0) to a Win2003 server which has IIS 5.0. You need to adjust your server web.config file to be IIS 5.0 compatible (<system.webServer> should be <system.web> etc..).
It could also be that you are trying to do actions using DataFactory too early in the initialization, at least that was a problem in earlier versions of CMS 5. See http://world.episerver.com/Forum/Developer-forum/Developer-to-developer/Thread-Container/2008/8/SP3-Uppgrading-problems/ .
In that case the problem is usually intermittent (I suppose it's a timing issue) so it doesn't always appear but it might appear more often on some systems than others, even if they are running the same code. When I had the problem it only appeared in dev environment, never in production (at least not to my knowledge). Using the approach suggested in the thread above solved that problem.
Hello,
I've been working on Episerver for a while now, but I very often experience problems with setting up a solution due to the error "Classfactory not initialized".
For most cases it's been the connection to the database or problems with the vpp-path. I've read on some forums that it might be appool aswell. I use the appool created with the intstallation manager so it shouldn't be a problem.
This problem always occur when I try to upgrade or setting up a local solution on my computer from our repository (TortoiseSVN).
I really miss a guide in how to avoid getting this error or get to the bottom of the problem so I can figure out what is wrong.
The problem I have now is that I have a working solution on my vista workstation and I'm about to upgrade existing solution on a Win2003 server. I've done a upgrade on the existing solution to make sure the database is up to date. I have installed a basic solution without DB to get a working website in IIS and copied the solution into this directory. Then I compared the web.config from the previous solution with my local version.
And now I get the error as you can see in the bottom of this post.
In advance thanks a lot for your help!