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?
nice post I enjoyed it a lot keep sharing like this
http://customersupportservices.aircus.com/
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."
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.
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:-
when asp.net mvc 6 be officially released ?
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 ?
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.