Copied to clipboard

Flag this post as spam?

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


  • Calle Bjernekull 28 posts 103 karma points
    Jul 12, 2016 @ 06:50
    Calle Bjernekull
    0

    404 from backoffice

    Hi, i don't really get this to work. It works really good on testsite, but not in production (hosted on Azure) /umbraco/backoffice/api/RankOneApi/GetPageHierarchy gives me 404 on productionsite. Any idea what it could be?

  • Mark Wemekamp 73 posts 385 karma points
    Jul 12, 2016 @ 07:00
    Mark Wemekamp
    0

    Hi Calle,

    Are you getting this error in the new dashboard interface or with one of the datatypes? Could you do a few checks?

    • Are you sure version 0.3.1 is installed?
    • Is the RankOne.dll present - in de bin folder?
    • Is the current backend session still active?

    I'm running my personal site in Azure (Virtual Machine) and everything works as expected, this is the only scenario I've tested in Azure.

  • Calle Bjernekull 28 posts 103 karma points
    Jul 13, 2016 @ 11:38
    Calle Bjernekull
    0

    Hi, I get this error in the dashboard interface, and it's not only GetPageHierarchy that throws 404, also /umbraco/backoffice/api/RankOneApi/AnalyzeNode throws 404.

    • 0.3.1 is installed. Installed by uploading "local package". Did not upgrade, just a new install
    • Yes, RankOne.dll is present
    • I'm authenticated in Umbraco, so I suppose my backend session is alive? Or how do I check?

    And also, RankOne.Business.dll is NOT present in bin-folder

  • Mark Wemekamp 73 posts 385 karma points
    Jul 12, 2016 @ 07:02
    Mark Wemekamp
    0

    Oh, if you've installed version 0.3.1. can you also make sure the RankOne.Business.dll is not present in the bin folder. If it is, please delete it. It's not necessary anymore

  • Calle Bjernekull 28 posts 103 karma points
    Jul 14, 2016 @ 10:24
    Calle Bjernekull
    0

    I had a look at RankOne.dll in reflector I might be wrong here, but I think your RankOneApiController must be marked with

    [PluginController("RankOne")] 
    
  • Mark Wemekamp 73 posts 385 karma points
    Jul 14, 2016 @ 14:51
    Mark Wemekamp
    0

    Thanks, I'll take a look at it. Is there a way I can try to reproduce your environment?

    Is it an Azure webapp or have you maybe installed Umbraco through the Azure marketplace?

  • Calle Bjernekull 28 posts 103 karma points
    Jul 14, 2016 @ 15:23
    Calle Bjernekull
    0

    I'm really trying to reproduce the problem on my dev-environment, but I'll only get the error on Azure. (Running as Webapp) I also have the testsite on Azure, and get the same error.

    I'll fork your project and test to mark the controller as PluginController and see what's happends. If you want I can give you credentials to our testsite

  • Calle Bjernekull 28 posts 103 karma points
    Jul 15, 2016 @ 06:22
    Calle Bjernekull
    0

    Okay, this was a bit odd. I just made a new release with other changes in my project. And suddenly it works! Did not change anything in RankOne-source.

  • Mark Wemekamp 73 posts 385 karma points
    Jul 15, 2016 @ 07:31
    Mark Wemekamp
    0

    That is indeed odd, haha! Glad it works for you now

    I've tried reproducing the problem in an Azure webapp but without success. If you encounter this problem again, please let me know.

  • Calle Bjernekull 28 posts 103 karma points
    Dec 14, 2016 @ 10:01
    Calle Bjernekull
    0

    Hi again, would like to take up this thread again. It seems like the problem is that you've hardcoded the url's to backoffice api to '/umbraco/backoffice/rankone/RankOneApi/{action}'

    Please, correct me if I'm wrong here, but I had a look at this page https://our.umbraco.org/documentation/reference/routing/Authorized/ which sais that the url will look like this:

    /umbraco/backoffice/{pluginname}/{controller}/{action}
    

    Because you've marked all your controllers as "RankOne" the url should look like

    /umbraco/backoffice/RankOne/{controller}/{action}
    

    For example:

    /umbraco/backoffice/RankOne/DashboardApi/GetPageHierarchy
    

    I've got 404 in backoffice after the last update, but made this fix in scripts.js on all API-requests, and it works for me

  • Calle Bjernekull 28 posts 103 karma points
    Dec 14, 2016 @ 10:10
    Calle Bjernekull
    0

    Ok, an addition to my last post. It seems like you've actually fixed the endpoint-url's in the source: https://github.com/markwemekamp/RankOne-Umbraco-SEO-Tool/blob/master/src/RankOne.SEO.Tool/Web/UI/App_Plugins/RankOne/services/dashboard.service.js

    But the compiled scripts.js in the package that I've downloaded has the wrong url's: Download latest package (0.3.5) and look att scripts.js around line 847

  • Mark Wemekamp 73 posts 385 karma points
    Dec 19, 2016 @ 16:29
    Mark Wemekamp
    0

    Did you download the package from our or through nuget? I just checked, both have the updated javascripts. When you update through nuget not all the files seem to update.

Please Sign in or register to post replies

Write your reply to:

Draft