Copied to clipboard

Flag this post as spam?

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


  • Carlos Tarazona 24 posts 43 karma points
    Nov 26, 2014 @ 15:50
    Carlos Tarazona
    0

    Internal server error (500) using /Base?

    Hi,

    Has anyone ever got an internal server error (500) trying setup/access a /base method?

    I am getting one, there is nothing in the event log.  I finally changed 500 errors to show details and I get:

    Extension or method not found.

    So it seems it can't find the rest extesion.  I have tried scaling back to just a "hellow world" and I was getting the same issue.  Then, I tried CarlosTest in case it was colliding with something else by chance. I'm using the Tea Comm starter kit (Umbraco v6.1.6).  Server is Win 2012.  Here's my class in VS 2012:

     

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Text;

    using System.Threading.Tasks;

     

    //Umbraco

    using Umbraco.Web;

    using Umbraco.Web.BaseRest;

    using Umbraco.Core;

    using Umbraco.Core.Models;

     

     

    namespace AmataRESTExt2014

    {

        [RestExtension("CarlosTest")]

        public class CarlosTest

        {

            [RestExtensionMethod()]

            public static string CarlosTestTest()

            {

                try

                {

                    return "Hello World";

                }

                catch (Exception ex)

                {

                    return ex.InnerException.ToString();

                }

     

            }

     

        }

    }

    Anyone have any ideas? I have tried setting permsissions for the umbraco folders (using a batch file) but that didn't help either.  Thanks!

     

    Carlos

  • Anders Burla 2560 posts 8256 karma points
    Nov 27, 2014 @ 10:14
    Anders Burla
    0

    Have you modify rights for the entire folder where you website is? If not - try do that.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft