Note that there are some explanatory texts on larger screens.

plurals
  1. POIncreasing service timeout for the AuthenticationService in RIA Services
    primarykey
    data
    text
    <p>I have a SL4 LOB app, that uses RIA Services only for authentication (so far).</p> <p>I use the default provider and service with minor additions (see below). </p> <p>Some users with slow internet connections have complained that their logins are timing out, with error :</p> <pre><code>Load operation failed for query 'Login'. [HttpRequestTimedOutWithDetail] </code></pre> <p>The login works fine on my connection.</p> <p>So,</p> <ol> <li>Is there a way to increase the timeout for the service operations of the AuthenticationService? I have seen many fixes for RIA services timeout, but all of them pertain to DomainDataContexts, not to the AuthenticationService itself.</li> <li>Is it possible that those users who are getting the timeout, is due to them being behind a nasty firewall? Is it possible for them to access the site (port 80), download a Silverlight application, but that only the WCF service calls are blocked?</li> </ol> <p>MyCustomMembershipProvider :</p> <pre><code>public class MyCustomMembershipProvider : SqlMembershipProvider { public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status) { var newUser = base.CreateUser(username, password, email, passwordQuestion, passwordAnswer, false, providerUserKey, out status); if (newUser != null) { SendEmailToAdminForApproval(newUser); } return newUser; } private void SendEmailToAdminForApproval(MembershipUser user) { // Send a mail here } } </code></pre> <p>And, AuthenticationService :</p> <pre><code>[EnableClientAccess] public class AuthenticationService : AuthenticationBase&lt;User&gt; { public List&lt;User&gt; GetUsers() { return System.Web.Security.Membership.GetAllUsers().Cast&lt;User&gt;().ToList(); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload