Membership Provider

Membership Provider

Postby 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?
iquennell
 
Posts: 7
Joined: Wed 05 Jul 2006 09:31

Postby 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 .
Shalex
Devart Team
 
Posts: 7659
Joined: Thu 14 Aug 2008 12:44

Postby 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
iquennell
 
Posts: 7
Joined: Wed 05 Jul 2006 09:31

Postby Shalex » Fri 11 Sep 2009 13:08

We recommend using a web service as a more consecutive solution.
Shalex
Devart Team
 
Posts: 7659
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for PostgreSQL