<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/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>Report a Silverlight Bug</title><link>http://forums.silverlight.net/forums/28.aspx</link><description>Found a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: SilverlightHost.Source issue</title><link>http://forums.silverlight.net/forums/thread/66220.aspx</link><pubDate>Sun, 29 Jun 2008 00:20:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:66220</guid><dc:creator>ahopper</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/66220.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=66220</wfw:commentRss><description>&lt;p&gt;Thanks, Sergey!&lt;/p&gt;
&lt;p&gt;One more question; would this bug also affect downloads via WebClient/HttpWebRequest?&amp;nbsp;I am seeing that no events get fired when I attempt to download files/images.&lt;/p&gt;</description></item><item><title>Re: SilverlightHost.Source issue</title><link>http://forums.silverlight.net/forums/thread/65681.aspx</link><pubDate>Thu, 26 Jun 2008 20:37:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:65681</guid><dc:creator>Sergey Volk MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/65681.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=65681</wfw:commentRss><description>&lt;p&gt;Indeed. I have filed a bug for this - thanks for reporting!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>SilverlightHost.Source issue</title><link>http://forums.silverlight.net/forums/thread/65118.aspx</link><pubDate>Wed, 25 Jun 2008 17:25:22 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:65118</guid><dc:creator>ahopper</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/65118.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=65118</wfw:commentRss><description>&lt;p&gt;I believe I have encountered a bug in the way the B2 drop calculates the value of SilverlightHost.Source (aka Application.Current.Host.Source) - if you point the Object tag&amp;#39;s Source param&amp;nbsp;or Silverlight.createObject at an .XAP served from a different site, the value of .Source incorrectly prepends the path to the folder hosting the .XAP to the full path to the .XAP itself.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the steps to repro:&lt;br /&gt;1. Create a new Silverlight B2 application (&amp;quot;MyApp&amp;quot;) and select the option to use a Web to test it.&lt;br /&gt;2. Add a TextBlock to the Grid in Page.xaml and name it &amp;quot;appSource&amp;quot;&lt;br /&gt;3. In the constructor of the Page class, add the following code after the call to InitializeComponent():&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; this.appSource.Text = Application.Current.Host.Source.ToString();&lt;/p&gt;
&lt;p&gt;4. Run the application and verify that the TextBlock shows &lt;a href="http://localhos"&gt;/ClientBin/MyApp.xap&amp;quot;&amp;gt;http://localhost:&amp;lt;port&amp;gt;/ClientBin/MyApp.xap&lt;/a&gt;&lt;br /&gt;5. Copy the .XAP to a web server other than the Web in your project (IIS comes in handy here - you can simply place it in wwwroot for the purpose of this repro).&lt;br /&gt;6. Change the Source attribute of the Silverlight control in the test .aspx page to point to the new location (eg: &lt;a href="http://localhost/SomeFolder/MyApp.xap"&gt;http://localhost/SomeFolder/MyApp.xap&lt;/a&gt;)&lt;br /&gt;7. Run the project again. Note that the TextBlock now displays &lt;a href="http://localhost/SomeFolder/http://localhost/SomeFolder/MyApp.xap"&gt;http://localhost/SomeFolder/http://localhost/SomeFolder/MyApp.xap&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>