2009-04-21 7 views

答えて

1

更新Web構成でのデータソースのタグ

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=<<PATH Goes Here>>;Persist Security Info=False; 
0

接続文字列はweb.configファイルにあります。

0

アプリケーションのweb.configファイルを変更して、LocalSqlServer接続文字列をデータベースを指すように再定義します。

<connectionStrings> 
    <remove name="LocalSqlServer"/> 
    <add name="LocalSqlServer" 
     connectionString="server=.;database=aspnetdb; 
     integrated security=sspi;"/> 
</connectionStrings> 

メンバシッププロバイダが "LocalSqlServer"を指していない場合は、web.configでも変更できます。

<membership> 
    <providers> 
    <remove name="AspNetSqlMembershipProvider"/> 
    <add name="AspNetSqlMembershipProvider" 
     type="System.Web.Security.SqlMembershipProvider, ..." 
     connectionStringName="LocalSqlServer" 
     enablePasswordRetrieval="false" 
     enablePasswordReset="true" 
     requiresQuestionAndAnswer="true" 
     applicationName="/" 
     requiresUniqueEmail="false" 
     passwordFormat="Hashed" 
     maxInvalidPasswordAttempts="5" 
     minRequiredPasswordLength="7" 
     minRequiredNonalphanumericCharacters="1" 
     passwordAttemptWindow="10" 
     passwordStrengthRegularExpression="" 
    /> 
    </providers> 
</membership> 
関連する問題