This is a migrated thread and some comments may be shown as answers.

Value cannot be null. Parameter name: key exception is thrown after Q2 2015 release

0 Answers 802 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 26 Jun 2015, 11:11 AM

With the latest 2015.2.623 version of Telerik.Web.UI you could receive the following error:
System.ArgumentNullException: Value cannot be null.
Parameter name: key

if you have grid with paging enabled and you run the page in Visual Studio Page Inspector. In order to workaround this issue you need to add the code snippet below in the web config file.

<appSettings>
    <add key="PageInspector:ServerCodeMappingSupport" value="Disabled" />
  </appSettings>
<compilation debug="true" targetFramework="4.0" >
      <assemblies>
        <remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader,
               Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </assemblies>
    </compilation>


This problem is already fixed and the fix will be included in the next internal build and upcoming SP1.
Tags
Grid
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Share this question
or