C# Blog Reader - 3 - Asynchronous programming
- Posted: Oct 26, 2012 at 9:50 AM
- 3,840 Views
- 4 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
In this video, we'll review the asynchronous programming model for Windows 8 apps, and how to use the async/await keywords to download RSS feeds asynchronously.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
thank you for video. it successfully build but when i run it show
An exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll but was not handled in user code
Additional information: Error HRESULT E_FAIL has been returned from a call to a COM component.
If there is a handler for this exception, the program may be safely continued.
in this line
FeedDataSource feedDataSource = (FeedDataSource)App.Current.Resources["feedDataSource"];
@MSPNitesh: I had the same exception till I discovered that I misspelled:
<local:FeedDataSource x:Key="feedDataSource" />
in app.xaml , correcting it, this exception was no more showed.
once resolved, I had another exception:
"A first chance exception of type 'System.Exception' occurred in mscorlib.dll
WinRT information: DTD is prohibited."
at line:
SyndicationFeed feed = await client.RetrieveFeedAsync(feedUri);
All web links do not work , making the code throw System.Exception in mscorlib.dll
at line:
SyndicationFeed feed = await client.RetrieveFeedAsync(feedUri);
please update web links due to switch from
http://windowsteamblog.com
to
http://blogs.windows.com
Instead of what in the video and in the complete code :
Task<FeedData> feed1 =
GetFeedAsync("http://windowsteamblog.com/windows/b/developers/atom.aspx");
Task<FeedData> feed2 =
GetFeedAsync("http://windowsteamblog.com/windows/b/windowsexperience/atom.aspx");
Task<FeedData> feed3 =
GetFeedAsync("http://windowsteamblog.com/windows/b/extremewindows/atom.aspx");
Task<FeedData> feed4 =
GetFeedAsync("http://windowsteamblog.com/windows/b/business/atom.aspx");
Task<FeedData> feed5 =
GetFeedAsync("http://windowsteamblog.com/windows/b/bloggingwindows/atom.aspx");
Task<FeedData> feed6 =
GetFeedAsync("http://windowsteamblog.com/windows/b/windowssecurity/atom.aspx");
Task<FeedData> feed7 =
GetFeedAsync("http://windowsteamblog.com/windows/b/springboard/atom.aspx");
Task<FeedData> feed8 =
GetFeedAsync("http://windowsteamblog.com/windows/b/windowshomeserver/atom.aspx");
// There is no Atom feed for this blog, so use the RSS feed.
Task<FeedData> feed9 =
GetFeedAsync("http://windowsteamblog.com/windows_live/b/windowslive/rss.aspx"); Task<FeedData> feed10 = GetFeedAsync("http://windowsteamblog.com/windows_live/b/developer/atom.aspx");
Task<FeedData> feed11 =
GetFeedAsync("http://windowsteamblog.com/ie/b/ie/atom.aspx");
Task<FeedData> feed12 =
GetFeedAsync("http://windowsteamblog.com/windows_phone/b/wpdev/atom.aspx");
Task<FeedData> feed13 =
GetFeedAsync("http://windowsteamblog.com/windows_phone/b/wmdev/atom.aspx");
Task<FeedData> feed14 =
GetFeedAsync("http://windowsteamblog.com/windows_phone/b/windowsphone/atom.aspx");
This should be used as links are working:
Task<FeedData> feed1 =
GetFeedAsync(
"http://blogs.windows.com/windows/b/bloggingwindows/rss.aspx");
Task<FeedData> feed2 =
GetFeedAsync(
"http://blogs.windows.com/windows/b/windowsexperience/rss.aspx");
Task<FeedData> feed3 =
GetFeedAsync(
"http://blogs.windows.com/windows/b/extremewindows/rss.aspx");
Task<FeedData> feed4 =
GetFeedAsync(
"http://blogs.windows.com/windows/b/business/rss.aspx");
Task<FeedData> feed5 =
GetFeedAsync(
"http://blogs.windows.com/windows/b/windowssecurity/rss.aspx");
Task<FeedData> feed6 =
GetFeedAsync(
"http://blogs.windows.com/windows/b/springboard/rss.aspx");
Task<FeedData> feed7 =
GetFeedAsync(
"http://blogs.windows.com/windows/b/windowshomeserver/rss.aspx");
Task<FeedData> feed8 =
GetFeedAsync(
"http://blogs.windows.com/windows_live/b/windowslive/rss.aspx");
Task<FeedData> feed9 =
GetFeedAsync(
"http://blogs.windows.com/windows_live/b/developer/rss.aspx");
Task<FeedData> feed10 =
GetFeedAsync(
"http://blogs.windows.com/ie/b/ie/rss.aspx");
Task<FeedData> feed11 =
GetFeedAsync(
"http://blogs.windows.com/skydrive/b/skydrive/rss.aspx");
Task<FeedData> feed12 =
GetFeedAsync(
"http://blogs.windows.com/windows_phone/b/windowsphone/rss.aspx");
Task<FeedData> feed13 =
GetFeedAsync(
"http://blogs.windows.com/windows_phone/b/wpdev/rss.aspx");
Task<FeedData> feed14 =
GetFeedAsync(
"http://blogs.windows.com/windows_phone/b/wmdev/rss.aspx");
Remove this comment
Remove this thread
close