Copied to clipboard

Flag this post as spam?

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


  • Raj Kumar 3 posts 23 karma points
    Aug 27, 2013 @ 16:56
    Raj Kumar
    0

    Rest Extension Not working after moving code into 4.11.10

    Hi,

    I have recently moved my code from 4.7.1 to 4.11.10. In old version rest extensions used to work perfectly. But in 4.11 they are not working and I am getting 500 error. Even debug is also not hitting there.

     

    URL for the rest methon http://localhost/Base/Landing/GetCountries/3

    NOTE:- I have not upgraded the umbraco. I just moved my code to higher version

    Some code

    namespace Test.Umbraco.Ajax
    {
    
        [RestExtensionAttribute("Landing")]
        public class Landing : Core.AjaxBase
        {
            /// 
            /// Returns list of countries for region
            /// 
            [RestExtensionMethodAttribute]
            public static string GetCountries()
            {
                return Core.RazorRenderer.RenderScriptFile("LandingPage/GetCountries", 0, GetLandingParameters(false));
            }
    }
  • 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