Error accessing RSS feed from Silverlight using WebClient ()

I downloaded the code from John Papa's book: http://silverlight-data.com/

and I successfully run the example of chapter 7, which allows you to click

a and reads RSS from digg.com and then displays it.

So I replaced the digg url

http://services.digg.com/stories/topic/microsoft/?appkey=http%3A%2F%2Fwww.silverlight-data.com&count=20]

with my RSS feed:

http://tanguay.info/web/rss

but I get this error in the DownloadStringCompleted event:

Result "e.Result" threw an exception of type "System.Reflection.TargetInvocationException" Error = {System.Security.SecurityException ---> System.Security.SecurityException: security error bei System.Net.BrowserHttpWebRequest.InternalEndGetResponse (IAsyncResult asyniResult) .Net.BrowserHttpWebRequest. <> c__DisplayClass5.

I tried other RSS feeds, for example: http://news.google.com/nwshp?hl=en&tab=wn&output=rss

and I get the same security error.

What can I do to avoid these errors so that I can use these channels from Silverlight?

+3
source share

Source: https://habr.com/ru/post/1702482/


All Articles