I have been struggling with this issue for a while myself.
I had the applicationName="/" attrubiute in my web.config, and only had one entry in the applications table in ASPNETDB.
I tried to change that value to "ECMA" (the name of my application) and also change the values in the database. I only have one application record and one user record in my database, but I still can't log in when the app is deployed to IIS.
Is there anything else that needs to be done?
I am pasting the complete web.config file here:
<?
xml
version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
gabbyrozow
Member
80 Points
20 Posts
Re: Login won't authenticate
Feb 22, 2006 02:43 PM|LINK
Hi,
I have been struggling with this issue for a while myself.
I had the applicationName="/" attrubiute in my web.config, and only had one entry in the applications table in ASPNETDB.
I tried to change that value to "ECMA" (the name of my application) and also change the values in the database. I only have one application record and one user record in my database, but I still can't log in when the app is deployed to IIS.
Is there anything else that needs to be done?
I am pasting the complete web.config file here:
<?
xml version="1.0"?><!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<
configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"><
appSettings><
add key="ReportErrorsToMIS" value="False" /></
appSettings><
connectionStrings><
add name="ProductsConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Products.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /><
add name="UsersConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" /></
connectionStrings><
system.web><!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
--><
roleManager enabled="true"/><
compilation debug="true" strict="false" explicit="true"/><
pages><
namespaces><
clear/><
add namespace="System"/><
add namespace="System.Collections"/><
add namespace="System.Collections.Specialized"/><
add namespace="System.Configuration"/><
add namespace="System.Text"/><
add namespace="System.Text.RegularExpressions"/><
add namespace="System.Web"/><
add namespace="System.Web.Caching"/><
add namespace="System.Web.SessionState"/><
add namespace="System.Web.Security"/><
add namespace="System.Web.Profile"/><
add namespace="System.Web.UI"/><
add namespace="System.Web.UI.WebControls"/><
add namespace="System.Web.UI.WebControls.WebParts"/><
add namespace="System.Web.UI.HtmlControls"/></
namespaces></
pages><!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
--><
authentication mode="Forms" /><!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
--><
profile enabled="true"><
properties><
add name="Products"/></
properties></
profile><
machineKey validationKey="C5B196E911240399B8B51836BDAE577AB5C325CCC6E23DF9E225C93789CC420FBD01B2A9239703676B68157B35EA6313B53AD3047132C2356F16E252264FA470" decryptionKey="99A3BA776B9926350B0B47E9A81771A4B6B31736AFE9C729" validation="SHA1" /><
membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="20"><
providers><
clear/><
add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="ECMA" requiresUniqueEmail="false" passwordFormat="Encrypted" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</
providers></
membership></
system.web><
system.net><
mailSettings><
smtp from="gabbyr@radware.com"><
network defaultCredentials="true" host="APOLLO" password="" userName="gabbyr"/></
smtp></
mailSettings></
system.net></
configuration>