c# - URL Not loading in a System.Windows.Forms.WebBrowser
问题描述
I'm using a System.Windows.Forms.WebBrowser control to load a webpage. My understanding is it is just a wrapper around Internet Explorer. I'm therefore struggling to understand why the web page loads ok in a desktop browser (IE 11) but not in the browser control.
The URL has looks as so:
http://subdomain.domain.co.uk/?argumentName=argumentValue
My question is, firstly, is that a valid url (format wise)? Can you have a '?' directly after the '/' as shown? My theory is this could be getting removed behind the scenes when using a desktop browser and not happening when using the browser control. Unfortunately I cannot test that theory as the web page is behind a firewall. At the moment I know nothing else about the location of the web page other than the url.
If that is a valid url, could anyone suggest reasons it would load in IE but not in the web browswer control?
To expand on how its not working, the request times out after 30 seconds. The NavigateError event is raised (status code for me is -2146697211, but that could well be different to status code they get. I cannot find that out until I deploy a dll with some logging info).
The webpage then displays as
解决方案
推荐阅读
- python - 模拟并将特定行存储到数据框中
- ruby - 如何使用 Ruby Metapraogramming 使链式点表示法适用于嵌套哈希键
- scala - 为什么这个迭代器无限循环?
- node.js - Deno 中的 Node.js 的 __dirname 和 __filename 等效项
- javascript - MaterialUI 表行不渲染
- python - 将数据传递给 jinja 模板中的 Bootstrap 模态(其中一个来自 for 循环)
- node.js - 阵列处理的问题
- tableau-api - 有没有办法删除或编辑 Tableau 标题中的“标题”一词?
- ios - 为什么我的 UITableViewController 页脚高度不会改变?
- html - HTML 输入“推荐”属性