Given full class name is not enough to create the Type from that

Aug 3, 2015 at 6:58 AM
/”应用程序中的服务器错误。
Given full class name is not enough to create the Type from that: System.RuntimeType+RuntimeTypeCache+WhatsCached, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: Given full class name is not enough to create the Type from that: System.RuntimeType+RuntimeTypeCache+WhatsCached, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

源错误:

行 28: public static IOdb OpenAccount()
行 29: {
行 30: return OdbFactory.Open(DBAccount);
行 31: }
行 32:


源文件: c:\Users\Administrator\Documents\Visual Studio 2013\Projects\WebS\WebT\Code\DB\DBLocal.cs 行: 30

堆栈跟踪:

[ArgumentException: Given full class name is not enough to create the Type from that: System.RuntimeType+RuntimeTypeCache+WhatsCached, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]
NDatabase.Meta.ClassInfo.CannotInstantiateType(String fullClassName) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Meta\ClassInfo.cs:187
NDatabase.Meta.ClassInfo.GetType(String fullClassName) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Meta\ClassInfo.cs:177
NDatabase.Tool.DictionaryExtensions.GetOrAdd(Dictionary2 self, TKey key, Func2 produce) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Tool\DictionaryExtensions.cs:15
NDatabase.Meta.ClassInfo.CheckIfTypeIsInstantiable(String fullClassName) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Meta\ClassInfo.cs:169
NDatabase.Meta.ClassInfo..ctor(String fullClassName) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Meta\ClassInfo.cs:72
NDatabase.Core.Engine.FileSystemReader.ReadClassInfoHeader(OID classInfoOid) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Core\Engine\FileSystemReader.cs:306
NDatabase.Core.Engine.ObjectReader.LoadMetaModel(IMetaModel metaModel, Boolean full) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Core\Engine\ObjectReader.cs:78
NDatabase.Transaction.Session.GetMetaModel() in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Transaction\Session.cs:103

[OdbRuntimeException:
NDatabase has thrown an Exception
Error:10:Internal error : Session.getMetaModel ]
NDatabase.Transaction.Session.GetMetaModel() in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Transaction\Session.cs:107
NDatabase.Core.Engine.AbstractStorageEngineReader.GetMetaModel() in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Core\Engine\AbstractStorageEngineReader.cs:45
NDatabase.Core.Engine.StorageEngine..ctor(IDbIdentification parameters) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Core\Engine\StorageEngine.cs:118
NDatabase.Odb..ctor(String fileName) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Odb.cs:31
NDatabase.Odb.GetInstance(String fileName) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\Odb.cs:43
NDatabase.OdbFactory.Open(String fileName) in c:\TeamCity\Agents\A\BuildAgent\work\5f9a44f79ee7a25c\src\OdbFactory.cs:49
WebT.Local.OpenAccount() in c:\Users\Administrator\Documents\Visual Studio 2013\Projects\WebS\WebT\Code\DB\DBLocal.cs:30
WebT.AccountManager.Register(RegisterViewModel m) in c:\Users\Administrator\Documents\Visual Studio 2013\Projects\WebS\WebT\Models\AccountManager.cs:122
WebT.Controllers.<Register>d__b.MoveNext() in c:\Users\Administrator\Documents\Visual Studio 2013\Projects\WebS\WebT\Controllers\AccountController.cs:132
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +26
System.Threading.Tasks.TaskHelpersExtensions.ThrowIfFaulted(Task task) +61
System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +114
System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeAsynchronousActionMethod>b__36(IAsyncResult asyncResult) +66
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +47
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +136
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +102
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +49
System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +117
System.Web.Mvc.Async.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41() +323
System.Web.Mvc.Async.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41() +323
System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +44
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +47
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +136
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +102
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +50
System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +72
System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +185
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +40
System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +34
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +70
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44
System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +39
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +62
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +39
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +70
System.Web.Mvc.Async.WrappedAsyncResultBase
1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +40
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9711525
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Aug 3, 2015 at 7:01 AM
when this error happen because i remove the Filed of the class which to store.and i change back again.then app throw this error.
how about change the way bind with the class,seems its easy to got errors .