Converting the Datatables WebApiExamples in to a Web App file.

Converting the Datatables WebApiExamples in to a Web App file.

lesalgado47lesalgado47 Posts: 40Questions: 14Answers: 0

Hi folks, I am trying to publish Datatables to the cloud but the file must be of a certain type that is different from the file type that we download from this website. I have setup a new sln file of the correct type needed to publish to the cloud, however i keep getting a 404 error or a AJAX error "7n". I have the MVC files setup and the dll referneces in place, however I keep getting errors. Is there something I maybe missing? I didn't transfer over all the examples and the demo I spun up on the web site sln file worked properly. So far my network recording gets stuck at 400 or 500. I checked spelling and name spaces so it. The global file seems ok was well. Where could I be going wrong ?
-apprentice

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,353Questions: 1Answers: 10,444 Site admin
    Answer ✓

    A 404 error means that the file can't be found by the server. With out a link to a test case I'm not even sure what url it is requesting in your setup. However it sounds like it will be a problem in the Visual Studio project. I can't really offer much help there - you would be best asking on Microsoft's forums.

    Allan

  • lesalgado47lesalgado47 Posts: 40Questions: 14Answers: 0

    Ok well I set off to try and fix it myself before hitting StackOverflow, it has been a good experience because I have a better understanding how the logic in the sln files works.

    The webapp file runs ok until I reach the view that contains the Jquery and Table. HTML is rendered but I get this error code when I reach the Jquery section that calls on the controller.

    0x800a138f - JavaScript runtime error: Unable to get property 'Editor' of undefined or null reference

    I know you probably need more details for a good question but do you have any pointers?

    Thanks for your help!

  • lesalgado47lesalgado47 Posts: 40Questions: 14Answers: 0

    What was happening was that the plate had a shared Layout view and rendered the views requested within a segment as a partial view. At the bottom of the markup there was a segment that called on a script bundle , which I think overwrote all the js files that were being called for datatables.

    Character Building Experience Indeed

  • allanallan Posts: 63,353Questions: 1Answers: 10,444 Site admin
    Answer ✓

    I have similar thoughts every time I use .NET :-). Good to hear you found the issue and resolved it.

    Allan

This discussion has been closed.