C# BizTalk业务流程错误

C# BizTalk业务流程错误,c#,biztalk,biztalk-2010,C#,Biztalk,Biztalk 2010,我正在使用BizTalk业务流程调用.Net类(方法),出现以下错误: xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'g2.interop.abbyy.poc.POC_Orchestration(44aa4941-bbfb-1b34-dfad-19ca74cac233)'. The service

我正在使用BizTalk业务流程调用.Net类(方法),出现以下错误:

xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'g2.interop.abbyy.poc.POC_Orchestration(44aa4941-bbfb-1b34-dfad-19ca74cac233)'.
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: 72c5b238-d471-42b3-91cc-b92f1dbc73ee
Shape name: Expression_1
ShapeId: 8376fc71-46bc-4dba-8b33-3b9c71dfb292
Exception thrown from: segment 1, progress 10
Inner exception: The network path was not found.


Exception type: IOException
Source: mscorlib
Target Site: Void WinIOError(Int32, System.String)
The following is a stack trace that identifies the location where the exception occured

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
at g2.interop.abbyy.POCXmlReader.XmlReader.readXml()
at g2.interop.abbyy.poc.POC_Orchestration.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="XLANG/s" />
<EventID Qualifiers="0">10034</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2011-03-14T13:50:18.000000000Z" />
<EventRecordID>14814</EventRecordID>
<Channel>Application</Channel>
<Computer>GCG-devbiztalk.gcdomain.local</Computer>
<Security />
</System>
<EventData>
<Data>xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'g2.interop.abbyy.poc.POC_Orchestration(44aa4941-bbfb-1b34-dfad-19ca74cac233)'.
 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: 72c5b238-d471-42b3-91cc-b92f1dbc73ee
 Shape name: Expression_1
 ShapeId: 8376fc71-46bc-4dba-8b33-3b9c71dfb292
 Exception thrown from: segment 1, progress 10
 Inner exception: The network path was not found.


 Exception type: IOException
 Source: mscorlib
 Target Site: Void WinIOError(Int32, System.String)
 The following is a stack trace that identifies the location where the exception occured

 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
 at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
 at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
 at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
 at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
 at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
 at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
 at g2.interop.abbyy.POCXmlReader.XmlReader.readXml()
 at g2.interop.abbyy.poc.POC_Orchestration.segment1(StopConditions stopOn)
 at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception&amp; exp)

    </Data>
 </EventData>
 </Event>
xlang/s引擎事件日志条目:未捕获异常(请参见下面的“内部异常”)已挂起服务“g2.interop.abbyy.poc.poc_编排(44aa4941-bbfb-1b34-dfad-19ca74cac233)”的实例。
服务实例将保持挂起状态,直到以管理方式恢复或终止。
如果恢复,实例将从最后一个持久化状态继续,并可能重新引发相同的意外异常。
实例ID:72c5b238-d471-42b3-91cc-b92f1dbc73ee
形状名称:表达式_1
ShapeId:8376fc71-46bc-4dba-8b33-3b9c71dfb292
从以下位置引发异常:段1,进度10
内部异常:未找到网络路径。
异常类型:IOException
资料来源:mscorlib
目标站点:Void WinIOError(Int32,System.String)
下面是一个堆栈跟踪,用于标识发生异常的位置
在System.IO.\uuu Error.WinIOError(Int32 errorCode,字符串maybeFullPath)
在System.IO.FileStream.Init(字符串路径、文件模式、文件访问权限、Int32权限、布尔用户权限、文件共享、Int32缓冲大小、文件选项选项、安全属性secAttrs、字符串msgPath、布尔bFromProxy、布尔useLongPath)
位于System.IO.FileStream..ctor(字符串路径、文件模式、文件访问权限、文件共享共享、Int32 bufferSize)
在System.Xml.XmlDownloadManager.GetStream(Uri、ICredentials凭据、IWebProxy代理、RequestCachePolicy cachePolicy)
位于System.Xml.XmlUrlResolver.GetEntity(Uri绝对Uri、字符串角色、对象类型返回)
位于System.Xml.XmlReaderSettings.CreateReader(字符串inputUri,XmlParserContext inputContext)
在System.Xml.XmlReader.Create(字符串输入URI、XmlReaderSettings设置、XmlParserContext输入上下文)
位于System.Xml.Linq.XDocument.Load(字符串uri,LoadOptions)
在g2.interop.abbyy.POCXmlReader.XmlReader.readXml()处
在g2.interop.abbyy.poc.poc_Orchestration.segment1(停止条件停止)
在Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(段s、StopConditions、stopCond、Exception和exp)
事件Xml:
10034
2.
0
0x8000000000000
14814
应用
GCG-devbiztalk.gcdomain.local
xlang/s引擎事件日志条目:未捕获异常(请参阅下面的“内部异常”)已挂起服务“g2.interop.abbyy.poc.poc_编排(44aa4941-bbfb-1b34-dfad-19ca74cac233)”的实例。
服务实例将保持挂起状态,直到以管理方式恢复或终止。
如果恢复,实例将从最后一个持久化状态继续,并可能重新引发相同的意外异常。
实例ID:72c5b238-d471-42b3-91cc-b92f1dbc73ee
形状名称:表达式_1
ShapeId:8376fc71-46bc-4dba-8b33-3b9c71dfb292
从以下位置引发异常:段1,进度10
内部异常:未找到网络路径。
异常类型:IOException
资料来源:mscorlib
目标站点:Void WinIOError(Int32,System.String)
下面是一个堆栈跟踪,用于标识发生异常的位置
在System.IO.\uuu Error.WinIOError(Int32 errorCode,字符串maybeFullPath)
在System.IO.FileStream.Init(字符串路径、文件模式、文件访问权限、Int32权限、布尔用户权限、文件共享、Int32缓冲大小、文件选项选项、安全属性secAttrs、字符串msgPath、布尔bFromProxy、布尔useLongPath)
位于System.IO.FileStream..ctor(字符串路径、文件模式、文件访问权限、文件共享共享、Int32 bufferSize)
在System.Xml.XmlDownloadManager.GetStream(Uri、ICredentials凭据、IWebProxy代理、RequestCachePolicy cachePolicy)
位于System.Xml.XmlUrlResolver.GetEntity(Uri绝对Uri、字符串角色、对象类型返回)
位于System.Xml.XmlReaderSettings.CreateReader(字符串inputUri,XmlParserContext inputContext)
在System.Xml.XmlReader.Create(字符串输入URI、XmlReaderSettings设置、XmlParserContext输入上下文)
位于System.Xml.Linq.XDocument.Load(字符串uri,LoadOptions)
在g2.interop.abbyy.POCXmlReader.XmlReader.readXml()处
在g2.interop.abbyy.poc.poc_Orchestration.segment1(停止条件停止)
在Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(段s、StopConditions、stopCond、Exception和exp)

看起来您试图打开或读取的文件可能找不到或您无权访问。

BizTalk安装在不同的服务器上,因此我从本地复制了dll文件,并将其放入BizTalk server本地文件夹中。然后,我从本地文件夹添加了BizTalk资源。所以我不明白为什么它找不到文件。请帮忙。非常感谢。