Wrox Programmer Forums
|
BOOK: Silverlight 4 Problem - Design - Solution
This is the forum to discuss the Wrox book Silverlight 4 Problem - Design - Solution by Nick Lecrenski; ISBN: 9780470534045
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Silverlight 4 Problem - Design - Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2010, 04:02 PM
Registered User
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Provider error by CreateUser

Hello,

I'm on chapter 3 Sign me up.
When I start my application, I get a provider error by signup a new user.

I try to following the book and built the sample application from scratch.
Here I don't understand, why I get a provider error, when I use my created database from scratch.

When I use the database from the samplecode it works. But I can't find an error in my database tables to your example.


My debugger shows the error by following code in my UserInformationService.cs:
Code:
        
[Invoke]
        public void CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer)
        {
            MembershipCreateStatus status;
            UserInformation createdUser = provider.CreateUser(username, password, email, passwordQuestion, passwordAnswer, true, null, out status) as UserInformation;

            if (status != MembershipCreateStatus.Success)
                throw new DomainException(status.ToString());
        }

I frustrated, because I don't understand what I do wrong. Do you've any idea?

Regards
Dirk
 
Old June 10th, 2010, 09:23 AM
Registered User
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default My Problem is solved.

Hello,

I've found my error. In my Database I've missed to add account_type values.
After I add a record BASIC in my Datatable, all works as expected.



Sometimes ... ;-)



Regards
Dirk
 
Old June 10th, 2010, 09:43 AM
Wrox Author
 
Join Date: May 2009
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
Default

There is new code available now from the website. Please let me know if you have any additional issues.

Thanks
Nick
 
Old January 26th, 2011, 08:26 AM
Registered User
 
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by dbardelt View Post
Hello,

I've found my error. In my Database I've missed to add account_type values.
After I add a record BASIC in my Datatable, all works as expected.

Your solution fixed my issue as well.
Thank you!

Sincerely,
Scott Nimrod
 
Old June 6th, 2011, 08:21 AM
Registered User
 
Join Date: May 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Provider error when create a new user

I still get the same error even though I do see a record BASIC in the table - account_type.

Can you please suggest what else could be missing for me?

Also, do you happen to know the default login information so that I can atleast go to the other pages?

Thanks for your help in advance.


Quote:
Originally Posted by dbardelt View Post
Hello,

I've found my error. In my Database I've missed to add account_type values.
After I add a record BASIC in my Datatable, all works as expected.



Sometimes ... ;-)



Regards
Dirk





Similar Threads
Thread Thread Starter Forum Replies Last Post
UserInformationService.CreateUser p115 Gabor66 BOOK: Silverlight 4 Problem - Design - Solution 1 May 14th, 2010 03:50 AM
Remote Connection Error: Named Pipes Provider error hbansal ASP.NET 2.0 Basics 5 April 12th, 2009 09:51 AM
CreateUser Error Gadall ASP.NET 2.0 Professional 1 May 9th, 2007 01:15 AM
Saving personalization properties w/CreateUser k8277 ASP.NET 2.0 Basics 0 April 5th, 2007 01:47 PM
Oracle provider error bikerd Pro VB Databases 2 April 4th, 2005 11:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.