473,394 Members | 1,794 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,394 software developers and data experts.

ASP.NET v2.0 login control issue with SQL Server 2000

Hello,

I am working on a test site to explore the new login controls and membership
features of ASP.NET v2.0. I have tested the controls using SQL Express and
have now decided to try using a central SQL Server 2000 database. When I use
the all of the included controls with SQL Express everything works great but
when I use it against SQL Server 2000 I can't get past the login page.

When in Visual Studio IDE and open the web admin page I can add users and
roles and the entrys are present in the SQL Server 2000 database. With that
said why am I having issues with the login process? There is no code for the
control so the only issue could be in the web.config file.

Here is me config file.
<?xml version="1.0"?>

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<connectionStrings>
<add name="MyDB" connectionString="Connection String to Server"/>
</connectionStrings>

<system.web>

<!-- Set a site wide theme -->
<pages theme="Default"/>

<compilation debug="true"/>

<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".ASPXFORMSAUTH"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>

<!-- Define the roles management provider -->
<roleManager enabled="true" defaultProvider="RolesSqlProvider">
<providers>
<add name="RolesSqlProvider" type="System.Web.Security.SqlRoleProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="MyDB"
applicationName="/"/>
</providers>
</roleManager>

<!-- Define the membership management provider -->
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
<providers>
<remove name="AspNetSqlProvider"/>
<add connectionStringName="MyDB"
enablePasswordRetrieval="false"
requiresUniqueEmail="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
passwordFormat="Hashed"
applicationName="/"
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>

<!-- Difine the Profiles managment provider -->
<profile enabled="true" defaultProvider="ProfileSqlProvider">
<providers>
<add name="ProfileSqlProvider"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MyDB" applicationName="/"/>
</providers>
<properties>
<add name="FirstName" type="System.String"/>
<add name="LastName" type="System.String"/>
<add name="LastVisit" type="System.DateTime"/>
<add name="UserId"/>
</properties>
</profile>

</system.web>

</configuration>

Any help would be appriciated.

Thanks,
RedEye
Nov 19 '05 #1
5 1717
Yep... you made sure you ran aspnet_regsql from the frameworks folder?

You've got several framework specific storedprocs and tables.
read here:
http://msdn.microsoft.com/library/de...SecFeatNT2.asp

Weston Weems

"RedEye" <re*******@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
Hello,

I am working on a test site to explore the new login controls and
membership features of ASP.NET v2.0. I have tested the controls using SQL
Express and have now decided to try using a central SQL Server 2000
database. When I use the all of the included controls with SQL Express
everything works great but when I use it against SQL Server 2000 I can't
get past the login page.

When in Visual Studio IDE and open the web admin page I can add users and
roles and the entrys are present in the SQL Server 2000 database. With
that said why am I having issues with the login process? There is no code
for the control so the only issue could be in the web.config file.

Here is me config file.
<?xml version="1.0"?>

<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<connectionStrings>
<add name="MyDB" connectionString="Connection String to Server"/>
</connectionStrings>

<system.web>

<!-- Set a site wide theme -->
<pages theme="Default"/>

<compilation debug="true"/>

<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".ASPXFORMSAUTH"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>

<!-- Define the roles management provider -->
<roleManager enabled="true" defaultProvider="RolesSqlProvider">
<providers>
<add name="RolesSqlProvider" type="System.Web.Security.SqlRoleProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="MyDB"
applicationName="/"/>
</providers>
</roleManager>

<!-- Define the membership management provider -->
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
<providers>
<remove name="AspNetSqlProvider"/>
<add connectionStringName="MyDB"
enablePasswordRetrieval="false"
requiresUniqueEmail="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
passwordFormat="Hashed"
applicationName="/"
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>

<!-- Difine the Profiles managment provider -->
<profile enabled="true" defaultProvider="ProfileSqlProvider">
<providers>
<add name="ProfileSqlProvider"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MyDB" applicationName="/"/>
</providers>
<properties>
<add name="FirstName" type="System.String"/>
<add name="LastName" type="System.String"/>
<add name="LastVisit" type="System.DateTime"/>
<add name="UserId"/>
</properties>
</profile>

</system.web>

</configuration>

Any help would be appriciated.

Thanks,
RedEye

Nov 19 '05 #2
Oh yes, I made sure to do that before I started. Any other ideas?

Thanks
"Weston Weems" <ww****@NOSPAMno-span-gmail.com> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
Yep... you made sure you ran aspnet_regsql from the frameworks folder?

You've got several framework specific storedprocs and tables.
read here:
http://msdn.microsoft.com/library/de...SecFeatNT2.asp

Weston Weems

"RedEye" <re*******@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
Hello,

I am working on a test site to explore the new login controls and
membership features of ASP.NET v2.0. I have tested the controls using SQL
Express and have now decided to try using a central SQL Server 2000
database. When I use the all of the included controls with SQL Express
everything works great but when I use it against SQL Server 2000 I can't
get past the login page.

When in Visual Studio IDE and open the web admin page I can add users and
roles and the entrys are present in the SQL Server 2000 database. With
that said why am I having issues with the login process? There is no code
for the control so the only issue could be in the web.config file.

Here is me config file.
<?xml version="1.0"?>

<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<connectionStrings>
<add name="MyDB" connectionString="Connection String to Server"/>
</connectionStrings>

<system.web>

<!-- Set a site wide theme -->
<pages theme="Default"/>

<compilation debug="true"/>

<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".ASPXFORMSAUTH"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>

