Print Page | Close Window

Constructor on type 'IdeaBlade.EntityModel.EntityManager' not found

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=2432
Printed Date: 29-Jul-2026 at 1:07pm


Topic: Constructor on type 'IdeaBlade.EntityModel.EntityManager' not found
Posted By: JohnBloom
Subject: Constructor on type 'IdeaBlade.EntityModel.EntityManager' not found
Date Posted: 10-Jan-2011 at 11:59am
I got into work this morning and made some changes to our app. When I tried to run I got the error below. I was able to run Friday when I left the office and the changes I made were view - viewmodel level, not framework level. In light of that dont know where to start to figure this out. 

I am not sure what I did. If someone had some idea of where to start looking it would be much appreciated. 

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Zune 4.7)
Timestamp: Mon, 10 Jan 2011 19:35:49 UTC


Message: Unhandled Error in Silverlight Application 
Code: 4004    
Category: ManagedRuntimeError       
Message: EntityServerException: Constructor on type 'IdeaBlade.EntityModel.EntityManager' not found. ---> System.MissingMethodException: Constructor on type 'IdeaBlade.EntityModel.EntityManager' not found.
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at IdeaBlade.EntityModel.Server.EntityServer.ConstructEntityManager(SessionBundle bundle, Type emType)
   at IdeaBlade.EntityModel.Server.EntityServer.InvokeServerMethod(SessionBundle sessionBundle, ITypeWrapper entityManagerType, String typeName, String methodName, Object[] args)
   at SyncInvokeInvokeServerMethod(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   at IdeaBlade.EntityModel.CoroutineOperation.HandleError(INotifyCompletedArgs notifyCompletedArgs)
   at IdeaBlade.EntityModel.CoroutineOperation.OnCompleted(INotifyCompletedArgs notifyCompletedArgs)
   at IdeaBlade.EntityModel.CoroutineSerialProcessor.HandleCompletedAndProcessNext(INotifyCompletedArgs args)
   at IdeaBlade.EntityModel.BaseOperation.BaseOnCompleted()
   at IdeaBlade.EntityModel.BaseOperation`2.OnCompleted()
   at IdeaBlade.EntityModel.BaseOperation`2.IdeaBlade.EntityModel.IHasAsyncEventArgs.OnCompleted()
   at IdeaBlade.EntityModel.AsyncProcessor`1.<>c__DisplayClass2.<.ctor>b__0(TArgs args)
   at IdeaBlade.EntityModel.AsyncProcessor`1.Signal()
   at IdeaBlade.EntityModel.AsyncProcessor`1.<Execute>b__5(Object x)     

Line: 56
Char: 13
Code: 0
URI: http://localhost:53667/RunRepositoriesTests.aspx



-------------
-John Bloom



Replies:
Posted By: JohnBloom
Date Posted: 10-Jan-2011 at 12:22pm
Well I figured it out. I was using the framework that you get with professional services and for some reason when I tried to use CompositionContext in an interface it freaked out. Not sure why but at least I am not stuck.



-------------
-John Bloom


Posted By: DenisK
Date Posted: 10-Jan-2011 at 1:01pm
Hi John;

Thanks for posting your solution. Could you post the CompositionContext code snippet that fails? I need to find out whether this is a bug or not.

Thanks!



Print Page | Close Window