I don't know if anyone is interested but cookies were to blame. I had
a localhost cookie containing data from other web applications, all
completely unrelated to what I was doing but something in the cookie
was causing an exception in the server when using the hosted browser.
Deleting cookies from IE solved the problem.