How can I configure Client Application Services without an app.config file?
I'm unable to add a membership provider, or set the default provider. Is there a way to programmatically set these or use an embedded resource instead of the app.config file?
Set the provider at runtime:
MembershipProvider userProvider = Membership.Providers[UserProviderName];
Ref: Changing the membership providers ApplicationName during runtime. How?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.