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?
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
Hi Gary
Did you upload dll or just .cs file? Which folder did you use? App_Code or Controllers?
Alex
Hi Alex,
Just the CS file in the Controller folder.
Kind Regards,
Gary
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
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?
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?
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
Hi Gary,
You are welcome, happy to help!
Alex
is working on a reply...