我在Silverlight 4應用程序中使用RestSharp並且它似乎不工作..它總是會返回錯誤和System.Security.SecurityException。Silverlight 4應用程序中的RestSharp不起作用
try
{
client.ExecuteAsync(request, (response) =>
{
if (response.ResponseStatus == ResponseStatus.Error)
{
Debug.WriteLine(response.ResponseStatus);
}
else if (response.ResponseStatus == ResponseStatus.Completed)
{
Debug.WriteLine(response.Content);
}
});
}
catch(System.Security.SecurityException e)
{
Debug.WriteLine("Exception : " + e.Message);
}