in der web.config
die Zeilen:
<membership defaultProvider=“MySQLMembershipProvider“>
<providers>
<remove name=“MySQLMembershipProvider“ />
<add name=“MySQLMembershipProvider“ autogenerateschema=“true“ type=“MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.7.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d“ connectionStringName=“LiveMySqlServer“ enablePasswordRetrieval=“false“ enablePasswordReset=“true“ requiresQuestionAndAnswer=“true“ applicationName=“/“ requiresUniqueEmail=“false“ passwordFormat=“Clear“ maxInvalidPasswordAttempts=“5″ minRequiredPasswordLength=“7″ minRequiredNonalphanumericCharacters=“1″ passwordAttemptWindow=“10″ passwordStrengthRegularExpression=““ />
</providers>
</membership>
<profile defaultProvider=“MySQLProfileProvider“>
<providers>
<remove name=“MySQLProfileProvider“ />
<add name=“MySQLProfileProvider“ autogenerateschema=“true“ type=“MySql.Web.Profile.MySQLProfileProvider, MySql.Web, Version=6.7.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d“ connectionStringName=“LiveMySqlServer“ applicationName=“/“ />
</providers>
</profile>
<roleManager defaultProvider=“MySQLRoleProvider“>
<providers>
<remove name=“MySQLRoleProvider“ />
<add name=“MySQLRoleProvider“ autogenerateschema=“true“ type=“MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.7.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d“ connectionStringName=“LiveMySqlServer“ applicationName=“/“ />
</providers>
</roleManager>
unter der Rubrik: <system.web>rausgenommen.
Hatte den Fatalen Fehler zur Folge, dass der Transfer nicht mehr funktionierte.
Lösung ist:
Put the following in the web.config:
<connectionStrings configSource=“ConnectionStrings.config“>
</connectionStrings>
and then just maintain different ConnectionString.config files in each deployment.
<connectionStrings>
<add name=“ConnectionStringxxx“ connectionString=“Data Source=xxx.xxx.xxx.xxx;Initial Catalog=Master;Integrated Security=True“
providerName=“System.Data.SqlClient“ />
</connectionStrings>
Your code can always refer to ConnectionStringxxx