Windows Mobile 5 智能手机本地 html 文件的 DNS 错误

发布于 2024-07-23 18:22:40 字数 446 浏览 11 评论 0原文

当我在查看在线页面后尝试将本地 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 技术交流群。

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

发布评论

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

评论(1

深白境迁sunset 2024-07-30 18:22:40

这似乎无关,但我会分享它以防万一我错了: 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.

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