Cowboy (Gregory A. Beamer) wrote:
Do you have this hooked up to a database (ASP.NET configuration?). I ran
through the code, but I do not see it.
What do you mean? I don't think so. I have a connection string in the
web.config for the root application, but this application does not
connect to a database. My understanding is that it is using the
/testlogin/App_Data/ASPNETDB.MDF file, although I have no idea how it
is supposed to know that. I just know that, when I add users using the
ASP.NET Configuration wizard, they get added to the aspnet_Users table
in the ASPNETDB.MDF database. But, like I said, I have no idea how
login.aspx is expected to know to look there. I assumed it's some sort
of default.
Here's a copy of the /testlogin application's web.config...
<?xml version="1.0" encoding="utf-8"?>
<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<allow users="intranet" />
<deny users="?" />
</authorization>
</system.web>
</configuration>
....and here's a copy of the website's root web.config file...
<?xml version="1.0"?>
<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="SqlServerConnectionString"
connectionString="server=.\SQLEXPRESS;database=mai ndb;User
ID=mainuser;Password=mainpassword;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.net>
<mailSettings>
<smtp>
<network
host="smtp.mymailserver.com"
port="25" />
</smtp>
</mailSettings>
</system.net>
<system.web>
<compilation debug="false"/>
<authentication mode="Forms"/>
<customErrors mode="Off"/>
</system.web>
</configuration>
....does that help? Please, any assistance is greatly appreciated!