System.String[] System.String.Split(Char, System.StringSplitOptions) in response

System.String[] System.String.Split(Char, System.StringSplitOptions) in response

nekkenekke Posts: 4Questions: 1Answers: 0

I am trying "datatables-editor-server" on a .NET Framework project version 4.8.
I have installed the latest NuGet package and when I receive the response in the errors, I see:
"Method Not Found: System.String[] System.String.Split(Char, System.StringSplitOptions)".
I have checked the dependencies and they are all correct.
What else can I check?
Thank you very much.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin
    Answer ✓

    Could you try installing the dll from the .NET Framework download package please? I've seen before that it will work, but the Nuget distribution one won't...

    Allan

  • nekkenekke Posts: 4Questions: 1Answers: 0

    i'll try and i will update you, give me a moment.

  • nekkenekke Posts: 4Questions: 1Answers: 0

    Works! :# :# :#

    Thx you!

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    Weird! I'm not entirely sure why the Nuget one isn't working in that case. I'll try unzipping it and see what is going on. Thanks for flagging this up.

    Allan

  • nekkenekke Posts: 4Questions: 1Answers: 0

    :) :) ;) Thx again.

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    Hi - I've just been trying to investigate this, but haven't been able to reproduce the error. I used Visual Studio to create a new .NET Framework 4.8 MVC project. Then used Nuget to add the DataTables-Editor-Server package. Then a really simple use of that in the controller:

    using DataTables;
     
    namespace WebApplication6.Controllers
    {
        public class HomeController : Controller
        {
            public ActionResult Index()
            {
                ViewBag.Title = "Home Page";
     
                var db = new Database("mysql", "connection");
                var editor = new Editor(db, "myTable")
                    .Field(new Field("a"));
     
                return View();
            }
        }
    }
    

    It doesn't actually do much, but it tests that it at least compiles, which it does appear to.

    How did you set your project up? I'm wondering how I can reproduce the error so I can resolve it.

    Allan

Sign In or Register to comment.