473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

SqlMembershipProvider question

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

Mar 4 '06 #1
3 1492
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"an******@comcast.net" wrote:
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

Mar 4 '06 #2
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.

Mar 5 '06 #3
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"an******@comcast.net" wrote:
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

Mar 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ibiza | last post by:
Hi, what would be the simplest way to add a functionality so it is possible to change the username in an asp.net 2.0 webapplication that uses SqlMembershipProvider? By default, this providers...
0
by: Ron | last post by:
Hi, I want to create a new SqlMembershipProvider called SqlMembershipProviderEx I will use it to create two User objects which only need a UserName and Password. ServiceProviders and...
2
by: daz_oldham | last post by:
Hi All Bit of an odd one - very basically I created an app using the SqlMembershipProvider in VS.NET 2005, and I did it on a MS SQL 2005 server. However, I then find out that for other...
0
by: Mwob | last post by:
Hi all, I'm about to start creating a custom membership provider. Its for a website that already has a table of users in a single table, so I need to create a custom MP to talk to the data in...
3
by: Ryan | last post by:
Hello, I have a question on the default: AspNetSqlProvider. I know that, by default, this looks for a database created locally in the appdata directory. Although I have learned how to change...
0
by: mazdotnet | last post by:
Hi, I just started using the new asp.net sqlMembershipProvider (users and roles) which works great. However, I'm testing my application on Windows XP and I'm getting different list of roles...
1
by: glebovech | last post by:
Is it possible to reuse existing SQLSERVER database containing membership information for different application? Basically this is a situation. 1. Created application App1 where with a help of...
1
by: Matt MacDonald | last post by:
Hi all, I've been debating for a while (basically since asp.net 2.0 came out) on using the built in mebership classes to handle user management in my web apps. I seem to keep coming upon...
3
by: Jeff | last post by:
hi asp.net 2.0 sql server 2005 I've created a database on my win2k3 machine. Now I'm moving this database over to my Vista business 32bit machine. (I scripted the database on the win2k3...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.