Hi,
I followed the instructions contained in the articles named :
Deploying ASP.Net 2.0 Web site to Production Server: Part I (URL : http://www.c-sharpcorner.com/uploadfile/dsdaf/104012006083052am/1.aspx)
Deploying ASP.NET 2 Web Site to Production Server: Part II (URL : http://www.c-sharpcorner.com/UploadFile/dsdaf/104092006022507AM/1.aspx)
These articles have been written by Moustafa Arafa. I followed these instructions in order to solve an issue which I have regarding the deployment of my website on a production server.
I wrote the following in my web.config
<
connectionStrings>
<
remove name="LocalSqlServer" />
<
add name="MyDBConnectionString" connectionString="Data Source=(Local)\UNISQL2005;Initial Catalog=myTESTDB;Integrated Security=True" providerName="System.Data.SqlClient" />
<!--
DYNAMIC DEBUG COMPILATION
<add name="TestAConnectionString1" connectionString="Data Source=(Local)\UNISQL;Initial Catalog=TestA;Integrated Security=True" providerName="System.Data.SqlClient"/>
-->
</
connectionStrings>
<
system.web>
<
membership>
<
providers>
<
remove name="AspNetSqlMembershipProvider" />
<
add connectionStringName="MyDBConnectionString" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/"
requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10" passwordStrengthRegularExpression=""
name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</
providers>
</
membership>
<
roleManager enabled="true">
<
providers>
<
remove name="AspNetSqlRoleProvider" />
<
add connectionStringName="MyDBConnectionString" applicationName="/"
name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<
remove name="AspNetWindowsTokenRoleProvider" />
</
providers>
</
roleManager> />
<
webParts>
<
personalization defaultProvider="AspNetSqlPersonalizationProvider">
<
providers>
<
remove name="AspNetSqlPersonalizationProvider" />
<
add name="AspNetSqlPersonalizationProvider"
type="System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider"
connectionStringName="MyDBConnectionString"
applicationName="/" />
</
providers>
</
personalization>
</
webParts>
and following is the error message which I receive on my development server : Erreur 102 Section de configuration non reconnue membership. (c:\inetpub\wwwroot\univision\web.config line 9) (translated in English, this error message would look like : Error 102 Configuration section membership not recognized).
Could somebody help me ?
Many thanks,
Pierre