Copied to clipboard

Flag this post as spam?

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


  • Gary 80 posts 377 karma points
    Dec 12, 2018 @ 15:53
    Gary
    0

    Umbraco API Controller hasn't updated

    Hi,

    I have updated my API Controller and made the changes to the live site. Can anyone help to why the site isn't picking up the updated controller?

    I am using Umbraco Web API Controller to return some news but when i copy the new file over, the call isn't returning the updated version. What am i missing?

    Thank you :)

    Kind Regards,

    Gary Henshall

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Dec 12, 2018 @ 15:54
    Alex Skrypnyk
    0

    Hi Gary

    Did you upload dll or just .cs file? Which folder did you use? App_Code or Controllers?

    Alex

  • Gary 80 posts 377 karma points
    Dec 12, 2018 @ 15:55
    Gary
    0

    Hi Alex,

    Just the CS file in the Controller folder.

    Kind Regards,

    Gary

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Dec 12, 2018 @ 16:01
    Alex Skrypnyk
    1

    Gary, you have to use /bin folder for compiled dlls or App_Code folder for .cs files.

    These folders are reserved by .net for binaries and custom code

  • Gary 80 posts 377 karma points
    Dec 12, 2018 @ 16:04
    Gary
    0

    Thanks Alex.

    So if i update my site's Dll, will this pick up the change? Or do i need to change where i create / save my controllers?

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Dec 12, 2018 @ 16:31
    Alex Skrypnyk
    101

    it will pick up if you update dll or .cs file in app_code

    depends on how did you deploy your files previous time

    is it originally in dll?

  • Gary 80 posts 377 karma points
    Dec 17, 2018 @ 15:45
    Gary
    0

    Hi Alex,

    I managed to update my sites Dll in the production environment and this seemed to then pick up the change.

    Thank you for your help.

    Kind Regards,

    Gary Henshall

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Dec 18, 2018 @ 00:36
    Alex Skrypnyk
    0

    Hi Gary,

    You are welcome, happy to help!

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft