SaaS CMS has officially launched! Learn more now.

Error on first deployment



I have a local, largely unchanged EPiServer 7.5 alloy MVC template site, that I've now deployed onto an internal server for demo purposes.

I must be missing something (obvious I'm sure) but I am getting the following error when attempting to load the site:


2014-01-21 09:02:52,624 [1] ERROR EPiServer.Framework.Initialization.InitializationEngine: Initialize action failed for Initialize on class EPiServer.Framework.FrameworkInitialization, EPiServer.Framework, Version=7.5.440.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7
System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at EPiServer.Framework.FrameworkInitialization.InitializeVirtualRoles()
at EPiServer.Framework.FrameworkInitialization.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.ModuleNode.<>c__DisplayClass5.<Initialize>b__4()
at EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key)
at EPiServer.Framework.Initialization.ModuleNode.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()

I simply, for now did a file system deploy, and copied the files to the server. 

I ensured I copied the appdata folder, and wwwroot at same level.


     wwwroot (this is where IIS references site)

I've checked security settings, and "Everyone" is set on all folders..

Is there something that I must change in a config file?



Jan 21, 2014 10:15

Can you make sure that EPiServerFramework.config has the following setting:

<appData basePath="..\appdata" />

Jan 21, 2014 10:23

Thanks for the quick reply Mari:
Yes, I can confirm that I do have the above setting, and that the folder exists.

Jan 21, 2014 10:27

Do the server run on the same IIS version as you have locally?

The stack trace indicate issues with loading virtual roles, see:

My guess is that some of the virtual roles are deprecated.

Jan 21, 2014 10:30

Ah.. So, locally I have 7.5, but the server is on 7.0..
Can you suggest where/what I would need to remove ?

I am going to try and see if I can get a new server setup that has 7.5 however.. 

Jan 21, 2014 10:36

Right, got it working..
Turned out that a load on dlls were not being included during the deployment (mainly the EPiServer.Cmo dlls)..
I've copied these across now, and site is loading..

Jan 21, 2014 10:43

Ok, good!

Jan 21, 2014 10:46
* 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.