Hi YAF Supprt,

The Login feature has stopped working in the forum I set last year.

Even when I create a new user and then try login in, it says Incorrect UserName and Password.

It also does not allow me to login as admin.

So can you please help me to fix this issue asap?

My Login Credentials are correct so there is something wrong with the application.

Your support is appreciated.

I would guess this is related to web.config and a membership issue. Have you looked to see what encryption you're using?
Hello Zero2Cool,

Can you please suggest which settings in Config file and where to check the membership settings in my web application.?

Is there any default values, which I can compare and fix?

Thanks for your help.



My Config file looks like below. It looks fine to me. Nothing has been changed since its installation

<?xml version="1.0" encoding="utf-8"?>
<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" requirePermission="false" />

<connectionStrings configSource="db.config" />

<appSettings configSource="app.config" />

<rewriter configSource="URLRewriter.config" />

<smtp configSource="mail.config" />

<httpRuntime requestValidationMode="2.0" />

<xhtmlConformance mode="Strict" />

<!-- <customErrors defaultRedirect="Error.aspx" mode="off" /> -->

This section sets the globalization settings of the application.
Utf-8 is not supported on Netscape 4.x
If you need netscape compatiblity leave iso-8859-1.
UTF-8 is recommended for complex languages
<globalization culture="en-US" uiCulture="en" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" />
<!--<globalization culture="en-US" uiCulture="en" fileEncoding="iso-8859-1" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"/>-->

<authentication mode="Forms">
<forms name=".YAFNET_Authentication" protection="All" timeout="43200" cookieless="UseCookies" />

<!-- Set debug to "true" to test out the system in development -->
<compilation debug="false" targetFramework="4.0">
<add assembly="System.Core, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.DataSetExtensions, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Xml.Linq, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ServiceModel.Web, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Design, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

<add verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />

<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core" />
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" />

<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" enableEventValidation="false" validateRequest="false">
<!-- Default: use non-dynamic (compiled classes) in YAF -->
<add tagPrefix="YAF" namespace="YAF.Controls" assembly="YAF.Controls" />
<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" assembly="YAF.Controls" />
<add tagPrefix="YAF" namespace="YAF.Classes" />
<add tagPrefix="YAF" namespace="YAF" />
<add namespace="YAF.Core" />
<add namespace="YAF.Controls" />
<add namespace="YAF.Utils" />
<add namespace="YAF.Types.Interfaces" />
<add namespace="YAF.Types" />

<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
<clear />
<!-- YAF's ASP.NET Membership Provider is designed to work a bit better with YAF.NET options, but is by no means required.
But, you will not be able to switch providers after installing your forum. -->
<add name="YafMembershipProvider" applicationName="YetAnotherForum" connectionStringName="yafnet" requiresUniqueEmail="true" useSalt="true" type="YAF.Providers.Membership.YafMembershipProvider" />
<!-- Set as default if you want to use use the built-in ASP.NET membership provider. Password Type of "Encrypted" requires a machine key. -->
<add name="AspNetSqlMembershipProvider" applicationName="YetAnotherForum" connectionStringName="yafnet" enablePasswordReset="false" enablePasswordRetrieval="true" maxInvalidPasswordAttempts="5" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="5" passwordAttemptWindow="15" passwordFormat="Encrypted" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" type="System.Web.Security.SqlMembershipProvider" />

<roleManager enabled="true" defaultProvider="YafRoleProvider">
<clear />
<!-- YAF's ASP.NET Role Provider is designed to work a bit better with YAF.NET options, but is by no means required.
But, you will not be able to switch providers after installing your forum. -->
<add name="YafRoleProvider" applicationName="YetAnotherForum" connectionStringName="yafnet" type="YAF.Providers.Roles.YafRoleProvider" />
<!-- Set as default if you want to use use the built-in ASP.NET role provider. -->
<add name="AspNetSqlRoleProvider" applicationName="YetAnotherForum" connectionStringName="yafnet" type="System.Web.Security.SqlRoleProvider" />

<profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Utils.YafUserProfile">
<clear />
<!-- YAF's ASP.NET Profile Provider is designed to work a bit better with YAF.NET options, but is by no means required.
But, you will not be able to switch providers after installing your forum. -->
<add name="YafProfileProvider" applicationName="YetAnotherForum" connectionStringName="yafnet" type="YAF.Providers.Profile.YafProfileProvider" />
<!-- Set as default if you want to use use the built-in ASP.NET profile provider. -->
<add name="AspNetSqlProfileProvider" applicationName="YetAnotherForum" connectionStringName="yafnet" type="System.Web.Profile.SqlProfileProvider" />

<!-- Enable it if your application is hosted in a web farm or cluster (e.g. GoDaddy hosting) or you are using standard ASP.NET providers and encryption.
IMPORTANT: DO NOT USE THIS KEY! You need to generate your own machine key (google it).
<!-- machineKey
validation="SHA1" decryption="AES"
/> -->

<validation validateIntegratedModeConfiguration="false" />
<remove name="YafTaskModule" />
<remove name="UrlRewriter" />
<add name="YafTaskModule" type="YAF.Core.YafTaskModule, YAF.Core" preCondition="managedHandler" />
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler" />
<add name="YafHandler" preCondition="integratedMode" verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />
<clear />
<add value="default.aspx" />


Just to inform you that the login has started working now.

Issue resolved.

Resolution: Deleted the .config file and created a new one from the back up and it resolved the issue. I could not find the root cause.


About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved