Copied to clipboard

Flag this post as spam?

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


  • Nigel Wilson 945 posts 2077 karma points
    Dec 07, 2011 @ 01:45
    Nigel Wilson
    0

    \base Internal Server Error Problem

    Hi there

    I am trying to wire up a Rest Extension but am having no luck - I have coded \base functionality before with no problems and this is making me pull my hair out (what's left of it).

    The error message is;

    The page cannot be displayed because an internal server error has occurred.

    My code is

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Xml;
    using umbraco.presentation.umbracobase;

    namespace Foodstuffs.Umbraco.Trents
    {
        [RestExtension("restExt")]
        public class RestHelper
        {
            [RestExtensionMethod()]
            public static string CheckCustomerNumber(string custNo)
            {
                ...
            }
           
        }
    }

    I am trying to call the rest extension via the following URL:

    http://myURL/base/restExt/CheckCustomerNumber/123.aspx

    I have tried using a capital B in base too but that didn't work either

    Please, please, please tell me what obvious piece of the puzzle I am missing...

    Nigel

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Dec 07, 2011 @ 17:27
    Dave Woestenborghs
    0

    What is the actual server error ? Maybe it's caused because it's an error in your method

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Dec 07, 2011 @ 21:28
    Bo Damgaard Mortensen
    0

    Hi Nigel,

    As dawoe said, this is typically something going wrong in the method - most common error is a nullpointer exception :-)

    - Bo

  • Nigel Wilson 945 posts 2077 karma points
    Dec 07, 2011 @ 21:53
    Nigel Wilson
    0

    Hey

    Thanks for your input dawoe / Bo 

    I haven't managed to find anything in the IIS logs yet. There is nothing in the Umbraco log table of use.

    I will "strip" out my code and do a "Hello World" and see how it goes from there.

    Thanks again.

    Nigel

  • Nigel Wilson 945 posts 2077 karma points
    Dec 07, 2011 @ 22:31
    Nigel Wilson
    0

    Bo - bang on with suggestion....

    Mucky code was the problem, guess I was expecting more of an useful error message rather than just "dying"

    N

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Dec 07, 2011 @ 22:45
    Bo Damgaard Mortensen
    0

    Hi Nigel,

    No problem there :-)

    As for the no-exception pondering, I think it may be due to /base being just a proxy between the client and the server. I may be wrong though.

    - Bo

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Dec 08, 2011 @ 09:26
    Dave Woestenborghs
    0

    Hi Nigel,

    Probably you have your custom errors set to on or remote only, that's why you don't see the error

Please Sign in or register to post replies

Write your reply to:

Draft