Dofactory.com
Dofactory.com
 Back to list
Views:   4.6K
Replies:  0
Archived

Silverlight Patterns 4.0 Membership/login issue

Hello,

I have created the Action and Aspnetdb databases under my SQL Server 2008 R2 instance. I ran the scripts as prescribed in the setup pdf to load all tables and data. I added the following to my web.config:

<connectionStrings>

    <add name="ActionEntities"connectionString="metadata=res://*/ActionModel.csdl|res://*/ActionModel.ssdl|res://*/ActionModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=MYDEVSERVER;Initial Catalog=Action;Integrated Security=True&quot;" providerName="System.Data.EntityClient" />

    <add name="Aspnetdb" connectionString="Data Source=MYDEVSERVER;Initial Catalog=Aspnetdb;Integrated Security=True" providerName="System.Data.EntityClient"/>

  </connectionStrings>


and under web.config....

<!--<authentication mode="Forms">

      <forms name=".Silverlight_Patterns_in_Action_ASPXAUTH" />

    </authentication>-->



<authentication mode="None"/>


<membership defaultProvider="MembershipProvider">

      <providers>

        <clear/>

        <add name="MembershipProvider"

             description="ASP.NET Membership database services."

             type="System.Web.Security.SqlMembershipProvider"

             connectionStringName="Aspnetdb"

             applicationName="/"

             enablePasswordRetrieval="false"

             enablePasswordReset="true"

             requiresQuestionAndAnswer="false"

             requiresUniqueEmail="true"

             passwordFormat="Hashed"

             maxInvalidPasswordAttempts="500"

             passwordAttemptWindow="500"

             minRequiredPasswordLength="7"

             minRequiredNonalphanumericCharacters="0"/>

      </providers>

    </membership>





I can connect to the application just fine and view Shopping categories and items. However, when I try to login with debbie, secret123 I receive the Invalid Username or Password prompt followed by a runtime exception (code 4004 System.ServiceModel.DomainServices.Client.DomainOperationException)


Does anybody have any ideas what I may have wrong?


Thanks all.


John

John Scudder, Feb 02, 2012
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.