Tech Off Post

Single Post Permalink

View Thread: Does Not Support REST Calls for ASP.NET 2.0
  • User profile image

    Are you hip to the jive? Well let’s go daddy—go! So dig this:

    string uri = "";

    WebPermission perm = new WebPermission();

    perm.AddPermission(NetworkAccess.Connect, uri);


    I do not like to be right about things like this—so do not hesitate to tell me that I am wrong. It appears that the last line of code above will always throw an error for shared hosting accounts running on .NET Framework 2.0 (ASP.NET 2.0). This means that ASP.NET 2.0 REST calls are impossible for shared hosting customers.

    Since I have already contacted and have an understanding about their attitude regarding this problem, this is an opportunity for competitors out there to let me—and other customers—know how you deal with this problem. Is this a Microsoft “locked trust” problem? Is this just a configuration issue under the control of