Membership Provider

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
iquennell
Posts: 7
Joined: Wed 05 Jul 2006 09:31

Membership Provider

Post by iquennell » Wed 09 Sep 2009 18:29

Is it possible to use the membership provider in a winform application?

If so do you have any examples?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 10 Sep 2009 08:07

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 .

iquennell
Posts: 7
Joined: Wed 05 Jul 2006 09:31

Post by iquennell » Thu 10 Sep 2009 08:19

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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 11 Sep 2009 13:08

We recommend using a web service as a more consecutive solution.

Post Reply