<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>RIA Services Essentials</title><link>http://riaservices.codeplex.com/project/feeds/rss</link><description>The RIA Services Essentials project contains sample applications&amp;#47;extensions demonstrating using and extending WCF RIA Services v1.</description><item><title>New Post: Too many roles</title><link>http://riaservices.codeplex.com/discussions/291073</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In my application the user can have a lot of roles.&amp;nbsp; They can be even more then 100 roles for a user.&lt;/p&gt;
&lt;p&gt;The login works.&lt;br&gt;
But when a ask&amp;nbsp;&lt;span style="color:#2b91af"&gt;Authentication&lt;/span&gt;.GetUser&amp;lt;&lt;span style="color:#2b91af"&gt;User&lt;/span&gt;,&amp;nbsp;&lt;span style="color:#2b91af"&gt;AuthenticationService&lt;/span&gt;&amp;gt;(context); &amp;nbsp;in the CreateDomainService method of the DomainServiceFactory&amp;nbsp;
 the user is allows empty.&lt;/p&gt;
&lt;p&gt;I even tried it in the bookclub example project and this also fails when I give the user&amp;nbsp;100 roles.&lt;/p&gt;
&lt;p&gt;Does anybody have a solution for this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Evy&lt;/p&gt;
&lt;/div&gt;</description><author>EvyDP</author><pubDate>Fri, 03 Feb 2012 10:47:44 GMT</pubDate><guid isPermaLink="false">New Post: Too many roles 20120203104744A</guid></item><item><title>New Post: Validation of included entities</title><link>http://riaservices.codeplex.com/discussions/269171</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm creating an application using Silverlight and RIA Services. On a page, I'm displaying a Customer entity as well as his address, which is an other entity. For this, in my viewmodel, I've a property of type &amp;quot;Customer&amp;quot; and it's address property is set to
 a new entity of type &amp;quot;Address&amp;quot;.&lt;/p&gt;
&lt;p&gt;How can I validate the data when I want to save the Customer? The user should fill the data for the customer and his address. If both are valid, it should create a new &amp;quot;Customer&amp;quot; entity and a new &amp;quot;Address&amp;quot; entity.&lt;/p&gt;
&lt;p&gt;If I write customer.Validate(...), it will validate the Customer entity and it will ignore its &amp;quot;Address&amp;quot; entity. Do I have to validate each entity one by one? As the &amp;quot;Address&amp;quot; entity is a property of the &amp;quot;customer&amp;quot; entity, isn't it possible to validate it
 as all other customer properties?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Daniel Varrin&lt;/p&gt;
