I'm using the navigate function, but a COMException occurs on certain sites. When I checked ReadyState using Tostring, READYSTATE_LOADING continues to be checked and does not change to READYSTATE_COMPLETE. What exception handling should I apply to navigate normally? Use navigate in IExplorer. This problem only occurs on certain PCs.
SHDocVw.WebBrowser wb = FindIE("naver.com");
if(!wb.Busy)
{
wb.Navigate("naver.com");
while (wb.ReadyState != tagREADYSTATE.READYSTATE_COMPLETE)
{
MessageBox.Show(wb.ReadyState.ToString());
Thread.Sleep(100);
}
}
else
{
ing . . . .
}
No matter how long you wait, it will not change to READYSTATE_COMPLETE. In addition, Navigate then Sleep (100000); It does not change even if given.
User contributions licensed under CC BY-SA 3.0