0

Environment: Sharepoint 2010 with Service Pack 2 .NET Framework 3.5 Windows: Windows 2008 R2 Visual Studio 2010

I am getting this error when I run the event receiver in the debugging mode and moved from one list item to another in SharePoint.

JavaScript runtime error: Sys.InvalidOperationException: Type SP.EnumerableArray has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.

FYI: I have not written any code in event receiver. Event Receiver created using farm solutions and deployed using Visual Studio 2010.

  • reason you might have this error is that you have some script files referenced more than once on page. – Niranjan Kulkarni Nov 5 '15 at 11:37
  • would you share your code please – Niranjan Kulkarni Nov 5 '15 at 11:37
  • For your information, i have no code in event receiver. public override void ItemUpdated(SPItemEventProperties properties) { base.ItemUpdated(properties); } – Ganee Nov 5 '15 at 12:15
  • And also we are not adding any script file in our program. – Ganee Nov 5 '15 at 12:16
  • 1
    Try setting compilation debug=false in the web.config. – Niranjan Kulkarni Nov 6 '15 at 7:21
0

Please check the script references in your page. There might be multiple references to the same file causing this issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.