&lt;/div&gt;</description><author>dvarrin</author><pubDate>Mon, 15 Aug 2011 21:38:28 GMT</pubDate><guid isPermaLink="false">New Post: Validation of included entities 20110815093828P</guid></item><item><title>New Post: How does a NewBee get started</title><link>http://riaservices.codeplex.com/discussions/256551</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I just came across this today, and need to know how to log in.&amp;nbsp; I can't find any documentation on current user names/passwords or how to create a new user.&lt;/p&gt;
&lt;p&gt;any help would be most appreciated&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;jjw&lt;/p&gt;
&lt;/div&gt;</description><author>jackwebb22002</author><pubDate>Thu, 05 May 2011 20:35:47 GMT</pubDate><guid isPermaLink="false">New Post: How does a NewBee get started 20110505083547P</guid></item><item><title>New Post: Would be great having this project thru NuGet</title><link>http://riaservices.codeplex.com/discussions/255917</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Please add to NuGet library.&lt;/p&gt;
&lt;p&gt;Very essential. I use the RiaEssentials in all my Silverlight projects.&lt;/p&gt;
&lt;p&gt;The FormsAuthenticationService is a mandatory project and should have been included out-the-box.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;/div&gt;</description><author>weitzhandler</author><pubDate>Sun, 01 May 2011 22:24:08 GMT</pubDate><guid isPermaLink="false">New Post: Would be great having this project thru NuGet 20110501102408P</guid></item><item><title>New Post: Is there any way to have idle timeouts?</title><link>http://riaservices.codeplex.com/discussions/252540</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I am using Ria Essential for my authentication. Is there no way to implement idle timeouts? Is there any way to implement these in WCF Ria services at all?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shane&lt;/p&gt;
&lt;/div&gt;</description><author>shaneritchie</author><pubDate>Tue, 05 Apr 2011 08:04:56 GMT</pubDate><guid isPermaLink="false">New Post: Is there any way to have idle timeouts? 20110405080456A</guid></item><item><title>New Post: Please rename RIAEssentials to RiaEssentials (lowercase)</title><link>http://riaservices.codeplex.com/discussions/245822</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;This is by &lt;a href="http://msdn.microsoft.com/en-us/library/141e06ef.aspx"&gt;convension&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;</description><author>weitzhandler</author><pubDate>Sun, 13 Feb 2011 08:47:06 GMT</pubDate><guid isPermaLink="false">New Post: Please rename RIAEssentials to RiaEssentials (lowercase) 20110213084706A</guid></item><item><title>New Post: Concurrent Queries Multiple Databases</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=226667</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;We are building an application that we hope to host in the cloud.&amp;nbsp; One of the things we are considering is spreading a single clients data across multiple databases.&amp;nbsp; Is it possible to expose one RIA domain service that will then query multiple databases?&lt;/p&gt;
&lt;div style="color:black;background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; IQueryable&amp;lt;Library&amp;gt; GetLibrariesForUser()
{
	Guid userId = (Guid)Membership.GetUser().ProviderUserKey;
	&lt;span style="color:blue"&gt;return&lt;/span&gt; &lt;span style="color:blue"&gt;from&lt;/span&gt; x &lt;span style="color:blue"&gt;in&lt;/span&gt; &lt;span style="color:blue"&gt;this&lt;/span&gt;.ObjectContext.Libraries
	   &lt;span style="color:blue"&gt;where&lt;/span&gt; x.LibraryUsers.Any(y =&amp;gt; y.UserId == userId)
	   &lt;span style="color:blue"&gt;select&lt;/span&gt; x;
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to change the above method of a domain service so that it will run the same query against&amp;nbsp;multiple databases, concurrently,&amp;nbsp;and merge the results together before sending the results to the client?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Stewart&lt;/p&gt;&lt;/div&gt;</description><author>stewartarmbrecht</author><pubDate>Thu, 09 Sep 2010 21:29:50 GMT</pubDate><guid isPermaLink="false">New Post: Concurrent Queries Multiple Databases 20100909092950P</guid></item><item><title>New Post: FormsAuthenticationService does not enable Roles when using a persisted cookie</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=224234</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have come across a bug where users are unable to access Role secured resources when they have chosen to persist the cookie between sessions.&lt;/p&gt;
&lt;p&gt;In this scenario&lt;/p&gt;
&lt;pre style="font-family:consolas"&gt;&lt;span style="color:#2b91af"&gt;LoadUserOperation&lt;/span&gt;&amp;nbsp;luo&amp;nbsp;=&amp;nbsp;&lt;span style="color:#2b91af"&gt;MyWebContext&lt;/span&gt;.Current.Authentication.LoadUser();&lt;/pre&gt;
&lt;pre style="font-family:consolas"&gt;is called rather than&lt;/pre&gt;
&lt;pre style="font-family:consolas"&gt;&lt;pre style="font-family:consolas"&gt;&lt;span style="color:#2b91af"&gt;LoginOperation&lt;/span&gt;&amp;nbsp;lo&amp;nbsp;=&amp;nbsp;&lt;span style="color:#2b91af"&gt;MyWebContext&lt;/span&gt;.Current.Authentication.Login(&lt;span style="color:blue"&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style="color:#2b91af"&gt;LoginParameters&lt;/span&gt;(&lt;span style="color:blue"&gt;this&lt;/span&gt;.txtUsername.Text,&amp;nbsp;&lt;span style="color:blue"&gt;this&lt;/span&gt;.txtPassword.Password,&amp;nbsp;&lt;span style="color:blue"&gt;this&lt;/span&gt;.chkKeepLoggedIn.IsChecked.GetValueOrDefault(&lt;span style="color:blue"&gt;false&lt;/span&gt;),&amp;nbsp;&lt;span style="color:blue"&gt;null&lt;/span&gt;));&lt;br&gt;&lt;/pre&gt;
&lt;pre style="font-family:consolas"&gt;this means that &lt;/pre&gt;
&lt;/pre&gt;
&lt;pre style="font-family:consolas"&gt;&lt;pre style="font-family:consolas"&gt;&lt;pre style="font-family:consolas"&gt;&lt;span style="color:blue"&gt;if&lt;/span&gt;&amp;nbsp;(_enableRoles)&amp;nbsp;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;FormsAuthenticationHelper&lt;/span&gt;.Enable(&lt;span style="color:blue"&gt;this&lt;/span&gt;.GetType());&lt;br&gt;}&lt;/pre&gt;
&lt;pre style="font-family:consolas"&gt;is never called as it is currently in &lt;pre style="font-family:consolas"&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt;&amp;nbsp;TUser&amp;nbsp;Login(&lt;span style="color:blue"&gt;string&lt;/span&gt;&amp;nbsp;userName,&amp;nbsp;&lt;span style="color:blue"&gt;string&lt;/span&gt;&amp;nbsp;password,&amp;nbsp;&lt;span style="color:blue"&gt;bool&lt;/span&gt;&amp;nbsp;isPersistent,&amp;nbsp;&lt;span style="color:blue"&gt;string&lt;/span&gt;&amp;nbsp;customData)&lt;br&gt;&lt;/pre&gt;
&lt;pre style="font-family:consolas"&gt;as a fix I have moved it into the constructor&lt;/pre&gt;
&lt;pre style="font-family:consolas"&gt;&lt;pre style="font-family:consolas"&gt;&lt;span style="color:blue"&gt;protected&lt;/span&gt;&amp;nbsp;FormsAuthenticationService(&lt;span style="color:blue"&gt;bool&lt;/span&gt;&amp;nbsp;enableRoles)&amp;nbsp;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_enableRoles&amp;nbsp;=&amp;nbsp;enableRoles;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_cookieLifetime&amp;nbsp;=&amp;nbsp;&lt;span style="color:#2b91af"&gt;TimeSpan&lt;/span&gt;.FromMinutes(30);&lt;br&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue"&gt;if&lt;/span&gt;&amp;nbsp;(_enableRoles)&amp;nbsp;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:#2b91af"&gt;FormsAuthenticationHelper&lt;/span&gt;.Enable(&lt;span style="color:blue"&gt;this&lt;/span&gt;.GetType());&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br&gt;}&lt;/pre&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;/pre&gt;&lt;/div&gt;</description><author>frazermc</author><pubDate>Fri, 20 Aug 2010 11:50:55 GMT</pubDate><guid isPermaLink="false">New Post: FormsAuthenticationService does not enable Roles when using a persisted cookie 20100820115055A</guid></item><item><title>New Post: Loading Child Objects</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=223951</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I posted this on Nikhil's blog but I figured let me post this here since it is dicussions for RIA services.&lt;/p&gt;
&lt;p&gt;We have been working on researching RIA services for our new development initiative. Definetly found the book club application to be very useful.&amp;nbsp;The project we created has a separate project that contains the EntityModel and that is referenced in the domain web service project.&amp;nbsp;In theory&amp;nbsp;there shouldn't be an issue with this approach but for some reason we&amp;nbsp;couldn't get the child&amp;nbsp;objects to load&amp;nbsp;when loading a parent.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was wondering how to load child entities along with the parent. For example using the book club application entity model, how would I load a Member and his respective books in one call from the client. I noticed on the client data context you can't use Include for the EntityQuery on the domainservice I used the &amp;quot;Include&amp;quot; but noticed the child entity wasn't pulled down to the client. I wouldn't want to make multiple calls to retrieve a parent and the child entities.&lt;/p&gt;&lt;/div&gt;</description><author>gbhasin76</author><pubDate>Wed, 18 Aug 2010 13:14:11 GMT</pubDate><guid isPermaLink="false">New Post: Loading Child Objects 20100818011411P</guid></item><item><title>New Post: No persistant Cookie created for User</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=223713</link><description>&lt;div style="line-height: normal;"&gt;&lt;pre&gt;public TUser Login(string userName, string password, bool isPersistent, string customData)
        {
            TUser user = ValidateCredentials(userName, password, customData);

            if (user != null)
            {
                string userData = SerializeUser(user);

                FormsAuthenticationTicket ticket =
                    ticket = new FormsAuthenticationTicket(/* version */ 1, userName,
                                                           DateTime.Now, DateTime.Now.Add(CookieLifetime),
                                                           isPersistent,
                                                           userData,
                                                           FormsAuthentication.FormsCookiePath);

                string encryptedTicket = FormsAuthentication.Encrypt(ticket);
                HttpCookie authCookie = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket);
                if (isPersistent)
                    // For some reason &amp;quot;Expires must be set for the cookie itself, or it will not persist across sessions
                    authCookie.Expires = DateTime.Now.Add(CookieLifetime);
                HttpContextBase httpContext = (HttpContextBase)ServiceContext.GetService(typeof(HttpContextBase));

                httpContext.Response.Cookies.Add(authCookie);

                if (_enableRoles)
                {
                    FormsAuthenticationHelper.Enable(this.GetType());
                }
            }

            return user;
        }&lt;/pre&gt;&lt;/div&gt;</description><author>richardebel</author><pubDate>Tue, 17 Aug 2010 11:13:58 GMT</pubDate><guid isPermaLink="false">New Post: No persistant Cookie created for User 20100817111358A</guid></item><item><title>New Post: No persistant Cookie created for User</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=223713</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;When user selects &amp;quot;remember me&amp;quot;, persistant cookie is not created.&lt;/p&gt;
