New Posts New Posts RSS Feed: EM Loader Exception
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

EM Loader Exception

 Post Reply Post Reply
Author
robdrye View Drop Down
Newbie
Newbie
Avatar

Joined: 05-Aug-2009
Posts: 22
Post Options Post Options   Quote robdrye Quote  Post ReplyReply Direct Link To This Post Topic: EM Loader Exception
    Posted: 01-Feb-2011 at 1:25pm
Here is my scenario:
1.) I've got solution A which contains an existing client/server library utilizing DF and working fine.
2.) I've got solution B which also contains an existing client/sever library utilizing DF and also working fine.
3.) When I take the client/server library in solution B and include it in solution A I get the Exception below in the first EM ctor to spin up. 
 
  As soon as I remove solution B's client/server library from solution A everything goes back to working fine.  I've been staring at the references in the problematic library for the past hour and am convinced there is nothing it references which is missing.
 
It's been a while since I worked with the basic solution setup with DevForce and was hoping someone could point me in the right direction.  Thanks.
 
{System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_Parts()
   at IdeaBlade.Core.Composition.PartsCatalog.LoadCatalog()
   at IdeaBlade.Core.Composition.PartsCatalog..ctor()
   at IdeaBlade.Core.Composition.CompositionHost..ctor()
   at IdeaBlade.Core.Composition.CompositionHost.get_Instance()
   at IdeaBlade.Core.IdeaBladeConfig.GetAllProbeAssemblyNames()
   at IdeaBlade.Core.AuthHelper.LoadRuntimeLicense(Action`1 errorCallback)
   at IdeaBlade.Core.AuthHelper.LoadLicense(Action`1 licenseErrorCallback)
   at IdeaBlade.Core.IdeaBladeConfig.Initialize()
   at IdeaBlade.Core.IdeaBladeConfig.get_Instance()
   at IdeaBlade.Core.IdeaBladeConfig.AssertNonDefaultVersion(Boolean throwIfDefault)
   at IdeaBlade.EntityModel.EntityManager..ctor(Boolean shouldConnect, String dataSourceExtension, EntityServiceOption entityServiceOption)
   at IdeaBlade.EntityModel.EntityManager..ctor(Boolean shouldConnect)
   at PBI.Core.CoreEntityManager..ctor(Boolean shouldConnect)
   at PBI.Core.SessionDataInitializer.InitEntityManager(ISession session)
   at PBI.Core.SessionDataInitializer.InitializeWebClientSession(ISession session, Action`1 callback)
   at PBI.Core.Session.LoginWebClient(Int32 userId, Int32 databaseId, Action`1 callback)
   at PBI.Client.App.Application_Startup(Object sender, StartupEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 03-Feb-2011 at 3:35pm
Hi robdrye,
 
Can you check if there are any license exceptions and/or warnings in the debug log?
 
Also, what version of DevForce are you running?
 
sbelini.
Back to Top
robdrye View Drop Down
Newbie
Newbie
Avatar

Joined: 05-Aug-2009
Posts: 22
Post Options Post Options   Quote robdrye Quote  Post ReplyReply Direct Link To This Post Posted: 09-Feb-2011 at 7:24am
Thanks for the response  sbelini .....
 
I did not get any license exceptions or warnings in the debug log and  I never deteremined what the underlying cause of the issue was.  What I did do was flip my scenario around and included the project from solution a in solution b and everything worked fine.  This wasn't the ideal solution however it got me back on track :).
 
 
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down