Silverlight exception: The DOM/scripting bridge is disabled.

You receiving this error every time you try to access the browsers DOM?

If you would like to enable your Silverlight application to have access to your browser DOM you can do so through the parameter called EnableHtmlAccess

<param name="enablehtmlaccess" value="true"/>

Add that parameter on your HTML for the Silverlight parameters and you’ll get access to the DOM.

Cheers

Al

#1 Morten on 4.16.2009 at 11:51 PM

It's not always enough to set this parameter. If the .xap is hosted on a different domain than the HTML page, or if you are in full screen mode, you cannot access the page.

Thus your code should always check for whether it can access the page prior to calling any HtmlPage.* methods.