Windows Mobile 5 智能手机本地 html 文件的 DNS 错误
当我在查看在线页面后尝试将本地 html 文件加载到 WebBrowser 视图控件中时,我在 Windows mobile 5 中收到 DNS 超时错误。
例如 ctrlBrowser.Url = new Url("http://www.google.com"); 接下来是 ctrlBrowser.Url = new Url("file:///\My Documents\test.html");
不过,我尝试仅在 gprs 关闭且之前没有对外部页面的请求的情况下打开本地文件,它工作正常。 这在 WM 6 和 5 上不是问题,我遇到此问题的唯一地方是在 WM 5 智能手机物理设备上。
我在这里对如何解决感到困惑。
非常感谢您的想法。
托尼
Im getting a DNS timeout error in Windows mobile five when ever I try to load a local html file into WebBrowser view control after viewing an online page.
eg ctrlBrowser.Url = new Url("http://www.google.com"); followed by ctrlBrowser.Url = new Url("file:///\My Documents\test.html");
However it I try to open local file only with gprs closed and no previous requests to external pages it works fine. This is not an issue on WM 6 and 5, the only place I get this issue is on WM 5 smartphone physical device.
Im baffeled here as how to solve.
Your thoughts are much appreciated.
Tony
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎无关,但我会分享它以防万一我错了: Firefox 禁用文件:网络服务(http: 和 https:)页面中的 URL。 也许 WebBrowser 控件只是不喜欢在网络页面之后显示 file: URL。
This seems unrelated, but I'll share it in case I'm wrong: Firefox disables file: URLs in network served (http: and https:) pages. Maybe the WebBrowser control just doesn't like showing file: URLs after network pages.