How to retrieve Google Blogger feed in ASP.NET medium trust?
- by ChrisP
I have an ASP.NET web site hosted at HostMySite.com and they recently changed the shared accounts to run in medium trust. In my web site I query my Blogger account and get blog posts to display on my web site.
I am using Google.GData.Client v1.4.0.2
The retrieval works locally (and worked until medium trust was invoked at the ISP). Now I receive the following error:
[SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +58
System.Net.HttpWebRequest..ctor(Uri uri, ServicePoint servicePoint) +147
System.Net.HttpRequestCreator.Create(Uri Uri) +26
System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) +216
System.Net.WebRequest.Create(Uri requestUri) +31
Google.GData.Client.GDataRequest.EnsureWebRequest() +77
Google.GData.Client.GDataRequest.Execute() +42
Google.GData.Client.Service.Query(Uri queryUri, DateTime ifModifiedSince, String etag, Int64& contentLength) +193
Google.GData.Client.Service.Query(FeedQuery feedQuery) +202
I've search the Google documentation and on-line but have not been able to find out what I need to change.
Thanks