Tuesday, November 8, 2011

Sharepoint JS Error

Very random issue. It happens sometimes, but not consistently.
The page will load, but with JS errors. These errors stem from the following list. Since these are the Sharepoint JS pages, it will cause all future references to SP JS functions to fail. Scrolling, Site Actions menu, etc.

JS Errors:

Message: Invalid character
Line: 1
Char: 1
Code: 0
URI: ScriptResource.axd?d=IEhA7uTZB2R3g5c_AKe0pJaIp22wFF5IpMi4BcXrTJXVTxSzOleK2KP_dgQq2HZknMiQ9jBkeNOjJJ0xSnET6XAon1d64jlFI0xj4PbDMVfej-oaCU6hbvUjjA2yjKThBuRwps63A2gpNADyuohxmmbR3jQ1&t=5c2f384e


Message: 'Sys' is undefined
Line: 289
Char: 1
Code: 0
URI:


Message: 'Type' is undefined
Line: 2
Char: 1
Code: 0
URI: /_layouts/sp.core.js?rev=7ByNlH%2BvcgRJg%2BRCctdC0w%3D%3D



found a post that said it had to do with compressing the JS.
This thread says it is compressed twice.

Added:

<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="false" enableCaching="true"/>
</scripting>
</system.web.extensions>

to the web.config file

If that doesnt work, the post above says to make sure the policy setting is changed to allow scriptlets and to use HTTP 1.1 through proxy connections.

No comments:

Post a Comment