SSRS IE8 JavaScript Error Invalid Character ScriptResource.axd

5.1k Views Asked by At

A colleague of mine has produced various reports in SSRS. We have 2 machines in the office that are failing to load the report via Internet Explorer 8. Both machines are returning a JavaScript error at the Reports 'Loading' screen.

On these particular machines, the reports load fine in FireFox so I am guessing that it is IE related. Both Machines are running IE8.

Any help would be greatly appreciated.

The JavaScript error detail is as below:-

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) Timestamp: Fri, 20 Jan 2012 09:44:17 UTC

Message: Invalid character Line: 1 Char: 1 Code: 0 URI: http://xxx.xxx.xxx.xxx/Reports_2/ScriptResource.axd?d=dz2_T_-skCIGFrM350LrrgpIbuyQ3hv0Po2nyTqnjMC_h2orbb8AW34-wlapNOlKQn3w_65Hv8xicNrMgbLAWsuKLkB24a0JnVTM3AD64R_ELK1K6KpCKGgYkO_evQ1uY6IeQkuEpQDrHclftKpS0G8rnJM1&t=4d63fd9d

Message: Sys.ScriptLoadFailedException: The script '/Reports_2/ScriptResource.axd?d=dz2_T_-skCIGFrM350LrrgpIbuyQ3hv0Po2nyTqnjMC_h2orbb8AW34-wlapNOlKQn3w_65Hv8xicNrMgbLAWsuKLkB24a0JnVTM3AD64R_ELK1K6KpCKGgYkO_evQ1uY6IeQkuEpQDrHclftKpS0G8rnJM1&t=4d63fd9d' could not be loaded. Line: 5 Char: 25312 Code: 0 URI: http://xxx.xxx.xxx.xxx/Reports_2/ScriptResource.axd?d=3Ai4085hE-J-y-0xbpoDUETOM6YJ4KTxATxoi5MUC6t3_pBfPhudsCfAT2Zo0EYhCJ53VN7b1CMlJVAjSV173nFtwGNqRGEOxEQ5oaE1x1fJu9GYkrDUg931CJbqHdCdhmahc5Hew8HZppPb3veIO20e1DrsUcF2kvQowgeCkHgVZ1EA0&t=4d63fd9d

2

There are 2 best solutions below

5
On

Are you using SQL Server 2005?

If so make sure you have all of these installed on your server hosting reporting services. (Also if you ever happen to have a website with a .NET reportviewer control in it it will need these patches as well) Link Also make sure all the normal security patches are applied to your SQL server namely this one. Link and this one. Link

This may fix your problem outright. There have been all kinds of updates to the Report Viewer 2005 Service Pack 1 Redistributable Package that have fixed a few wonky bugs I have come across.

1
On