Re: problem setting a new membershipProvider in web.config



Can it because I haven't specified all the settings for the membership
provider. I added applicationName="myNetwork" (mynetwork is the application
name) to the membership provider settings, and it didn't help... I assume
asp.net 2.0 use default settings if I don't specify them in web.config...
but I cannot be 100% sure about it...

any suggestions?


"Jeff" <it_consultant1@xxxxxxxxxxxxxxxxxx> wrote in message
news:OE6MukgdHHA.4872@xxxxxxxxxxxxxxxxxxxxxxx
ASP.NET 2.0

These settings below (see PROBLEM SETTINGS) are causing my webproject to
NOT connect with ASPNETDB.MDF. In this webproject have I created 3 users.
I can see 3 users in the "ASP.NET Configuration window". But after I have
added the settings (see PROBLEM SETTINGS) below to my web.config the
"ASP.NET Configuration window" says the webproject has 0 users...

Any ideas what I'm doing wrong here?

PROBLEM SETTINGS:
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
minRequiredNonalphanumericCharacters="0"
requiresQuestionAndAnswer="true" />
</providers>
</membership>

DATABASE CONNECTION (this is the database connection I have in web.config,
I post it here in case it make it easier for you to see what I'm doing
wrong):
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer"
providerName="System.Data.SqlClient"
connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated
Security=True;User Instance=True" />
</connectionStrings>

Jeff



.



Relevant Pages

  • Re: Membership Configuration Issues
    ... Did you implement the roleManager? ... I can also make note that the web.config settings are very delicate and some ... The membership provider ... Membership starter kit with a base implemenation of the web.config. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP.NET Configuration
    ... so that the settings you are asking about would be clearly read. ... I used ASP.NET Configuration to create a user, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Need help configuring security and role management settings for we
    ... >You need to configure your membership and role providers by adding settings ... Worked like a charm, thank you very much! ... I still don't know why the settings webinterface won't do this for me, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Setting up ASP.NET Configuration in Visual Studio 2005
    ... memberships and I had to remove the default AspNetSqlProvider as a membership ... I can see one provider listed (I selected single ... which is AspNetSqlProvider. ... you must specify the defaultProvider attribute. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Programmatically set printer, copy count, paper size, zoom, and other propeties for job
    ... the docbase knows the distribution requirements (e.g. who gets how ... We had thought we could use the "printto" verb for each doc type (there's ... one for each of the doc types we use) to specify the printer without needing ... > only one set of print settings. ...
    (microsoft.public.win2000.printing)