Print Page | Close Window

EM Loader Exception

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2480
Printed Date: 13-Apr-2025 at 2:41am


Topic: EM Loader Exception
Posted By: robdrye
Subject: EM Loader Exception
Date 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)}



Replies:
Posted By: sbelini
Date 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.


Posted By: robdrye
Date 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 :).
 
 
 
 



Print Page | Close Window