After Upgrading from 2013.1 to 2016.2, I bump into an exception:
Unhandled exception at line 1, column 126350 in http://localhost/WebServer/bundles/MsAjaxJs?v=J4joXQqg80Lks57qbGfUAfRLic3bXKGafmR6wE4CFtc1
0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Error serializing value 'Infragistics.Web.UI.GridControls.FormatRecordItemValue' of type 'Infragistics.Web.UI.GridControls.FormatRecordItemValue.'
This obviously happens in JavaScript. The delegate for the formatting handler is correctly assigned to Column,FormatFieldValue, but the C# method from the delegate is not even called. When assigning null to Column.FormatFieldMethod, it works (without formatting, of course).
In 2013.1, this worked seamless. For both, 2013.1 and 2016.2, FX 4.5 is used.
Any ideas, hints?
Hello,
Thank you for contacting Infragistics!
This is likely cause by you still having references or dlls in your project that are still pointing to v13.1. Please check your aspx, web.config, license.licx, and any user controls.
Thanks for your quick response. I don’t think that this is causing the problem:
I used Version Utility 2016.2 for the upgrade, and it appears that this tool did a good job. No traces of v13.1 in any of these files:
Find all "v13", Subfolders, Find Results 1, Entire Solution, ""
Matching lines: 0 Matching files: 0 Total files searched: 350
I also checked visually: References, inherited classes, all aspx and config files. I also stopped IIS and deleted the \Windows\Microsoft.Net\Asp.Net Temp folders. Also cleaned the obj-folder, Cleaned the build, forced a rebuild.
Did a test and binary search on all files in the entire solution also for “Infragistics”, only refs to v16 were found.
The only files which haven’t been replaced yet are the styles, but this shouldn’t have an effect besides for this issue.
Any other hints what I could check, look for? Your help is greatly appreciated.
Hi uvogel,
Thanks for all the info.
What build version of Infragistics 16.2 are you experiencing this with? e.g. 16.2.20162.1023
The best way for us to assist you is if you provide a small, isolated sample that we can run and use for debugging locally.
If you are unable able to provide an isolated sample we may be able to give suggestions if you provide the code for your page.
I'm using Infragistics45.Web.v16.2, Version=16.2.20162.2013.
It seems that the assigned delegate is never called. I’ve compared with 2013.1, where the call arrives, prior to sending the response to the client.
FormatRecordItemValue delFormatter = new FormatRecordItemValue(FormatFieldValue);
column.FormatFieldMethod = delFormatter;
private string FormatFieldValue(ControlDataField field, object value)
{ … }
I’m using inherited controls with additional properties in order to control some custom behavior. The rendering, however, is done by the base class.
Hello uvogel,
Thank you for the update. I attempted to create a sample to reproduce this behavior. However, I have been unable to reproduce. I am attaching my sample, please run it and let me know what behavior you see. Please attach an isolated sample that reproduces this behavior so I may investigate this matter further.