当前位置:编程学习 > C#/ASP.NET >>

求助各位大神看看错误来源 .NET Runtime

应用程序: ElectronArchivesApp.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.Data.EntityCommandExecutionException
堆栈:
Server stack trace: 
   在 ArchivesMethod.CatalogMethod.GetCatalogs(Int64 dossierID)
   在 System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   在 System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
   在 System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(System.Runtime.Remoting.Messaging.Message, Boolean)
   在 System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(System.Object, System.Runtime.Remoting.Proxies.MessageData ByRef)
   在 ElectronArchives.Controls.ArchivingList+QueryCatalogsDelegate.EndInvoke(System.IAsyncResult)
   在 ElectronArchives.Controls.ArchivingList.<QueryCatalogs>b__0(System.IAsyncResult)
   在 System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
   在 System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessageSink)
   在 System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
   在 System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object)
   在 System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
   在 System.Threading.ExecutionContext.runTryCode(System.Object)
   在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
   在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   在 System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()
   在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

在WIN7上开发了一个系统给科室用,在WIN7下使用无任何问题,但是在xp sp3系统下使用经常出现错误,查看了一下系统日志,大部分错误来源都是.NET Runtime,
科室用的基本都是ghost版本的系统,但是.NET Framework版本都已经装上而且都打过补丁,EF版本为4.1 。不知道问题究竟出现在哪里。

错误提示ArchivesMethod.CatalogMethod.GetCatalogs(Int64 dossierID)涉及到这段代码如下
public IEnumerable<T_Catalog> GetCatalogs(long dossierID) {
            using (var db = GetEntities()) {
                var list = from c in db.Catalogs
                           where c.JZML_ID == dossierID
                           orderby c.YH, c.SXH
                           select c;
                return list.ToArray();
            }
} --------------------编程问答-------------------- 除
补充:.NET技术 ,  .NET Framework
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,