无法生成SQL Server的用户实例由于开始为用户实例的进程失败。该连接将被关闭 [英] 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

查看:244
本文介绍了无法生成SQL Server的用户实例由于开始为用户实例的进程失败。该连接将被关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试添加一个基于服务的数据基地(密度纤维板),以在ASP .NET应用程序的项目。从那里,我已经着手试图创建一个实体框架模型文件(的.edmx)。

I've attempted to add a "service based data base" (.mdf) to a project in an asp .net application. From there I've proceeded attempted to create an entity framework model file (.edmx).

在这方面,我得到的错误:

When doing so I get the error:

在连接到数据库时发生错误。数据库可能不可用。类型的异常'System.Data.SqlClient.SqlException'发生。错误消息是:无法生成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的防爆preSS版。

I've got SQL Server 2008 R2 Express edition installed on my machine.

任何想法,将AP最多preciated。

Any ideas would be most appreciated.

推荐答案

我已经得到了同样的错误,它的固定以下更改后。

I have got the same error, it's fixed after the following change.

删除文件夹 C:\\用户\\用户\\应用程序数据\\本地\\微软\\ Microsoft SQL Server数据 Windows 7中工作对我来说有删除的文件夹后重新启动VS

Deleting the folder C:\Users\User\AppData\Local\Microsoft\Microsoft SQL Server Data worked for me in Windows 7. Have to restart VS after deleting the folder.

这篇关于无法生成SQL Server的用户实例由于开始为用户实例的进程失败。该连接将被关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