私は "サービスベースのデータベース"(.mdf)をasp.netアプリケーションのプロジェクトに追加しようとしました。そこから、エンティティフレームワークモデルファイル(.edmx)を作成しようとしました。ユーザーインスタンスのプロセスの開始に失敗したために、SQL Serverのユーザーインスタンスを生成できませんでした。接続が閉じられます
その際、私はエラーを取得する:
An error occurred while connecting to the database. The database might be unavailable. An exception of type 'System.Data.SqlClient.SqlException' occurred. The error message is: 'Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.'.
私は私のマシンにインストールされたSQL Server 2008 R2のExpressエディションを持っています。
どのようなアイデアでも大歓迎です。
接続文字列はどのように見えますか? – VoodooChild
http://stackoverflow.com/questions/7381591/problem-connecting-to-database-user-instance-and-entity-framework-issue –
私のために働いたのは、上記のリンクで私が答えた答えでした^ –