hirenkabaria
2015-08-12T13:24:55Z
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.

Regards,
Hiren
Sponsor
Zero2Cool
2015-08-13T12:28:08Z
I would guess this is related to web.config and a membership issue. Have you looked to see what encryption you're using?
hirenkabaria
2015-08-16T12:01:46Z
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.

Regards,
Hiren

hirenkabaria
2015-08-17T07:59:45Z
Hi,

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"?>
<configuration>
<configSections>
<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" requirePermission="false" />
</configSections>

<connectionStrings configSource="db.config" />

<appSettings configSource="app.config" />

<rewriter configSource="URLRewriter.config" />

<system.net>
<mailSettings>
<smtp configSource="mail.config" />
</mailSettings>
</system.net>

<system.web>
<httpRuntime requestValidationMode="2.0" />

<xhtmlConformance mode="Strict" />

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

<!-- GLOBALIZATION
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" />
</authentication>

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

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

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

<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" enableEventValidation="false" validateRequest="false">
<controls>
<!-- 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" />
</controls>
<namespaces>
<add namespace="YAF.Core" />
<add namespace="YAF.Controls" />
<add namespace="YAF.Utils" />
<add namespace="YAF.Types.Interfaces" />
<add namespace="YAF.Types" />
</namespaces>
</pages>

<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
<providers>
<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" />
</providers>
</membership>

<roleManager enabled="true" defaultProvider="YafRoleProvider">
<providers>
<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" />
</providers>
</roleManager>

<profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Utils.YafUserProfile">
<providers>
<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" />
</providers>
</profile>

<!-- 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
validationKey="5B169A4270DB7D6A285CF068B81047D1A73A5FDDE9B204254AB86147B061C3C13DB6E84311E98EDFDD7FF50309DB9632A1C573A716CF120535EC3401BF7706D7"
decryptionKey="910403AE3DEB5DD0AF73911DBB180518144AC983C1C7E7BDEE1CC8B6C74CBEF3"
validation="SHA1" decryption="AES"
/> -->
</system.web>

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<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" />
</modules>
<handlers>
<add name="YafHandler" preCondition="integratedMode" verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />
</handlers>
<defaultDocument>
<files>
<clear />
<add value="default.aspx" />

</files>
</defaultDocument>
</system.webServer>
</configuration>
hirenkabaria
2015-08-20T14:08:38Z
Hi,

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.


Thanks,

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