DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 8 Jul 2007 18:34:00 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.security        back       

Thread Index
  1    Jibey Jacob
          2    Jibey Jacob
          3    Alexey Smirnov
                 4    Jibey Jacob


Setting up ASP.NET Configuration in Visual Studio 2005   
Hi:

I'm having trouble setting this up. I placed the following information in 
web.config:

      <membership userIsOnlineTimeWindow="20">
        <providers>
          <add connectionStringName="SqlServices" 
enablePasswordRetrieval="false"
            enablePasswordReset="true" requiresQuestionAndAnswer="true"
            passwordFormat="Hashed" applicationName="jibey.jacob" 
name="SqlProvider"
            type="System.Web.Security.SqlMembershipProvider" />
        </providers>
      </membership>

When I launch the ASP.NET Configuration wizard from Visual Studio, and flip 
to the Security tab, I can see one provider listed (I selected single 
provider for all site management), which is AspNetSqlProvider. The 
connnection string "SqlServices" exists in web.config. The problem is the 
wizard always comes back with an error that says "unable to establish a 
connection to the database".

Before I placed all this information in web.config, I had started with a 
bare-bones web.config that VS2005 had created. And I created the membership 
database in SQL Server using aspnet_regsql.

What am I doing wrong?

Thanks.
Date:Sun, 8 Jul 2007 18:34:00 -0700   Author:  

RE: Setting up ASP.NET Configuration in Visual Studio 2005   
There's just this one other thing that bothers me about this: how does the 
ASP.NET Configuration Wizard know which host and sql server instance name to 
look for?

Thanks.

"Jibey Jacob" wrote:


> Hi:
> 
> I'm having trouble setting this up. I placed the following information in 
> web.config:
> 
>       <membership userIsOnlineTimeWindow="20">
>         <providers>
>           <add connectionStringName="SqlServices" 
> enablePasswordRetrieval="false"
>             enablePasswordReset="true" requiresQuestionAndAnswer="true"
>             passwordFormat="Hashed" applicationName="jibey.jacob" 
> name="SqlProvider"
>             type="System.Web.Security.SqlMembershipProvider" />
>         </providers>
>       </membership>
> 
> When I launch the ASP.NET Configuration wizard from Visual Studio, and flip 
> to the Security tab, I can see one provider listed (I selected single 
> provider for all site management), which is AspNetSqlProvider. The 
> connnection string "SqlServices" exists in web.config. The problem is the 
> wizard always comes back with an error that says "unable to establish a 
> connection to the database".
> 
> Before I placed all this information in web.config, I had started with a 
> bare-bones web.config that VS2005 had created. And I created the membership 
> database in SQL Server using aspnet_regsql.
> 
> What am I doing wrong?
> 
> Thanks.
> 
Date:Sun, 8 Jul 2007 20:08:01 -0700   Author:  

Re: Setting up ASP.NET Configuration in Visual Studio 2005   
On Jul 9, 5:08 am, Jibey Jacob 
wrote:

> There's just this one other thing that bothers me about this: how does the
> ASP.NET Configuration Wizard know which host and sql server instance name to
> look for?
>
> Thanks.
>
>
>
> "Jibey Jacob" wrote:
> > Hi:
>
> > I'm having trouble setting this up. I placed the following information in
> > web.config:
>
> >       <membership userIsOnlineTimeWindow="20">
> >         <providers>
> >           <add connectionStringName="SqlServices"
> > enablePasswordRetrieval="false"
> >             enablePasswordReset="true" requiresQuestionAndAnswer="true"
> >             passwordFormat="Hashed" applicationName="jibey.jacob"
> > name="SqlProvider"
> >             type="System.Web.Security.SqlMembershipProvider" />
> >         </providers>
> >       </membership>
>
> > When I launch the ASP.NET Configuration wizard from Visual Studio, and flip
> > to the Security tab, I can see one provider listed (I selected single
> > provider for all site management), which is AspNetSqlProvider. The
> > connnection string "SqlServices" exists in web.config. The problem is the
> > wizard always comes back with an error that says "unable to establish a
> > connection to the database".
>
> > Before I placed all this information in web.config, I had started with a
> > bare-bones web.config that VS2005 had created. And I created the membership
> > database in SQL Server using aspnet_regsql.
>
> > What am I doing wrong?
>
> > Thanks.- Hide quoted text -
>
> - Show quoted text -


Jubey,

I think your problem is in the defaultProvider property which is not
specified.

Quote: When specifying the membership Element (ASP.NET Settings
Schema) section, you must specify the defaultProvider attribute. If
you do not specify a membership Element (ASP.NET Settings Schema)
section in your Web.config, the values from the machine configuration
are used and the SqlMembershipProvider instance named
AspNetSqlProvider is established as the defaultProvider.

http://msdn2.microsoft.com/en-us/library/system.web.security.membership.providers.aspx

Hope this helps
Date:Mon, 09 Jul 2007 13:07:17 -0700   Author:  

Re: Setting up ASP.NET Configuration in Visual Studio 2005   
Yes, it helped. I also had to create separate providers for roles and 
memberships and I had to remove the default AspNetSqlProvider as a membership 
provider.

Thanks,

Jibey

"Alexey Smirnov" wrote:


> On Jul 9, 5:08 am, Jibey Jacob 
> wrote:
> > There's just this one other thing that bothers me about this: how does the
> > ASP.NET Configuration Wizard know which host and sql server instance name to
> > look for?
> >
> > Thanks.
> >
> >
> >
> > "Jibey Jacob" wrote:
> > > Hi:
> >
> > > I'm having trouble setting this up. I placed the following information in
> > > web.config:
> >
> > >       <membership userIsOnlineTimeWindow="20">
> > >         <providers>
> > >           <add connectionStringName="SqlServices"
> > > enablePasswordRetrieval="false"
> > >             enablePasswordReset="true" requiresQuestionAndAnswer="true"
> > >             passwordFormat="Hashed" applicationName="jibey.jacob"
> > > name="SqlProvider"
> > >             type="System.Web.Security.SqlMembershipProvider" />
> > >         </providers>
> > >       </membership>
> >
> > > When I launch the ASP.NET Configuration wizard from Visual Studio, and flip
> > > to the Security tab, I can see one provider listed (I selected single
> > > provider for all site management), which is AspNetSqlProvider. The
> > > connnection string "SqlServices" exists in web.config. The problem is the
> > > wizard always comes back with an error that says "unable to establish a
> > > connection to the database".
> >
> > > Before I placed all this information in web.config, I had started with a
> > > bare-bones web.config that VS2005 had created. And I created the membership
> > > database in SQL Server using aspnet_regsql.
> >
> > > What am I doing wrong?
> >
> > > Thanks.- Hide quoted text -
> >
> > - Show quoted text -
> 
> Jubey,
> 
> I think your problem is in the defaultProvider property which is not
> specified.
> 
> Quote: When specifying the membership Element (ASP.NET Settings
> Schema) section, you must specify the defaultProvider attribute. If
> you do not specify a membership Element (ASP.NET Settings Schema)
> section in your Web.config, the values from the machine configuration
> are used and the SqlMembershipProvider instance named
> AspNetSqlProvider is established as the defaultProvider.
> 
> http://msdn2.microsoft.com/en-us/library/system.web.security.membership.providers.aspx
> 
> Hope this helps
> 
> 
Date:Mon, 9 Jul 2007 14:12:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us