wince +sl 群

openwebkitsharp 打不开本地网页文件

Its look like you put wrong url. You can check it by

Uri.IsWellFormedUriString

One of the reasons - you put the string with national symbols.

In this case the answers before do not resolve you problem, because you also should encode url.

You can use System.Web.HttpUtility.UrlEncode for it and then apply a solution described before by X Enterprises (but you should not replace spaces - it would be already done by encoding) .

But the easiest way to get correct url is

string url = new Uri(pathToFile, UriKind.Absolute).AbsoluteUri;
posted @ 2016-07-05 11:46  pengxinglove  阅读(446)  评论(0编辑  收藏  举报
wince +sl 群