安装IEWebControls时出现问题

kongming 2004-04-10 03:37:59
我下载IEWebControls安装后,在运行build.bat时出现以下警告:
“System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,
System.Xml.Xsl.XsltArgumentList, System.IO.Stream)”已过时:“You should
pass XmlResolver to Transform() method”

请问这是怎么回事? 如何解决?
...全文
533 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
kongming 2004-04-11
  • 打赏
  • 举报
回复
这只是个警告,不会影响dll文件的生成,主要是不找到警告的原因心里不太踏实!
delphizd 2004-04-11
  • 打赏
  • 举报
回复
http://soft.kaer.cn:8018/FileDown.aspx?FID=4

装这个把,直接装就可以了

http://expert.csdn.net/Expert/topic/2887/2887346.xml?temp=.6854822
luopan0021 2004-04-10
  • 打赏
  • 举报
回复
是不是没有 生成microsoft.web.ui.webcontrols.dll


http://www.microsoft.com/china/community/Column/21.mspx
http://expert.csdn.net/Expert/topic/2904/2904372.xml?temp=.4920771
kongming 2004-04-10
  • 打赏
  • 举报
回复
我在www.asp.net的论坛上找到答案了:

IEWebControls.exe 2.1x.xx.x - Microsoft.Web.UI.WebControls.dll (1.0.2.226) - Framework 1.1 - VS.Net 200x

WEBCONTROLS:
[ISSUE]
while running the build.bat file, it gives a warning message . the following is the exact message.

C:\Program Files\IE Web Controls>build.bat
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

src\treeview.cs(1193,13): warning CS0618: 'System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,
System.Xml.Xsl.XsltArgumentList, System.IO.Stream)' is obsolete: 'You should pass XmlResolver to Transform()
method'

[SUGGESTION]
This has nothing to do with the TreeView. It is one change that happened from Framework version 1.0 to 1.1 in System.Xml.Xsl.XslTransform class.

Transform method of the XslTransform was changed to accept XmlResolver instances and the old methods not accepthing this param were made obsolete (that's why you see the warning when compiled, but it does not affect the working of the control). Changing to the updated method is recommended but not must (at least not in .NET 1.1)

Dan Wahlin wrote about the specifical issue I discussed as follows:
They added that extra parameter mainly to make things a little more secure in cases where multiple types of documents may be involved in a transformation. If you pass null (Nothing in VB.NET) then you won't be able to use the document() function to resolve external XML documents. In that case you'd have to create a new XmlUrlResolver and pass it in as the XmlResolver parameter.

Also note that the Load() method of XslTransform has changed somewhat in that you can't automatically import or include remote XSLT stylesheets (or call script) into a master stylesheet. Now you need to pass "evidence" to allow scripts within XSLT and other stylesheets to run properly as well as a resolver.

不过E文不太好,只看懂了一些,哪位E文好的大虾能不能翻译一下!
kongming 2004-04-10
  • 打赏
  • 举报
回复
老大,我就是在这里下载的呀!
孟子E章 2004-04-10
  • 打赏
  • 举报
回复
http://www.asp.net/IEWebControls/Download.aspx?tabindex=0&tabid=1
孟子E章 2004-04-10
  • 打赏
  • 举报
回复
你下载是不是最新的啊?

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