November Happy Hour will be moved to Thursday December 5th.

Error on first deployment

Vote:
 

Hi,

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.

so:

Mysite-name
     appdata
     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?

Thanks
Danny

 

#80333
Jan 21, 2014 10:15
Vote:
 

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

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

#80334
Jan 21, 2014 10:23
Vote:
 

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

#80335
Jan 21, 2014 10:27
Vote:
 

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

The stack trace indicate issues with loading virtual roles, see: 
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=61930

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

#80336
Jan 21, 2014 10:30
Vote:
 

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

#80337
Jan 21, 2014 10:36
Vote:
 

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

#80338
Jan 21, 2014 10:43
Vote:
 

Ok, good!

#80339
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.