why the error message pops up when i use control webbrowser to navigate the net?

I wrote the following code to access the net in navision, but failed. Anyone can help me? Thanks.

Name DataType Subtype Length
WebBroswer Automation ‘Microsoft Internet Controls’.WebBrowser

CLEAR(WebBrowser);
IF CREATE(WebBrowser,TRUE) THEN
WebBrowser.Navigate(‘http://www.csdn.net’);

the error message shows below:

This message if for C/AL programmers: An exception was raised in method Navigate. The OLE control or Automation server returned error(HRESULT) -2147352567The componet did not provide the exception description.

Has anyone used this control? Please help me.

Hi, you have to be a little more patient. Posting again after 75 minutes does not help much. We do all this here in our free time and not getting money for it.

OK, instead of ‘Microsoft Internet Controls’.WebBrowser-control try to use ‘Microsoft Internet Controls’.InternetExplorer-control.

Hi, walter.

Thans for your help. I have solved the problem based on your suggestion.

Welcome, and glad to hear that it is working now.

Please mark the thread as answered to close it. Thank you.