需要帮助:异常类型:ReflectionTypeLoadException [英] Help needed : Exception type: ReflectionTypeLoadException
问题描述
我在项目中添加了一个名为``UpdateGlobalCommitWithSundialTransactionId(System.String,System.String)''的函数.我从Biztalk项目中调用了相同的函数.但是在运行Biztalk时,出现以下错误
Event Type: ErrorEvent Source: XLANG/sEvent Category: NoneEvent ID: 10034Date: 4/21/2011Time: 8:24:02 PMUser: N/AComputer: ABC-DEV.xyz.comDescription:xlang/s engine event log entry: Uncaught exception (see the ''inner exception'' below) has suspended an instance of service ''lmo.Orchestrations.CommitDispatcher(3d0134b5-83b1-1fb7-c6b0-5d6fa4614373)''.The service instance will remain suspended until administratively resumed or terminated. If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.InstanceId: f1fc7910-cadd-4157-b0bf-7637891f0c18 Shape name: UpdateGlobalCommitWithSundialIdShapeId: 4e2c55a0-cdfd-46dc-bea5-4ef307c48105 Exception thrown from: segment 20, progress 2Inner exception: The type initializer for ''lmo.Business.RM.Associator'' threw an exception. Exception type: TypeInitializationExceptionSource: lmo.BusinessTarget Site: Void UpdateGlobalCommitWithSundialTransactionId(System.String, System.String)The following is a stack trace that identifies the location where the exception occured at lmo.Business.RM.Associator.UpdateGlobalCommitWithSundialTransactionId(String sequenceNumber, String transactionId) at lmo.Orchestrations.CommitDispatcher.segment20(StopConditions stopOn) at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp) Additional error information: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Exception type: ReflectionTypeLoadExceptionSource: mscorlibTarget Site: System.Type[] _GetTypesInternal(System.Threading.StackCrawlMark ByRef)The following is a stack trace that identifies the location where the exception occured at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.LoadTypesFromAssembly(LoadingContext context) at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.InternalLoadAssemblyFromCache(LoadingContext context) at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.LoadAssemblyFromCache(Assembly assembly, Boolean loadReferencedAssemblies, Dictionary`2 knownAssemblies, Dictionary`2& typesInLoading, List`1& errors) at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies) at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyForType(Type type) at System.Data.Metadata.Edm.MetadataWorkspace.LoadAssemblyForType(Type type, Assembly callingAssembly) at System.Data.Objects.ObjectContext.CreateQuery[T](String queryString, ObjectParameter[] parameters) at lmo.Business.Entities.RM.RMEntities.get_Party() at lmo.Business.RM.Associator..cctor() For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
我在错误中看到以下文字
其他错误信息:
无法加载一种或多种请求的类型.检索LoaderExceptions属性以获取更多信息.
但是找不到丢失的确切dll?
有人可以在这里帮助我吗?
否.这太可怕了,无法阅读...
尝试调试代码以缩小问题范围,然后在此处发布更多详细信息-太难弄清了.
Hi,
I have added a function named ''UpdateGlobalCommitWithSundialTransactionId(System.String, System.String)'' in a project. I call the same function from the Biztalk project. But when running Biztalk I get the following error
Event Type: ErrorEvent Source: XLANG/sEvent Category: NoneEvent ID: 10034Date: 4/21/2011Time: 8:24:02 PMUser: N/AComputer: ABC-DEV.xyz.comDescription:xlang/s engine event log entry: Uncaught exception (see the ''inner exception'' below) has suspended an instance of service ''lmo.Orchestrations.CommitDispatcher(3d0134b5-83b1-1fb7-c6b0-5d6fa4614373)''.The service instance will remain suspended until administratively resumed or terminated. If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.InstanceId: f1fc7910-cadd-4157-b0bf-7637891f0c18 Shape name: UpdateGlobalCommitWithSundialIdShapeId: 4e2c55a0-cdfd-46dc-bea5-4ef307c48105 Exception thrown from: segment 20, progress 2Inner exception: The type initializer for ''lmo.Business.RM.Associator'' threw an exception. Exception type: TypeInitializationExceptionSource: lmo.BusinessTarget Site: Void UpdateGlobalCommitWithSundialTransactionId(System.String, System.String)The following is a stack trace that identifies the location where the exception occured at lmo.Business.RM.Associator.UpdateGlobalCommitWithSundialTransactionId(String sequenceNumber, String transactionId) at lmo.Orchestrations.CommitDispatcher.segment20(StopConditions stopOn) at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp) Additional error information: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Exception type: ReflectionTypeLoadExceptionSource: mscorlibTarget Site: System.Type[] _GetTypesInternal(System.Threading.StackCrawlMark ByRef)The following is a stack trace that identifies the location where the exception occured at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.LoadTypesFromAssembly(LoadingContext context) at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.InternalLoadAssemblyFromCache(LoadingContext context) at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.LoadAssemblyFromCache(Assembly assembly, Boolean loadReferencedAssemblies, Dictionary`2 knownAssemblies, Dictionary`2& typesInLoading, List`1& errors) at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies) at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyForType(Type type) at System.Data.Metadata.Edm.MetadataWorkspace.LoadAssemblyForType(Type type, Assembly callingAssembly) at System.Data.Objects.ObjectContext.CreateQuery[T](String queryString, ObjectParameter[] parameters) at lmo.Business.Entities.RM.RMEntities.get_Party() at lmo.Business.RM.Associator..cctor() For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I see the following text in the error
Additional error information:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
but am unable to find the exact dll which is missing?
Could someone please help me here?
No. That is waaaay too hideous to read...
Try debugging your code to narrow down your problem and then post here with some more details - this is too difficult to figure out.
这篇关于需要帮助:异常类型:ReflectionTypeLoadException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!