Alex Rivera | Logout

Asp.net: can not debug this problem: Sys.ArgumentNullException: Value cannot be null. Parameter name: elements

Asked 2011-01-25T11:25:14.630
15

This is strange, that I have this problem:

Sys.ArgumentNullException: Value cannot be null. Parameter name: elements.

This problem only happens in IE.

Details:

  • ScriptResource.axd = Line: 4868
  • Code: 0 - Char: 12

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; AskTbBT4/5.8.0.12304) Timestamp: Tue, 25 Jan 2011 11:24:42 UTC

Message:

Sys.ArgumentNullException: Value cannot be null. Parameter name: elements Line: 4868 Char: 12 Code: 0 URI: http://asdfsdf/ScriptResource.axd?d=7NwOnZl2VMauVPybpy_0vvP2zsCf0g8YK4dd3SkNMq873HwvoDhnE7rPvjFZwFLM0&t=11e661nl.js

Edit
Report

1 Answer

33

Changing ScriptMode to Release fixed this for me.

<asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release"></asp:ScriptManager>

answered 2013-06-29T22:06:43.683

Your Answer