<!-- Define the roles management provider -->
<roleManager enabled="true" defaultProvider="RolesSqlProvider">
<providers>
<add name="RolesSqlProvider"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MyDB" applicationName="/"/>
</providers>
</roleManager>

<!-- Define the membership management provider -->
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
<providers>
<remove name="AspNetSqlProvider"/>
<add connectionStringName="MyDB"
enablePasswordRetrieval="false"
requiresUniqueEmail="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
passwordFormat="Hashed"
applicationName="/"
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>

<!-- Difine the Profiles managment provider -->
<profile enabled="true" defaultProvider="ProfileSqlProvider">
<providers>
<add name="ProfileSqlProvider"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MyDB" applicationName="/"/>
</providers>
<properties>
<add name="FirstName" type="System.String"/>
<add name="LastName" type="System.String"/>
<add name="LastVisit" type="System.DateTime"/>
<add name="UserId"/>
</properties>
</profile>

</system.web>

</configuration>

Any help would be appriciated.

Thanks,
RedEye


Nov 19 '05 #3
When in Visual Studio IDE and open the web admin page I can add users and
roles and the entrys are present in the SQL Server 2000 database. With that
said why am I having issues with the login process? There is no code for the
control so the only issue could be in the web.config file.


"RedEye" <re*******@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
Hello,

I am working on a test site to explore the new login controls and membership features of ASP.NET v2.0. I have tested the controls using SQL Express and
have now decided to try using a central SQL Server 2000 database. When I use the all of the included controls with SQL Express everything works great but when I use it against SQL Server 2000 I can't get past the login page.

When in Visual Studio IDE and open the web admin page I can add users and
roles and the entrys are present in the SQL Server 2000 database. With that said why am I having issues with the login process? There is no code for the control so the only issue could be in the web.config file.

Here is me config file.
<?xml version="1.0"?>

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="MyDB" connectionString="Connection String to Server"/>
</connectionStrings>

<system.web>

<!-- Set a site wide theme -->
<pages theme="Default"/>

<compilation debug="true"/>

<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".ASPXFORMSAUTH"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>

<!-- Define the roles management provider -->
<roleManager enabled="true" defaultProvider="RolesSqlProvider">
<providers>
<add name="RolesSqlProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="MyDB"
applicationName="/"/>
</providers>
</roleManager>

<!-- Define the membership management provider -->
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
<providers>
<remove name="AspNetSqlProvider"/>
<add connectionStringName="MyDB"
enablePasswordRetrieval="false"
requiresUniqueEmail="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
passwordFormat="Hashed"
applicationName="/"
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"/>
</providers>
</membership>

<!-- Difine the Profiles managment provider -->
<profile enabled="true" defaultProvider="ProfileSqlProvider">
<providers>
<add name="ProfileSqlProvider"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MyDB" applicationName="/"/>
</providers>
<properties>
<add name="FirstName" type="System.String"/>
<add name="LastName" type="System.String"/>
<add name="LastVisit" type="System.DateTime"/>
<add name="UserId"/>
</properties>
</profile>

</system.web>

</configuration>

Any help would be appriciated.

Thanks,
RedEye


__________________________________________________ _____________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>

Nov 19 '05 #4
MEC
No answer but wondering if you solved this isse as I'm having the exact
problem as well?

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #5
Take a look at :

Writing a Custom Membership Provider
http://www.15seconds.com/issue/050216.htm

Installing the Database using aspnet_regsql.exe
http://msdn2.microsoft.com/library/x...us,vs.80).aspx

Working own provider
http://forums.asp.net/899888/ShowPost.aspx

You should be able to cobble the pieces from those examples,
to get your own provider working.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"MEC" <ME*@ncrtst.com> wrote in message news:OJ**************@TK2MSFTNGP14.phx.gbl...
No answer but wondering if you solved this isse as I'm having the exact
problem as well?

Nov 19 '05 #6

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

Similar topics

2
by: Charles | last post by:
I was able to do this but for no reason I can think of, now I cannot login to my Oracle Management Server. When Oracle Enterprise Manager starts up and I choose to login to OMS, it throws up a java...
4
by: EricP | last post by:
Hello, What are the default login/password to access pubs and northwind databases ? I remember the login = "sa", but nothing about the password. Thanks Eric
1
by: VC | last post by:
Hello, I have an issue here. Hope someone can help me. Issue: Developer is using a web application from one server (IIS) (say Server A). A second server (say Server B, which is SQL Server...
10
by: amit.purohit | last post by:
hi, I have a very strange problem on my login Page. the Page was working fine a few days back, but now does not generate post back events for controls. this login page uses form based...
14
by: clintonG | last post by:
This is an appeal for peer support sent to Microsoft as will be noted in closing. The Login control does not include a Cancel button. The only option is to convert the Login control to a...
3
by: goot | last post by:
I'm trying to use the login control and have it use the membership provider framework to authenticate users and am having a problem (which i'm sure will turn out to be a stupid mistake on my...
0
by: muder | last post by:
I have a standard Login ASP.NET 2.0 control on a login Page, a LoginName and LoginStatus controls on the member's page. once the user login successfully I am redirecting the user to Member.aspx...
0
by: Anup Daware | last post by:
Hi All, I am facing this very weird issue, for every server request my control is redirecting to the login page and again coming back to the actual page from where the request was initiated when I...
1
by: Tim | last post by:
Folks, I have 3 loosely linked problems which I am would appreciate feedback on. 1). T-Sql and Active directory roles. We want to be able to control access to data within a table based on a...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.