<?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>WCF RIA Services</title><link>http://forums.silverlight.net/forums/53.aspx</link><description>A forum for discussing the client and server pieces that make up the WCF RIA Services framework for Silverlight</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Bug in DomainService class created in XAML</title><link>http://forums.silverlight.net/forums/thread/244938.aspx</link><pubDate>Thu, 09 Jul 2009 01:55:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244938</guid><dc:creator>waldred</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244938.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=244938</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;enantiomer2000:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I am just surprised that it took months to get a reply on this&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Me too.&amp;nbsp; &lt;img src="http://silverlight.net/emoticons/emotion-10.gif" alt="Embarrassed" /&gt;&amp;nbsp; I just happened to be going through &amp;#39;unanswered posts&amp;#39; and came across it.&amp;nbsp; Apologies for having missed it previously.&lt;/p&gt;</description></item><item><title>Re: Bug in DomainService class created in XAML</title><link>http://forums.silverlight.net/forums/thread/244736.aspx</link><pubDate>Wed, 08 Jul 2009 17:25:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244736</guid><dc:creator>enantiomer2000</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244736.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=244736</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Super.&amp;nbsp; I am fine with bugs in software that hasn&amp;#39;t been released yet, I am just surprised that it took months to get a reply on this.&amp;nbsp; No worries though, thanks for the update.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Bug in DomainService class created in XAML</title><link>http://forums.silverlight.net/forums/thread/243520.aspx</link><pubDate>Tue, 07 Jul 2009 00:53:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243520</guid><dc:creator>waldred</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243520.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=243520</wfw:commentRss><description>&lt;p&gt;Yes, we are planning to have another CTP refresh in the future sometime around the SL3 release date.&amp;nbsp; Announcements will be made in this forum as usual.&amp;nbsp; :)&lt;/p&gt;</description></item><item><title>Re: Bug in DomainService class created in XAML</title><link>http://forums.silverlight.net/forums/thread/243322.aspx</link><pubDate>Mon, 06 Jul 2009 17:44:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243322</guid><dc:creator>theo67</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243322.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=243322</wfw:commentRss><description>&lt;p&gt;Will there be a more frequent update of the RIA-services?&lt;/p&gt;</description></item><item><title>Re: Bug in DomainService class created in XAML</title><link>http://forums.silverlight.net/forums/thread/243318.aspx</link><pubDate>Mon, 06 Jul 2009 17:41:22 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243318</guid><dc:creator>waldred</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243318.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=243318</wfw:commentRss><description>&lt;p&gt;A fix for this issue will be available in our next public release.&lt;/p&gt;</description></item><item><title>Re: Bug in DomainService class created in XAML</title><link>http://forums.silverlight.net/forums/thread/242987.aspx</link><pubDate>Mon, 06 Jul 2009 07:29:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:242987</guid><dc:creator>mohnani.deepesh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/242987.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=242987</wfw:commentRss><description>&lt;p&gt;This is a known issue and we are looking to fix this.&lt;/p&gt;</description></item><item><title>Re: Bug in DomainService class created in XAML</title><link>http://forums.silverlight.net/forums/thread/242526.aspx</link><pubDate>Sat, 04 Jul 2009 13:55:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:242526</guid><dc:creator>Matt.Ruwe</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/242526.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=242526</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m getting an almost identical issue (different class names, but same error description).&amp;nbsp; Any help or response to this question will help multiple folks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Matt&lt;/p&gt;</description></item><item><title>Bug in DomainService class created in XAML</title><link>http://forums.silverlight.net/forums/thread/226646.aspx</link><pubDate>Fri, 29 May 2009 20:40:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:226646</guid><dc:creator>enantiomer2000</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/226646.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=226646</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I posted this in the Silverlight 3 forum, but now think it is really an RIA issue:&lt;/p&gt;&lt;p&gt;There is an exception that is thrown when I try to add my
DomainService class in XAML.&amp;nbsp; Visual studio gives me an error that says
&amp;quot;AG_E_UNKNOWN_ERROR&amp;quot;.&amp;nbsp; If I
open the project in expression blend 3 it says &amp;quot;Cannot create an
instance of &amp;#39;CompanyManager&amp;#39;&amp;quot; and the inner exception says &amp;quot;Object
reference not set to an instance of an object&amp;quot;.&amp;nbsp; The stack trace is
CompanyManager-&amp;gt;HttpDomainClient(Uri
service)-&amp;gt;HttpDomainClient(Uri service, bool
useSSL)-&amp;gt;HttpDomainClient.ComposeAbsoluteServiceUri.&amp;nbsp; When I
actually run the project everything
runs just fine but the Designer won&amp;#39;t show me anything.&amp;nbsp; I have tried
this on both XP and Vista with Linq2Sql and Entities with the same
result.&amp;nbsp; I installed everything that the MS page recommends:&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://silverlight.net/getstarted/silverlight3/default.aspx&lt;/p&gt;&lt;p&gt;the RIA Services example from MS also has the same problem on my computers.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;http://code.msdn.microsoft.com/RiaServices/Release/ProjectReleases.aspx?ReleaseId=2387 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;if I disassemble the generated DomainContext class I get this in the constructor that is failing: &lt;br /&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt; &lt;span class="cmt"&gt;// Methods&lt;/span&gt;&lt;br /&gt; &lt;span class="kwd"&gt;public&lt;/span&gt; MyDomainContext() : &lt;span class="kwd"&gt;base&lt;/span&gt;(&lt;span class="kwd"&gt;new&lt;/span&gt; HttpDomainClient(&lt;span class="kwd"&gt;new&lt;/span&gt; Uri(&lt;span class="st"&gt;&amp;quot;DataService.axd/SilverlightRIA-Web-MyDomainService/&amp;quot;&lt;/span&gt;, UriKind.Relative)))&lt;br /&gt; {&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;where the ComposeAbsoluteServiceUri has the following code:&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&lt;pre class="coloredcode"&gt;[Conditional(&lt;span class="st"&gt;&amp;quot;SILVERLIGHT&amp;quot;&lt;/span&gt;)]&lt;br /&gt;&lt;span class="kwd"&gt;private void&lt;/span&gt; ComposeAbsoluteServiceUri()&lt;br /&gt;{&lt;br /&gt;    &lt;span class="kwd"&gt;if&lt;/span&gt; (!&lt;span class="kwd"&gt;this&lt;/span&gt;._serviceUri.IsAbsoluteUri)&lt;br /&gt;    {&lt;br /&gt;        &lt;span class="kwd"&gt;if&lt;/span&gt; (Application.Current == &lt;span class="kwd"&gt;null&lt;/span&gt;)&lt;br /&gt;        {&lt;br /&gt;            &lt;span class="kwd"&gt;throw new&lt;/span&gt; InvalidOperationException(&lt;span class="kwd"&gt;string&lt;/span&gt;.Format(CultureInfo.CurrentCulture, Resource.DomainClient_ApplicationNotInitialized, &lt;span class="kwd"&gt;new object&lt;/span&gt;[0]));&lt;br /&gt;        }&lt;br /&gt;        &lt;span class="kwd"&gt;string&lt;/span&gt; absoluteUri = Application.Current.Host.Source.AbsoluteUri;&lt;br /&gt;        &lt;span class="kwd"&gt;if&lt;/span&gt; (&lt;span class="kwd"&gt;this&lt;/span&gt;._usesSsl &amp;amp;&amp;amp; absoluteUri.StartsWith(&lt;span class="st"&gt;&amp;quot;http:&amp;quot;&lt;/span&gt;, StringComparison.OrdinalIgnoreCase))&lt;br /&gt;        {&lt;br /&gt;            absoluteUri = &lt;span class="st"&gt;&amp;quot;https:&amp;quot;&lt;/span&gt; + absoluteUri.Remove(0, &lt;span class="st"&gt;&amp;quot;http:&amp;quot;&lt;/span&gt;.Length);&lt;br /&gt;        }&lt;br /&gt;        &lt;span class="kwd"&gt;this&lt;/span&gt;._serviceUri = &lt;span class="kwd"&gt;new&lt;/span&gt; Uri(&lt;span class="kwd"&gt;new&lt;/span&gt; Uri(absoluteUri), &lt;span class="kwd"&gt;this&lt;/span&gt;._serviceUri);&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;pre class="coloredcode"&gt;We know that Application.Current is not null, I know that the _serviceUri has been set since it is passed in explicitly.  &amp;#39;Host&amp;#39; or &amp;#39;Source&amp;#39; could be null.  This probably looks like the most probable bug.  It might actually make sense since when the designer tries to instantiate this, the Application may not have been fully constructed?&lt;br /&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;p&gt;Hopefully this bug is fixed fast... &lt;/p&gt;&amp;lt;ria:DomainDataSource x:Name=&amp;quot;dds&amp;quot; AutoLoad=&amp;quot;True&amp;quot; LoadMethodName=&amp;quot;LoadCompanies&amp;quot; &amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ria:DomainDataSource.DomainContext&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;local:CompanyManager /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ria:DomainDataSource.DomainContext&amp;gt;&lt;br /&gt;&amp;lt;/ria:DomainDataSource&amp;gt;</description></item></channel></rss>