Hi all and TIA for taking a look at my web.config.
I have gone through the 4.5 book creating files and my web.config as instructedand have pretty much finished. Great text. I have just uploaded my development pages into production on my web server (sql).
When I type in my web address without any /someUrl.aspx(or html) I would normally get my index.html page, but instead I am taken to:
my web address/login.aspx/?ReturnUrl = %2f - instead of my index.html page?
If I try and log in to my site from that page I get Server Error "Login in Failed for PhX3/Iusr_XXXXXXX
My sense is that my web.config file needs help? I have tried most everything I have found on the net to correct this but nothing seems to work? Below please find my web.config with some privacy changes, but I'm really stuck here. thanks. Cliff
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>
<connectionStrings>
<add name="GolfDatabaseConnectionString1" connectionString="Data Source=esherr01.db.xyz.com;Initial Catalog=esherr01;User ID=esherr01; Password='xyz';Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="GolfDatabaseEntities10" connectionString="metadata=res://*/App_Code.GolfHandicap.csdl|res://*/App_Code.GolfHandicap.ssdl|res://*/App_Code.GolfHandicap.msl;provider=System.Data.SqlClient;provider connection string="Data Source=esherr01.db.xyz.com;Initial Catalog=esherr01;User ID=esherr01; Password='xyz';integrated security=True;multipleactiveresultsets=True;application name=EntityFramework""
providerName="System.Data.EntityClient" />
<add name="GolfDatabaseConnectionString2" connectionString="Data Source=esherr01.db.xyz.com;Initial Catalog=esherr01;User ID=esherr01; Password='xyz';Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework"
providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="WebForms" />
<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false"/>
</appSettings>
<system.web>
<trust level="Full" />
<trace mostRecent="true" enabled="true" requestLimit="1000" pageOutput="false" localOnly="true" />
<customErrors mode="Off">
</customErrors>
<authentication mode="Forms">
<forms timeout="1440"/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
<pages theme="DarkGrey">
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
<buildProviders>
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
</buildProviders>
</compilation>
<httpRuntime targetFramework="4.5" />
<profile defaultProvider="DefaultProfileProvider">
<providers>
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="GolfDatabaseConnectionString1" applicationName="/" />
</providers>
</profile>
<membership defaultProvider="DefaultMembershipProvider">
<providers>
<add name="DefaultMembershipProvider"
type="System.Web.Providers.DefaultMembershipProvider,
System.Web.Providers, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"
connectionStringName="GolfDatabaseConnectionString1"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<roleManager defaultProvider="DefaultRoleProvider">
<providers>
<add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="GolfDatabaseConnectionString1" applicationName="/" />
</providers>
</roleManager>
<!--
If you are deploying to a cloud environment that has multiple web server instances,
you should change session state mode from "InProc" to "Custom". In addition,
change the connection string named "DefaultConnection" to connect to an instance
of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
-->
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="GolfDatabaseConnectionString1" />
</providers>
</sessionState>
</system.web>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="Cliff Sherrill <[email protected] >">
<network enableSsl="true" host="smtp.gmail.com" userName="xyz.com" password="xyz" port="587" />
</smtp>
</mailSettings>
</system.net>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v12.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
I have turned Off customErrors and set compilation to true for debugging purposes. I know that I will change these as soon as all is well. Do you see anything obvious?
thaks agai!