WebBrowser.Document property getter throws UnauthorizedAccessException
问题 We have a Windows Forms app that hosts a web application from http://localhost (on a port selected at runtime) in a WebBrowser control which mostly works fine. Within the webapp there is a 'help' link that pops up a new window, and we handle this by listening to the NewWindow event and showing the help URL in another WebBrowser control within another Form/Window, this also mostly works fine. The problem is that the html help files are generating script errors which cause annoying popup error