找不到类型'XmlNodeList'上的公共成员'Reset'。 [英] Public member 'Reset' on type 'XmlNodeList' not found.

查看:89
本文介绍了找不到类型'XmlNodeList'上的公共成员'Reset'。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



最近我们创建了新的Web服务器,并将基于vb.net的Web服务移到了新的服务器(Windows 2012)。


下面是我的代码,我在网络服务项目中提到了Interop.MSXML2 dll(Microsoft XML,v6.0),当我在服务器上发布时,控制到达  objNodeList.Reset()这一行然后我得到异常为"公共成员
'重置'类型'XmlNodeList'未找到"" 。仅使用Log我发现异常行


它在旧服务器(Windows 2003)中完美运行,在新服务器中我安装了asp.net 4.0,iis,还有msxml6.msi来自  ;

链接
 然后它也没有工作,安装MS Office 2007但也没有运气。


专家请指教, 

 

Public Sub ParseResponse()

Dim objNodeList
Dim i
Dim tmp1,tmp2,tmp3
Dim sha1hash
Dim XMLRoot
Dim XMLItem
Log.WriteLog(" 1:",
MethodInfo.GetCurrentMethod()。ToString()&" - "& Me.GetType()。BaseType。 FullName)
objNodeList = XMLDoc.getElementsByTagName(" response")
Log.WriteLog(" objNodeList:"& objNodeList.ToString(),
MethodInfo.GetCurrentMethod()。ToString ()&" - "& Me.GetType()。BaseType.FullName)

responseF ields.Add(" timestamp",objNodeList.Item(0).getAttribute(" timestamp"))

'Log.WriteLog(" XMLDoc.getElementsByTagName('response'):" &安培; XobjNodeList.Item(0).getAttribute(" timestamp"),
'ForctionInfo.GetCurrentMethod()。ToString()& " - " &安培; Me.GetType()。BaseType.FullName)

Log.WriteLog("在首次重置之前:",
MethodInfo.GetCurrentMethod()。ToString()&" - " ;& Me.GetType()。BaseType.FullName)
objNodeList.Reset()

Log.WriteLog("首次重置后:",                 MethodInfo.GetCurrentMethod()。ToString()&" - "& Me。 GetType()。BaseType.FullName)


--------------------
}

解决方案

< blockquote>

如果不这样做会怎样致电
重置?在显然不可避免的情况下显示示例。




Hello All,

recently we have created new web server and moved our vb.net based web services to the new server(Windows 2012).

below is my code, in web service project i have referred Interop.MSXML2 dll(Microsoft XML, v6.0) when i publish in server then while the control reach at objNodeList.Reset() this line then im getting exception as "Public member 'Reset' on type 'XmlNodeList' not found" . Using Log only i found the line of exception

it was working perfectly in old server(Windows 2003), in new server i have installed asp.net 4.0, iis, also msxml6.msi from  link then also its not working so, installed MS office 2007 also but no luck.

experts please advise, 

Public Sub ParseResponse() Dim objNodeList Dim i Dim tmp1, tmp2, tmp3 Dim sha1hash Dim XMLRoot Dim XMLItem Log.WriteLog("1: ", MethodInfo.GetCurrentMethod().ToString() & "-" & Me.GetType().BaseType.FullName) objNodeList = XMLDoc.getElementsByTagName("response") Log.WriteLog("objNodeList: " & objNodeList.ToString(), MethodInfo.GetCurrentMethod().ToString() & "-" & Me.GetType().BaseType.FullName) responseFields.Add("timestamp", objNodeList.Item(0).getAttribute("timestamp")) 'Log.WriteLog("XMLDoc.getElementsByTagName('response'): " & XobjNodeList.Item(0).getAttribute("timestamp"), ' MethodInfo.GetCurrentMethod().ToString() & "-" & Me.GetType().BaseType.FullName) Log.WriteLog("before first reset: ", MethodInfo.GetCurrentMethod().ToString() & "-" & Me.GetType().BaseType.FullName) objNodeList.Reset()

Log.WriteLog("after first reset: ",
                             MethodInfo.GetCurrentMethod().ToString() & "-" & Me.GetType().BaseType.FullName)

-------------------- }

解决方案

What happens if you do not call Reset? Show an example when it is clearly unavoidable.



这篇关于找不到类型'XmlNodeList'上的公共成员'Reset'。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