I'm havin d follwing error in my web.config file .
Server Error in '/WebSite4' Application.
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:
Default Role Provider could not be found.
Source Error:
Line 38: enabled="true" Line 39: cacheRolesInCookie="true" Line 40: defaultProvider="SqlProvider" Line 41: cookieName=".ASPXROLES" Line 42: cookiePath="/" |
Source
File: C:\Documents and Settings\User\My Documents\Visual Studio
2005\WebSites\WebSite4\web.config Line: 40
Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433
*******************************************************************************************************************************************
And here is my web.config file.
In the Roles part of the web.config file while specifying the default provider its giving the above mentioned error
<configuration>
<appSettings/>
<connectionStrings>
<add name="employeeConnectionString" connectionString="Data Source=localhost;Integrated Security=SSPI;Initial Catalog=Employee;"/>
</connectionStrings>
<location path="Admin">
<system.web>
<authorization>
<allow roles="Administrator"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<system.web>
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
<providers>
<add name="employeeConnectionString"
type="System.Web.Security.SqlMembershipProvider,System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="employeeConnectionString"
enablesPasswordRetrieval="false"
enablesPasswordReset="true"
requiresQuestionAndanswer="true"
passwordFormat="Hashed"
applicationName="/"/>
</providers>
</membership>
<roleManager
enabled="true"
cacheRolesInCookie="true"
defaultProvider="SqlProvider"
cookieName=".ASPXROLES"
cookiePath="/"
cookieTimeout="30"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
createPersistentCookie="false"
cookieProtection="All">
<providers>
<add name="employeeConnectionString"
type="System.Web.Security.SqlRoleProvider,System.Web,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="employeeConnectionString"/>
</providers>
</roleManager>
<pages smartNavigation="true"/>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" defaultLanguage="c#"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms">
<forms name="HttpCookie"
timeout="10"
loginUrl="Default2.aspx"
protection="All"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="Default2.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false">
</forms>
</authentication>
***********************************************************************************************************************************
I'm not able to understand what kindda error is it n how to reslove it.....any body plz help....