While I was debugging in Visual Studio 2010, I come across this error when working with an aspx page that has a report viewer control. This only happens with IE. My report displays, but as soon as I click a parameter drop down that has multiple selections, the debugger throws the following error:
Now this exception in no way prevents my report from running. I am not even sure what the error is all about. If I publish my web site and run it from the domain, I would never know the error was being thrown.
A workaround I found was to place the following javascript into the <head> tags of the aspx page that contains the report viewer control:
<script language="javascript" type="text/javascript">
if (window.getComputedStyle != null)
{
var orginalGetComputedStyle = window.getComputedStyle;
window.getComputedStyle = function (element, parm)
{
try
{
return orginalGetComputedStyle(element, null);
}
catch (err)
{
return orginalGetComputedStyle(document.getElementsByTagName("body")[0], null);
}
}
}
<script>
