Copied to clipboard

Flag this post as spam?

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


  • mrlowe 2 posts 22 karma points
    Aug 25, 2012 @ 23:29
    mrlowe
    0

    Accessing /Base from within site

    I'm new to Umbraco, so please forgive me if this is obvious, but:

    I'm trying to write a little code to test my /Base services. Something like this:

     

    WebRequest request = WebRequest.Create("http://localhost:49199/Base/Geo/GetPoint.aspx");
    WebResponse ws = request.GetResponse();

     

    The problem is, the server returns 500 for this request, and any Base requests. The same requests via Base work fine from within a browser, and furthermore this appears to be an issue that only affects Base ... other site URLs are perfectly accessible using a WebRequest.

    I'm pretty sure I can work around it by doing this bit of my testing in the javascript of the page, but does anybody know if and/or why I'm seeing this behavior?

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft