Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

problem of configuring authorization

$
0
0

hello  community,

I have a problem concerning the management of authorization to the pages of a web application that I develop in asp.net with sql server 2008 r2 external database. I have configured my database by executing the framework aspnet_reqsql 4 since I use Visual Studio 2010 to develop my application. when I run the asp.net website administration tool, and I click the Security tab I get the following error: "An error occurred during initialization of an object attempts . System.Data.SqlClient.SqlConnection the value provided for the connection string is incorrect or the syntax is valid may not parameter name. connectionString "
so I use forms authentication via a table "employee" contained in my database to connect to my application
is what this error is because I am using sql server 2008 r2 for my database?
If yes / no, how to solve the problem.

  here is the creation of code for my membership and rolemanager to the web.config:

<membership defaultProvider="HEALTHBOARD_Membership"><providers><clear /><add connectionStringName="ApplicationServices" enablePasswordRetrieval="false"
     enablePasswordReset="true" requiresQuestionAndAnswer="false"
     requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"
     minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
     applicationName="/" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" /><add connectionStringName="csthealthboard" name="HEALTHBOARD_Membership"
     type="System.Web.Security.SqlMembershipProvider" /></providers></membership><profile><providers><clear/><add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/></providers></profile><roleManager enabled="true" defaultProvider="HEALTHBOARD_RoleManager"><providers><clear /><add connectionStringName="ApplicationServices" applicationName="/"
     name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" /><add applicationName="/" name="AspNetWindowsTokenRoleProvider"
     type="System.Web.Security.WindowsTokenRoleProvider" /><add connectionStringName="csthealthboard" name="HEALTHBOARD_RoleManager"
     type="System.Web.Security.SqlRoleProvider" /></providers></roleManager>

please help me


Viewing all articles
Browse latest Browse all 4737

Trending Articles