Grid Failing with Mono (GridEditMode.PopUp )

4 posts, 0 answers
  1. Shane
    Shane avatar
    4 posts
    Member since:
    Dec 2014

    Posted 17 May 2015 Link to this post

     I have posted this question on Stackoverflow, but had no real success in getting an answer.

     Hopefully someone here can help me.

     When I add this to my Grid:

     .Editable(editable => editable.Mode(GridEditMode.PopUp))

    I get the following error:

     System.IO.FileNotFoundException
     Could not load file or assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.

     When I remove the Popup edit function it works.

     Mono does not use / support System.Data.Entity.

     Furthermore, because the assembly is missing from mono, nothing in my solution uses or references that Library.

     Not event in my Web.Conf file.

     How can I solve this problem?

  2. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 20 May 2015 Link to this post

    Hello Shane,

    Unfortunately, I'm not sure what may causing the described error. Kendo.Mvc assembly does not have reference to System.Data.Entity and can be build on MONO. Maybe you should verify that there is no EditorTemplates which are either directly or indirectly using classes for System.Data.Entity assembly.

    Regards,
    Rosen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Shane
    Shane avatar
    4 posts
    Member since:
    Dec 2014

    Posted 28 May 2015 in reply to Rosen Link to this post

    I will give that a try, but at this stage I was not using any editor templates at all. It was a blank MCV 4 Application, just implementing the Grid with some dummy data from a List<>.
  4. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 01 Jun 2015 Link to this post

    Hello Shane,

    Could you try removing the Grid and explicitly render the editor for the model (using @Html.EditorForModel). Are you getting the same result? You can try overriding the Object EditorTemplate by placing a custom one and see if this makes any difference. 

    On a side note it seems that as of Mono 2.11.3 EF is supported. Is adding the EF from Nuget makes any difference?

    Another thing you could try is enabling the MONO logging and see if this gives more information.

    Regards,
    Rosen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top