&lt;p&gt;Change code in FormsAuthenticationService.cs:&lt;/p&gt;
&lt;div style="color:black;background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; TUser Login(&lt;span style="color:blue"&gt;string&lt;/span&gt; userName, &lt;span style="color:blue"&gt;string&lt;/span&gt; password, &lt;span style="color:blue"&gt;bool&lt;/span&gt; isPersistent, &lt;span style="color:blue"&gt;string&lt;/span&gt; customData) {
            TUser user = ValidateCredentials(userName, password, customData);

            &lt;span style="color:blue"&gt;if&lt;/span&gt; (user != &lt;span style="color:blue"&gt;null&lt;/span&gt;) {
                &lt;span style="color:blue"&gt;string&lt;/span&gt; userData = SerializeUser(user);

                FormsAuthenticationTicket ticket =
                    ticket = &lt;span style="color:blue"&gt;new&lt;/span&gt; FormsAuthenticationTicket(&lt;span style="color:green"&gt;/* version */&lt;/span&gt; 2, userName,
                                                           DateTime.Now, DateTime.Now.Add(CookieLifetime),
                                                           isPersistent,
                                                           userData,
                                                           FormsAuthentication.FormsCookiePath);

                &lt;span style="color:blue"&gt;string&lt;/span&gt; encryptedTicket = FormsAuthentication.Encrypt(ticket);
                &lt;span style="color:green"&gt;//HttpCookie authCookie = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket);&lt;/span&gt;
                HttpCookie authCookie = FormsAuthentication.GetAuthCookie(userName, isPersistent,FormsAuthentication.FormsCookiePath);
                authCookie.Expires = DateTime.Now.Add(CookieLifetime);
                authCookie.Value = encryptedTicket;
                HttpContextBase httpContext = (HttpContextBase)ServiceContext.GetService(&lt;span style="color:blue"&gt;typeof&lt;/span&gt;(HttpContextBase));
                
                httpContext.Response.Cookies.Add(authCookie);

                &lt;span style="color:blue"&gt;if&lt;/span&gt; (_enableRoles) {
                    FormsAuthenticationHelper.Enable(&lt;span style="color:blue"&gt;this&lt;/span&gt;.GetType());
                }
            }

            &lt;span style="color:blue"&gt;return&lt;/span&gt; user;
        }
