title: IWebBrowser2 on CE device cannot navigate to URL
body: <p>I'm trying to embed a web browser control into a window on a CE 6 application. I can create the web browser control but it fails to load the URL. The code so far is:</p>
  
  <pre><code>CoInitializeEx(NULL, COINIT_MULTITHREADED);
  IWebBrowser2 * pBrowser = NULL; 
  HRESULT hr; 
  
  hr = CoCreateInstance (CLSID_WebBrowser, NULL, CLSCTX_INPROC_SERVER, IID_IWebBrowser2, (void **) &amp;pBrowser);
  
  if (SUCCEEDED (hr)) 
  { 
      pBrowser-&gt;put_Visible ((VARIANT_BOOL) true);
      VARIANT vEmpty;
      VariantInit(&amp;vEpty);
  
      BSTR bstrURL = SysAllocString(L"http://microsoft.com");
  
      hr = pBrowser-&gt;Navigate(bstrURL, &amp;vEmpty, &amp;vEmpty, &amp;vEmpty, &amp;vEmpty);
  
      // ** At this point, hr = E_FAIL
  }
  else 
  { 
      MessageBox(_T("Could not create browser window"), _T("Error"), MB_OK);
  }
  </code></pre>
  
  <p>Why would the call to <code>Navigate()</code> return <code>E_FAIL</code>?</p>