私は正常にサーバー上で自分のmvcのWebサイトをホストしています。 しかし、私は新しいユーザーを登録することができません。 以下の接続文字列を使用しました。サーバー上のSQLメンバーシップにユーザーを登録できませんか?
<connectionStrings> <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> </connectionStrings>
エラーは、ユーザーを作成するためのSQLメンバシップのテーブルを使用して A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
です。 すべてがローカルホストでうまくいくが、ホスティング後にエラーが発生する。
どこが間違っていますか?
はい私はそれを 'ASPNETDB'と' aspnetdb_log'ファイルが 'App_Data'フォルダにあります:(その他の推測? – Neo
あなたのホストはmdfファイルを使ってサポートしていますか?接続文字列「DataDirectoryのは、」あなたはそれがないと思うディレクトリにリンクすることはできません –