FormsAuthentication.GetAuthCookie(userName,isPersistent) creates the persistent cookie. The original code does not create the persistent cookie.&lt;br&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>richardebel</author><pubDate>Mon, 16 Aug 2010 17:29:30 GMT</pubDate><guid isPermaLink="false">New Post: No persistant Cookie created for User 20100816052930P</guid></item><item><title>New Post: LoadUser fails for default user</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=223573</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:black;background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:green"&gt;// This will automatically authenticate a user when using windows authentication&lt;/span&gt;
            &lt;span style="color:green"&gt;// or when the user chose &amp;quot;Keep me signed in&amp;quot; on a previous login attempt&lt;/span&gt;
            WebContext.Current.Authentication.LoadUser(&lt;span style="color:blue"&gt;this&lt;/span&gt;.Application_UserLoaded,&lt;span style="color:blue"&gt;null&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;
&lt;pre&gt;private void Application_UserLoaded(LoadUserOperation operation)
        {
            if (operation.HasError)
                operation.MarkErrorAsHandled();
        }&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;The above operation results in an error because the default User object returned from GetUser is null.&lt;/p&gt;
&lt;p&gt;I changed the following in FormsAuthenticationService.cs:&lt;/p&gt;
&lt;pre&gt;/// The default user object.
        protected virtual TUser GetDefaultUser() {
            return new TUser(){ Name = string.Empty } ;
        }&lt;/pre&gt;
&lt;pre&gt;It appears that the new user object needs to have one of it's properties initialized, or it won't get returned from the Server.&lt;/pre&gt;&lt;/div&gt;</description><author>richardebel</author><pubDate>Sat, 14 Aug 2010 15:54:46 GMT</pubDate><guid isPermaLink="false">New Post: LoadUser fails for default user 20100814035446P</guid></item><item><title>New Post: Silverlight MVVM Business Application : Where to place the resource files ?</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=221426</link><description>&lt;div style="line-height: normal;"&gt;This is a matter of opinion ultimately.

I personally think you're assigning additional semantics to a model. It is the UI/presentation tier that is interpreting those additional semantics/hints to determine how to best process them.

Semantics/intent vs. presentation ... subtle distinction.

Do you buy that?&lt;/div&gt;</description><author>nikhilk</author><pubDate>Wed, 11 Aug 2010 05:28:34 GMT</pubDate><guid isPermaLink="false">New Post: Silverlight MVVM Business Application : Where to place the resource files ? 20100811052834A</guid></item><item><title>New Post: Roles</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=221313</link><description>&lt;div style="line-height: normal;"&gt;I do have roles support/usage in the application.&lt;/div&gt;</description><author>nikhilk</author><pubDate>Wed, 11 Aug 2010 05:26:58 GMT</pubDate><guid isPermaLink="false">New Post: Roles 20100811052658A</guid></item><item><title>Source code checked in, #74794</title><link>http://riaservices.codeplex.com/SourceControl/changeset/changes/74794</link><description>Checked in by server upgrade</description><author>_TFSSERVICE</author><pubDate>Tue, 03 Aug 2010 19:44:57 GMT</pubDate><guid isPermaLink="false">Source code checked in, #74794 20100803074457P</guid></item><item><title>New Post: Roles</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=221313</link><description>&lt;div style="line-height: normal;"&gt;Thats whats weird about it. It is trying to use the standard Asp.Net Roles for a SQL Server that does not exist. My roles are mixed into my DataLayer that is why I am using your Book Club example. I think if you put a RequiresRole attribute in one of your BookClub Domain Services it will have the same problem as mine. To solve this I created a Custom RoleProvider and registered it in web.config. It was actually pretty easy. Perhaps you should add a RoleProvider to your RiaEssentials project that works with your base authentication service. As I think anyone who wants to use Roles with your authentication service (without creating custom Authorizaton Attributes) will need it.&lt;br&gt;&lt;br&gt;-----Original Message-----&lt;br&gt;From: &amp;quot;nikhilk&amp;quot; &amp;lt;notifications@codeplex.com&amp;gt;&lt;br&gt;Sent: Monday, July 26, 2010 7:33am&lt;br&gt;To: [email removed]&lt;br&gt;Subject: Re: Roles [riaservices:221313]&lt;br&gt;&lt;br&gt; &lt;p&gt;From: nikhilk&lt;/p&gt; &lt;div id=ThreadNotificationPostBody&gt;&lt;p&gt;Based on seeing things like RolePrincipal in your stack trace, it doesn't seem like a question related to this project. For general questions with RIA Services, please post on the appropriate forum.&lt;/p&gt;
&lt;p&gt;As a quick answer based on your exception - make sure you've got the right connection string, and that things have been properly initialized in config and in the database.&lt;/p&gt;&lt;/div&gt;  
&lt;/div&gt;</description><author>MiddleTommy</author><pubDate>Mon, 26 Jul 2010 15:46:53 GMT</pubDate><guid isPermaLink="false">New Post: Roles 20100726034653P</guid></item><item><title>New Post: Silverlight MVVM Business Application : Where to place the resource files ?</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=221426</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Nik,&lt;/p&gt;
&lt;p&gt;Thank you for your quick and helpful answer on my previous questions.&lt;/p&gt;
&lt;p&gt;I've &lt;a href="http://stackoverflow.com/questions/3318835/silverlight-mvvm-business-application-where-to-place-the-resource-files"&gt;another &lt;/a&gt;question on stackoverflow which is about where to place the different resource files and where to define the &lt;em&gt;Display&lt;/em&gt; from an attribute.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I've defined the following validation on my User entity in the server-domain layer:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;div style="color:black;background-color:white"&gt;
&lt;pre&gt;[MetadataTypeAttribute(&lt;span style="color:blue"&gt;typeof&lt;/span&gt;(User.UserMetadata))]
&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;partial&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; User
{
    &lt;span style="color:blue"&gt;internal&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; UserMetadata
    {
        &lt;span style="color:green"&gt;// Metadata classes are not meant to be instantiated.&lt;/span&gt;
        &lt;span style="color:blue"&gt;protected&lt;/span&gt; UserMetadata()
        {
        }

        [Display(Name = &lt;span style="color:#a31515"&gt;&amp;quot;UserNameLabel&amp;quot;&lt;/span&gt;, ResourceType = &lt;span style="color:blue"&gt;typeof&lt;/span&gt;(MyResources))]
        [Required(ErrorMessageResourceName = &lt;span style="color:#a31515"&gt;&amp;quot;ValidationErrorRequiredField&amp;quot;&lt;/span&gt;, ErrorMessageResourceType = &lt;span style="color:blue"&gt;typeof&lt;/span&gt;(ValidationErrorResources))]
        [RegularExpression(&lt;span style="color:#a31515"&gt;&amp;quot;^[a-zA-Z0-9_]*$&amp;quot;&lt;/span&gt;, ErrorMessageResourceName = &lt;span style="color:#a31515"&gt;&amp;quot;ValidationErrorInvalidUserName&amp;quot;&lt;/span&gt;, ErrorMessageResourceType = &lt;span style="color:blue"&gt;typeof&lt;/span&gt;(ValidationErrorResources))]
        &lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;string&lt;/span&gt; Name { &lt;span style="color:blue"&gt;get&lt;/span&gt;; &lt;span style="color:blue"&gt;set&lt;/span&gt;; }
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My questions are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is it correct to define the DisplayName in the server-domain layer ? (Domain defines how a property is shown on the Silverlight-Presentation-layer ?)&lt;/li&gt;
&lt;li&gt;Where to define the other resource strings which need to be localized ? (Multiple pages use the string &amp;quot;Username&amp;quot;, should this defined on the Silverlight-Presentation-layer resource file, or in the service domain layer ?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;br&gt;Stef&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>stefh</author><pubDate>Mon, 26 Jul 2010 15:13:59 GMT</pubDate><guid isPermaLink="false">New Post: Silverlight MVVM Business Application : Where to place the resource files ? 20100726031359P</guid></item><item><title>New Post: Silverligth MVVM : How to do Localization in the correct way ?</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=221377</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I would do localization in xaml... I don't think I want to write a ton of code in my view model for this.&lt;/p&gt;
&lt;p&gt;Essentially my object containing string or other localized values would be instantiated in&amp;nbsp;resources, and I'd set up bindings against that - all declaratively.&lt;/p&gt;&lt;/div&gt;</description><author>nikhilk</author><pubDate>Mon, 26 Jul 2010 14:35:15 GMT</pubDate><guid isPermaLink="false">New Post: Silverligth MVVM : How to do Localization in the correct way ? 20100726023515P</guid></item><item><title>New Post: Roles</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=221313</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Based on seeing things like RolePrincipal in your stack trace, it doesn't seem like a question related to this project. For general questions with RIA Services, please post on the appropriate forum.&lt;/p&gt;
&lt;p&gt;As a quick answer based on your exception - make sure you've got the right connection string, and that things have been properly initialized in config and in the database.&lt;/p&gt;&lt;/div&gt;</description><author>nikhilk</author><pubDate>Mon, 26 Jul 2010 14:33:44 GMT</pubDate><guid isPermaLink="false">New Post: Roles 20100726023344P</guid></item><item><title>New Post: Question about validation from a Book</title><link>http://riaservices.codeplex.com/Thread/View.aspx?ThreadId=218073</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;The biggest reason really is to show operation-level validation. Essentially RIA Services support field-level, entity-level, and operation-level validation.&lt;/p&gt;&lt;/div&gt;</description><author>nikhilk</author><pubDate>Mon, 26 Jul 2010 14:31:02 GMT</pubDate><guid isPermaLink="false">New Post: Question about validation from a Book 20100726023102P</guid></item></channel></rss>
