ASP.NET WebApp web.config error

Oscilloscope 0 Reputation points
2025-02-23T18:56:27.2933333+00:00

Hello,

I am getting a web.config error on my visual studio 2022 local environment.

Configuration Error

__**Description: **__An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. __**Parser Error Message: **__Provider must implement the class 'System.Web.Security.RoleProvider'.

My web.config code is:

<configuration>

<roleManager enabled="true">

<providers>

<add name="SqlProvider"

     type="System.Web.Security.SqlMembershipProvider"

  connectionStringName="ConnectionStringMain" enablePasswordRetrieval="false"

  enablePasswordReset="true" requiresQuestionAndAnswer="false"

  passwordFormat="Clear" minRequiredPasswordLength="6"

  minRequiredNonalphanumericCharacters="0"

  applicationName="CMH"/>

</providers>

</roleManager>

</configuration>

Any help would be appreciated.

Thanks,

Oscilloscope

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
381 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.