ASP MVC5 to MVC6 conversion - problem with [ComboDataSourceAction]

Not Answered This post has 0 verified answers | 28 Replies | 24 Followers Thread's RSS feed.

Greg Pringle
Points 1,490
Replied On: Wed, Mar 23 2016 1:13 PM Reply

Hi, I am converting my existing working project from MVC5 to MVC6 by creating a new MVC6 project and moving things over bit by bit.

I have run into a strange issue with [ComboDataSourceAction].   In my old MVC5 project it works fine, but in my new project it returns different JSON (just containing the IDs, not the text I want to display):

[ComboDataSourceAction]

public ActionResult ClientComboData()

{

IEnumerable<ClientName> clientNames = GetClientNames();

return View(clientNames);

//return Json(clientNames);

}

If I swap in the commented out line, it seems to return Json with the names included and display them in the combobox and the drop down list shows them correctly but when I type anything in the autocomplete I get the following error:

Unhandled exception at line 26, column 4876 in http://localhost:62643/ignite ui/js/infragistics.lob.js Unable to get property 'locale' of undefined or null reference

Here is the class it is serializing:

public class ClientName

{

public int ClientId { get; set; }

public string FileAsName { get; set; }

}

Here is the content of the JSON when I hit F12 in IE and look at the network traffic.

[{"ClientId":1180},{"ClientId":1516},{"ClientId":990},{"ClientId":1212},{"ClientId":754},{"ClientId":1216},{"ClientId":1190},{"ClientId":516},{"ClientId":817},{"ClientId":1741},{"ClientId":969},{"ClientId":818},{"ClientId":620},{"ClientId":318},{"ClientId":954},{"ClientId":984},{"ClientId":1007},{"ClientId":603},{"ClientId":858},{"ClientId":973},{"ClientId":394},{"ClientId":1346},{"ClientId":348},{"ClientId":1565},{"ClientId":552},{":totals:":"1380:1380"}]

How can I fix this?

  • Post Points: 200

All Replies

Greg Pringle
Points 1,490
Replied On: Wed, Mar 23 2016 5:29 PM Reply

I created a simplified repro here:  http://www.firelightsoftware.com/OL/IGGridRepro.zip

  • Post Points: 20
Tihomir Iliev
Points 2,490
Infragistics Employee
Replied On: Mon, Mar 28 2016 7:34 AM Reply

Hello Greg,

Thank you for your patience.

I have asked our engineering staff to examine this further.  To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 216894. A support case is created on your behalf with number CAS-171322-D6M7W7, so that you can be notified when the bug is fixed.
You can find your active cases under Account - Support Activity in our website. Select your ticket and go to Development Issues tab to view the status of related bugs.

Let me know if I may be of further assistance.

Best Regards,
Tihomir Iliev
Software Developer
Infragistics, Inc.

  • Post Points: 35
daisy eden
Points 5
Replied On: Mon, Apr 11 2016 3:08 AM Reply

This is all fine and dandy but the real mess of MVC 5 was figuring out Identity and Validation. That stuff took way to long and has me worried that it won't transfer over and a whole new month of my time will be spent trying to figure out what the mad scientists at microsoft have come up with. Dot net Training in Chennai | Cloud Computing Training in Chennai | Linux Training in Chennai | Salesforce Training in Chennai

  • Post Points: 5
Replied On: Wed, Jun 29 2016 8:04 AM Reply

I have read an article that the next asp.net mvc 6 will be based on new fundamentals comparing to previous asp.net mvc releases . so i have these questions:-

  1. when asp.net mvc 6 be officially released ?

  2. what are the major differences will be between asp.net MVC 5 & asp.net MVC 6 ?and are these changes quite big comparing for example between the changes from asp.net mvc4 to asp.net mvc 5 ?      DataStage Training  |   R Programming Training  |   Android Training  |   SharePoint Training  |   SQL Training  |   SAS Training

  • Post Points: 35
Greg Pringle
Points 1,490
Replied On: Wed, Jun 29 2016 11:47 AM Reply

It got renamed to ASP.NET core.. it got released 2 days ago:

https://blogs.msdn.microsoft.com/webdev/2016/06/27/announcing-asp-net-core-1-0/

Initially, I thought the changes would be small because the code looks similar but converting my relatively simple project turned into a mess.   I was using RC2 hopefully the release version is better.   Tons of breaking changes, conflicting libraries, and general flakiness. The only way I could even get it partially working was disabling security because it did not support many of the security models used in old MVC...  I abandoned my attempt.  I think the priority for this release was multi platform support, and some steps backwards were taken.   The approach looks much better but I'm not sure all the kinks are worked out yet. 

  • Post Points: 5
Greg Pringle
Points 1,490
Replied On: Wed, Jun 29 2016 1:19 PM Reply

FYI found the following post from Infragistics staff in another thread from two days ago. 

"We don't have support for ASP.NET Core RC2. The ASP.NET Core RTM version should be out today that's why we will directly target it in our next service release. Since the next Ignite UI SR will be several months from now, you can request a private build using our case system."

  • Post Points: 5
Shree Sai
Points 5
Replied On: Fri, Aug 19 2016 3:07 AM Reply

really very useful blog..Selenium Training in Chennai

  • Post Points: 5
PromoO codes
Points 20
Replied On: Wed, Nov 9 2016 12:31 AM Reply

I really like the dear information you offer in your articles. I'm able to bookmark your site and show the kids check out up here generally. Godaddy promo codes

  • Post Points: 20
chaitu kits
Points 5
Replied On: Thu, Nov 10 2016 6:14 AM Reply

I think this is a real great article post.Thanks Again. Really Cool.

<a href="http://gotrainings.com/mysql-online-training/">My SQL Course Online Training Class From India….</a><br>

<a href="http://gotrainings.com/oracle-dba-online-training/">Oracle DBA Online Training By Realtime Trainer In India</a><br>

<a href="http://gotrainings.com/sap-bw-on-hana-online-training/">Best Sap BW Hana Online Training Institute By Real Time Faculties</a><br>

<a href="http://gotrainings.com/sap-hana-online-training/">Sap Hana Corporate  Training Certification Statistical Software</a><br>
  • Post Points: 5
Replied On: Fri, Nov 18 2016 8:35 PM Reply

I learned so many things from your articles. Expect other contributions. Thanks for sharing how to get help in windows 10

  • Post Points: 5
sys acad
Points 35
Replied On: Fri, Dec 16 2016 12:50 AM Reply

Hi , thanks for such an insightful stuff keep rocking like this

<a href="http://sysacad.in/portfolio-view/linux-training-in-chennai/" rel="nofollow">linux training in chennai</a>

  • Post Points: 5
sys acad
Points 35
Replied On: Fri, Dec 16 2016 12:54 AM Reply

Hi , thanks for such an insightful stuff keep rocking like this

Linux training in chennai

  • Post Points: 20
MarkC Phillips
Points 65
Replied On: Wed, Jan 25 2017 10:20 AM Reply

This is such a great resource that me are providing and you give it away for free. seeing that understand the value of providing a quality resource for free bloons tower defense 5    super smash flash 2

  • Post Points: 65
Page 1 of 2 (29 items) 1 2 Next > | RSS