C# 表达式形状中的Transform方法引发异常;对象引用未设置为对象的实例;
我正在使用VisualStudio2010。在我的编排中,我使用表达式动态转换消息C# 表达式形状中的Transform方法引发异常;对象引用未设置为对象的实例;,c#,visual-studio-2010,biztalk,biztalk-2010,C#,Visual Studio 2010,Biztalk,Biztalk 2010,我正在使用VisualStudio2010。在我的编排中,我使用表达式动态转换消息 construct outputmsg { System.Diagnostics.EventLog.WriteEntry("INTERFACE","Entered construct ..." ); transform (outputmsg) = oMap(Inputmsg); System.Diagnostics.EventLog.WriteEntry("INTERFACE","after tra
construct outputmsg
{
System.Diagnostics.EventLog.WriteEntry("INTERFACE","Entered construct ..." );
transform (outputmsg) = oMap(Inputmsg);
System.Diagnostics.EventLog.WriteEntry("INTERFACE","after transform ..." );
}
现在我遇到了以下错误
“对象引用未设置为对象的实例”
在BizTalk事件日志中,我注意到=>输入了构造,这意味着它的进入构造方法。但在抛出异常之后
我认为“转换”给出了一个错误
我的解决方案中有相应的映射文件(用于转换)
我哪里做错了?任何建议都会很有帮助
提前感谢。是否已使用初始化oMap变量 oMap=类型(地图名称) 有关详细信息,请参阅
要缩小范围,您应该将Visual Studio连接到BTSNTSvc.exe,并查看它在哪里中断。是的,Vikas。我使用oMap=System.Type.GetType(MapName)初始化了oMap变量;其中MapName应该是地图的“TypeName”。相反,我给了地图的名字。我在这里出错了。我纠正了它。现在很好用。谢谢:)