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!
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
Have you modify rights for the entire folder where you website is? If not - try do that.
Kind regards
Anders
is working on a reply...