SharePoint learning notes-error handling-scriptresource. axd error, message: Object required

Source: Internet
Author: User

When a Sharepoint site developed in the past two days opens any page, the following error will always pop out:

Message: Object required
Line: 693
CHAR: 9
Code: 0
Uri: http: // myspsite/scriptresource. axd? D = bytes & T = 5c2f384e

For example:

Analyze the error message because it contains scriptresource. axd. It is estimated that it is related to the script.CodeOr operation. The error occurred on every webpage of this website, so I put my attention in two places.

1. masterpage of the website.

2. features deployed on the website.

In the first case, Google found that the above error was caused by the Script node expression in the materpage. Set

< Script Type = "Text/JavaScript" SRC = "../Style % 20 Library/JS/jquery-1.4.3.js"   />
Change
  <ScriptType= "Text/JavaScript" SRC = " ../Style % 20 Library/JS/jquery-1.4.3.js "   > </ Script >

However, when I open the masterpage of my website, I find that the Script node is only simple.

 <ScriptType= "Text/JavaScript"/>

So I moved my eyes to feature and used the command

Get-spfeature-site http: // myspsite/| sort displayname | ft displayname, ID

Listing all features of this website, we found that one featuer introduced jquery, called spjquery_jqueryfeature, is suspected of being script-related, so we use the command

Disable-spfeature spjquery_jqueryfeature-URL http: // myspsite

Disable this feature, return to the website, open the page again, and the error disappears. It is estimated that this feature is faulty when jquery is introduced (such as in the first case.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.