使用map时System.IO.FileNotFoundException [英] System.IO.FileNotFoundException when use map
问题描述
您好
我正在使用WCF-SQL Adapter从SQL Server读取。
I am reading from a SQL Server using WCF-SQL Adapter.
获取文件后,我通过接收端口中的地图传递它。然后我得到错误
After I get the file, I pass it though a map in the receive port. Then I get the error
适配器"WCF-SQL"提出了一条错误信息。详细信息" System.IO.FileNotFoundException:系统找不到指定的文件。 (HRESULT异常:0x80070002)
在Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkAsyncResult.End()
在Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkServiceInstance.EndOperation(IAsyncResult result)
在Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkServiceInstance.Microsoft.BizTalk.Adapter.Wcf.Runtime.IOneWayAsync.EndOneWayMethod(IAsyncResult result)
at AsyncInvokeEndEndOneWayMethod(Object,Object [],IAsyncResult)
在System.ServiceModel.Dispatcher.AsyncMethodInvoker.InvokeEnd(对象实例,对象[]&输出,IAsyncResult结果)
在System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeEnd(MessageRpc& rpc)
在System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage7(MessageRpc& rpc)
在System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)"。
原始文件存在,如果我不使用地图,XMLreceive管道找到模式。
origin file exists, if I don't use the map, XMLreceive pipeline finds the schema.
目标模式(SAP)也存在,因为我可以在模式中看到它。
Destination schema (SAP) also exists as I can see it in the schemas.
当我将地图放入发送端口时,我收到siilar错误
When I put the map in the send port I get siilar error
错误详细信息:系统找不到指定的文件。 (HRESULT的例外情况:0x80070002)
有什么想法吗?
谢谢
Christos Giannoukos
Christos Giannoukos
推荐答案
此处还有其他事情发生。 Map不会在适配器中导致此错误。
Something else is going on here. A Map would not cause this error in an Adapter.
如果使用文件接收位置获得相同的结果,则问题出在Map中。 然后问题就变成了你正在使用的外部组件,并且它们是否正确部署。
If you get the same result using a File Receive Location, the problem is in the Map. Then the question becomes what external assemblies are you using and are they properly deployed.
这篇关于使用map时System.IO.FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!