Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Boban 2 posts 72 karma points
    Dec 13, 2018 @ 19:19
    Boban
    0

    Failed to retrieve json from UmbracoApiController on deployment server. Locally works fine.

    Hi everyone,

    I'm having some problem retrieving json from UmbracoApiController method. Locally everything works, but when I try to deploy on server I'm getting this: " This XML file does not appear to have any style information associated with it. The document tree is shown below. "

    Home page is showing correctly. I have problem just with json controller on the server. My method :

    [System.Web.Http.HttpGet] ///

    /// Output the HomePage as JsonResponse /// /// public IHttpActionResult Home() {

    ... return Json(response); }

    Like I said, it's working locally.

    Thanks!!

    Bojan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies