2014-01-17 64 views
0

我有一個WinForms Web瀏覽器控件。當我使用IPv6地址呼叫Navigate()時,我得到一個ArgumentException,這不是記錄的呼叫例外。 WebBrowser控件是否僅支持IPv6地址?.NET WinForms WebBrowser控件在導航到IPv6地址時拋出異常

System.ArgumentException: Value does not fall within the expected range. 
    at System.Windows.Forms.UnsafeNativeMethods.IWebBrowser2.Navigate2(Object& URL, Object& flags, Object& targetFrameName, Object& postData, Object& headers) 
    at System.Windows.Forms.WebBrowser.PerformNavigate2(Object& URL, Object& flags, Object& targetFrameName, Object& postData, Object& headers) 
    at System.Windows.Forms.WebBrowser.PerformNavigateHelper(String urlString, Boolean newWindow, String targetFrameName, Byte[] postData, String headers) 
    at System.Windows.Forms.WebBrowser.Navigate(String urlString) 

回答

相關問題