SqlMembershipProvider question

A

anon2005

I'm writing an installed for my application that uses a
SqlMembershipProvider. I'd like to have the installer automatically
set up the required roles and users for the application, but I can't
quite get this to work from a web form. Anyone have tips/ideas to get
this to work? Kind of a hack approach is to: 1. run the queries myself
that insert new users/roles, 2. run a setup page in the web app that
does it.

Thanks,
Tom
 
G

Guest

You'll probably need to write a separate console app that gets run as a
Custom Action as part of the install. You can hook this up in the standard
Visual Studio.NET Setup project in the appropriate editor.
Peter
 
A

anon2005

Thanks Peter,

In my original post I should've said "I can't quite get this to work
from a Win Form" -- the installer is a Win Forms application. How
exactly can I invoke some of the membership methods from a non-web app
(ie console or winform)?

Thanks for the help.
 
G

Guest

Provided that you've set a reference to the correct assembly, I don't know of
any reason why you can't access these methods from any .net app.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top