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: Mon, 09 Jul 2007 13:14:53 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.security        back       

Thread Index
  1    unknown
          2    Dominick Baier
          3    unknown


SqlMembershipProvider not working on production server   
I have an application that uses the SqlMembershipProvider and
SqlRoleProvider for security.  I have setup my SQL Server database
using aspnet_regsql.exe and configured my application to hit the
correct database.  Everything works as expected when running on my
development machine, and on our test server.  But when running on our
production server it will not work.

On the production server, I get this behavior:
If I enter an incorrect password, I get the expected error message.
If I enter the correct password I get nothing - the login page just
reloads.  I get no error message and I am not redirected to the target
page.

All three of these servers hit the same SQL Server database for
security and for the application.  All machines are running IIS.

How can I get more information about what is happening?

Thanks,
   Don
Date:Mon, 09 Jul 2007 13:14:53 -0700   Author:  

Re: SqlMembershipProvider not working on production server   
I have seen similar behavior when the required validation scripts are not 
in the right place on the server...

do you have a /aspnet_client/system_web/2_0_50727 vdir on your production 
server?


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)


> I have an application that uses the SqlMembershipProvider and
> SqlRoleProvider for security.  I have setup my SQL Server database
> using aspnet_regsql.exe and configured my application to hit the
> correct database.  Everything works as expected when running on my
> development machine, and on our test server.  But when running on our
> production server it will not work.
> 
> On the production server, I get this behavior:
> If I enter an incorrect password, I get the expected error message.
> If I enter the correct password I get nothing - the login page just
> reloads.  I get no error message and I am not redirected to the target
> page.
> All three of these servers hit the same SQL Server database for
> security and for the application.  All machines are running IIS.
> 
> How can I get more information about what is happening?
> 
> Thanks,
> Don
Date:Mon, 9 Jul 2007 20:23:00 +0000 (UTC)   Author:  

Re: SqlMembershipProvider not working on production server   
On Jul 9, 4:23 pm, Dominick Baier
 wrote:

> I have seen similar behavior when the required validation scripts are not
> in the right place on the server...
>

Yes, that directory in on the production server.

We found that if we add 'cookieless="UseUri"' to the authentication
tag everything works.

It appears that cookies are not being generated from the produciton
server.  This is not a browser setting because it works in dev and
test.

Why would the server to generate the cookies?  Is there a setting on
the server?


> do you have a /aspnet_client/system_web/2_0_50727 vdir on your production
> server?
>
> -----
> Dominick Baier (http://www.leastprivilege.com)
>
> Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
>
>
>
> > I have an application that uses the SqlMembershipProvider and
> > SqlRoleProvider for security.  I have setup my SQL Server database
> > using aspnet_regsql.exe and configured my application to hit the
> > correct database.  Everything works as expected when running on my
> > development machine, and on our test server.  But when running on our
> > production server it will not work.
>
> > On the production server, I get this behavior:
> > If I enter an incorrect password, I get the expected error message.
> > If I enter the correct password I get nothing - the login page just
> > reloads.  I get no error message and I am not redirected to the target
> > page.
> > All three of these servers hit the same SQL Server database for
> > security and for the application.  All machines are running IIS.
>
> > How can I get more information about what is happening?
>
> > Thanks,
> > Don- Hide quoted text -
>
> - Show quoted text -
Date:Tue, 10 Jul 2007 07:34:19 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


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