biztalk服务器没有定义构造函数错误
我正在使用 .net 类库创建管道组件 当我想传递一个 HTML 文档作为输入并获取一个 XML 文档作为输出时,
我在这一行中收到错误
HtmlDocument OrgDoc= new HtmlDocument
The error is no constructor for HTML document 我是否错过了一些参考(如果是的话)。实际上我正在使用system.windows.forms.htmldocument。
欢迎提出纠正错误的任何建议。
I am creating a pipeline component using .net class library
Where I want to pass an HTML document as a input and get a XMLdocument as output,
I am getting an error in this line
HtmlDocument OrgDoc= new HtmlDocument
The error is no constructor for HTML document do I miss some reference if yes what it that. Actually I am using system.windows.forms.htmldocument.
Any suggestions to rectify the error is welcomed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BizTalk 是正确的;
System.Windows.Forms.HtmlDocument
没有公共构造函数。它旨在仅通过WebBrowser
控件使用(代表 DOM),我不建议尝试在服务器上执行此操作。如果您尝试解析 HTML,请尝试使用 Html Agility Pack。BizTalk is correct;
System.Windows.Forms.HtmlDocument
has no public constructors. It is intended to be used via theWebBrowser
control only (to represent the DOM), and I don't recommend trying to do that on a server. If you are trying to parse HTML, try using the Html Agility Pack instead.