Page 1 of 1

Membership Provider

Posted: Wed 09 Sep 2009 18:29
by iquennell
Is it possible to use the membership provider in a winform application?

If so do you have any examples?

Posted: Thu 10 Sep 2009 08:07
by Shalex
Microsoft didn't implement explicitly the membership provider support for a WinForms application. However, you may create web service with membership functionality based on our provider and use it by your WinForms application. As an alternative, please refer to http://weblogs.asp.net/hosamkamel/archi ... ation.aspx .

Posted: Thu 10 Sep 2009 08:19
by iquennell
Thanks for the reply.

I had found the blog entry and had attempted to implement it.

However, I get an "invalid connectionstring" exception when attempting to validate a previously created user.

I copied the "system.web" and "connectionstring" settings in the app.config file directly from a test web site which implemented the membership provider. When debugging, I also notice that the settings provided within the "system.web" config do not appear to have been picked up. i.e. minRequiredPasswordLength set to 3 but not shown on properties.

Any ideas? If not, I will go through the web service route. I would prefer the direct approach if possible.

Thanks

Posted: Fri 11 Sep 2009 13:08
by Shalex
We recommend using a web service as a more consecutive solution.