biztalk服务器没有定义构造函数错误

发布于 2024-12-13 00:41:16 字数 286 浏览 6 评论 0原文

我正在使用 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无需解释 2024-12-20 00:41:16

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 the WebBrowser 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文