We have a report viewer and it adds the following jscript into the aspx file:
//<![CDATA[
Sys.Application.add_init(function() {
if (typeof Microsoft == 'undefined' ||
typeof Microsoft.Reporting == 'undefined' ||
typeof Microsoft.Reporting.WebFormsClient == 'undefined' ||
typeof Microsoft.Reporting.WebFormsClient.ReportViewer == 'undefined')
Sys.UI.DomElement.setVisible($get('ReportViewer1_HttpHandlerMissingErrorMessage'), true);
$create(Microsoft.Reporting.WebFormsClient.ReportViewer, {"_internalViewerId":"ReportViewer1_ctl03","id":"ReportViewer1"}, null, null);
});
But it keeps on showing a script error ‘Microsoft is undefined’ when it hits the
$create(Microsoft.Reporting.WebFormsClient.ReportViewer
line.
We’ve just upgraded from Silverlight 3 / VS2008 to SL4 VS2010 – is there something missing?
I get the exact same error. I followed the instructions at http://otkfounder.blogspot.com/2007/11/solving-reportviewer-rendering-issue-on.html
but that didn’t solve the problem and i still get the error as well. Give it a shot though, it may work for you…