<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>LA.NET [EN] : ASP.NET, WCF</title><link>http://msmvps.com/blogs/luisabreu/archive/tags/ASP.NET/WCF/default.aspx</link><description>Tags: ASP.NET, WCF</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>.NET 3.5 and VS SP beta1 goodies</title><link>http://msmvps.com/blogs/luisabreu/archive/2008/05/12/net-3-5-and-vs-sp-beta1-goodies.aspx</link><pubDate>Mon, 12 May 2008 19:58:24 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1621149</guid><dc:creator>luisabreu</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/luisabreu/rsscomments.aspx?PostID=1621149</wfw:commentRss><comments>http://msmvps.com/blogs/luisabreu/archive/2008/05/12/net-3-5-and-vs-sp-beta1-goodies.aspx#comments</comments><description>&lt;p&gt;You can get them from here (VS) and &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=23516C63-2DB2-4E7F-AABA-32B12D6E025C&amp;amp;displaylang=en"&gt;here&lt;/a&gt; (.NET). I&amp;#39;m reading what&amp;#39;s new on Brad Abrams &lt;a href="http://blogs.msdn.com/brada/archive/2008/05/05/visual-studio-2008-and-net-framework-3-5-sp1-beta.aspx"&gt;post&lt;/a&gt; and I&amp;#39;m really digging the new features:) For instance, having the format option working with JS code is simply cool! Another cool thing: the ScriptManager is able to combine scripts so there&amp;#39;s really no need for using the &lt;a href="http://msmvps.com/blogs/luisabreu/archive/2007/06/12/toolkitscriptmanager-there-s-a-new-scriptmanager-in-town.aspx"&gt;ToolkitScriptManager&lt;/a&gt; for that:)&lt;/p&gt; &lt;p&gt;Btw, i&amp;#39;m still going through the complete list but it really looks like we&amp;#39;re gonna gave lots of new stuff :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1621149" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/MS+AJAX/default.aspx">MS AJAX</category><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/WPF/default.aspx">WPF</category><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/Trivia/default.aspx">Trivia</category><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/WF/default.aspx">WF</category><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/WCF/default.aspx">WCF</category></item><item><title>Syndication and WCF</title><link>http://msmvps.com/blogs/luisabreu/archive/2008/01/16/syndication-and-wcf.aspx</link><pubDate>Wed, 16 Jan 2008 15:16:17 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1466029</guid><dc:creator>luisabreu</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/luisabreu/rsscomments.aspx?PostID=1466029</wfw:commentRss><comments>http://msmvps.com/blogs/luisabreu/archive/2008/01/16/syndication-and-wcf.aspx#comments</comments><description>&lt;p&gt;The latest release of .NET has added several interesting new things. One of those is support for Syndication. The System.ServiceModel.Web assembly has several classes that you can use to expose an ATOM or RSS feed. There&amp;#39;s already a cool &lt;a href="http://msdn.microsoft.com/msdnmag/issues/08/01/WCFinOrcas/default.aspx"&gt;article&lt;/a&gt; on how to achieve this&amp;nbsp; which has been published on MSDN, so I&amp;#39;m not going to bother you with the details (you can check the &lt;a href="http://samples.netfx3.com/PictureServices/"&gt;code online&lt;/a&gt;, but don&amp;#39;t download it because it&amp;#39;s not updated; instead, &lt;a href="https://www.cloudsamples.net/ContextBar/SourceViewer/PictureServices"&gt;browse&lt;/a&gt; the online version). The only thing I&amp;#39;d like to add to what is presented on the article is how to make Firefox interpret the RSS generated as RSS (instead of interpreting it like XML).&lt;/p&gt; &lt;p&gt;The problem with FF is that it will only consider the XML to be RSS feed if it has all the mandatory elements. If you&amp;#39;re like me, you&amp;#39;re probably going to go through all the public properties of the &lt;a href="http://msdn2.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationfeed.aspx"&gt;SyndicationFeed&lt;/a&gt; object and you&amp;#39;ll set those that make sense. Unfortunately, there really isn&amp;#39;t any called link (though there&amp;#39;s a Links collection property) so I didn&amp;#39;t set up that element from my code (and &amp;lt;link&amp;gt; is one of the mandatory channel elements! - ok, my fault. Should have read the specs to see which items were mandatory...).&amp;nbsp; And that&amp;#39;s why&amp;nbsp; I lost almost one hour trying to understand why FF wasn&amp;#39;t applying its default XSLT stylesheet to my RSS content. I could see the XML, but then I got that awful message that said that there wasn&amp;#39;t any stylesheet file applied to my XML document. In fact, it looks like I wasn&amp;#39;t the only one that forgot to define the RSS link element: if you try to &lt;a href="http://samples.netfx3.com/pictureservices/feed.svc/pictures"&gt;run the code presented on the sample&lt;/a&gt;, you&amp;#39;ll see something like this:&lt;/p&gt; &lt;p&gt;&lt;a href="http://msmvps.com/blogs/luisabreu/WindowsLiveWriter/SyndicationandWCF_D603/Untitled_2.jpg"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="190" alt="Untitled" src="http://msmvps.com/blogs/luisabreu/WindowsLiveWriter/SyndicationandWCF_D603/Untitled_thumb.jpg" width="244" border="0" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;The only thing you need to fix the code is to add a link element to the feed, which can be done with code that looks like this:&lt;/p&gt; &lt;p&gt;feed.Links.Add(SyndicationLink.CreateAlternateLink(new Uri(&amp;quot;put a valid URI here&amp;quot;)));&lt;/p&gt; &lt;p&gt;where feed is a reference to a &lt;a href="http://msdn2.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationfeed.aspx"&gt;SyndicationFeed&lt;/a&gt; object. &lt;/p&gt; &lt;p&gt;Now, if I only could make it add global namespaces, then I&amp;#39;d really be a happy man! (ok, You &lt;a href="http://msdn2.microsoft.com/en-us/library/system.servicemodel.syndication.syndicationfeed.aspx"&gt;can add namespaces&lt;/a&gt; to the &amp;lt;channel&amp;gt; element, but what I want is to add those declarations on the top &amp;lt;rss&amp;gt; element)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1466029" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://msmvps.com/blogs/luisabreu/archive/tags/WCF/default.aspx">WCF</category></item></channel></rss>