Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

constructor on type not found

$
0
0

Hi friends,

Can anybody help me with this error.

 

Result Message:

Test method OrderTracker.Test.Library.OrderEditTest.GetOrder threw exception: 

Csla.DataPortalException: DataPortal.Fetch failed (Exception has been thrown by the target of an invocation.) ---> Csla.Reflection.CallMethodException: OrderEdit.DataPortal_Fetch method call failed ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Constructor on type 'Endoscopy.DalEf.EndoscopyEntities' not found.

Result StackTrace:

at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)

   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 Csla.Data.EF6.DbContextManager`1..ctor(String database, String label, DbCompiledModel model, ObjectContext context)

   at Csla.Data.EF6.DbContextManager`1.GetManager(String database, String label, DbCompiledModel model)

   at Csla.Data.EF6.DbContextManager`1.GetManager(String database)

   at Endoscopy.DalEf.DalManager..ctor() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.DalEf\DalManager.cs:line 30

 --- End of inner exception stack trace ---

    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at System.Activator.CreateInstance(Type type)

   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22

   at Endoscopy.Lib.Order.OrderEdit.DataPortal_Fetch(Int32 ordermasterid) in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Lib\Order\Edit\OrderEdit.cs:line 243

   at lambda_method(Closure , Object , Object[] )

   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)

 --- End of inner exception stack trace ---

    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at System.Activator.CreateInstance(Type type)

   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22

   at Endoscopy.Lib.Order.OrderEdit.DataPortal_Fetch(Int32 ordermasterid) in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Lib\Order\Edit\OrderEdit.cs:line 243

   at lambda_method(Closure , Object , Object[] )

   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)

   at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)

   at Csla.Reflection.MethodCaller.<CallMethodTryAsync>d__b.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Csla.Reflection.MethodCaller.<CallMethodTryAsync>d__5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Csla.Reflection.LateBoundObject.<CallMethodTryAsync>d__3.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at Csla.Server.SimpleDataPortal.<Fetch>d__7.MoveNext()

 --- End of inner exception stack trace ---

    at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)

   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)

   at System.Activator.CreateInstance(Type type, Boolean nonPublic)

   at System.Activator.CreateInstance(Type type)

   at Endoscopy.Dal.DalFactory.GetManager() in d:\InProcess\Endoscopy.Net\Endoscopy.Net\Endoscopy.Dal\System\DalFactory.cs:line 22

 

 

 


Viewing all articles
Browse latest Browse all 764

Trending Articles