实体框架应用程序在其他系统上崩溃, [英] Entity framework application crashing on other system,

查看:27
本文介绍了实体框架应用程序在其他系统上崩溃,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了一个具有实体framewrok的应用程序.它是wpf应用程序,现在可以在我的计算机上正常运行,但是当我在另一个系统上运行该应用程序时,它崩溃了,我在另一个系统上对其进行了调试,尝试访问实体数据时出现异常,这可能是问题所在,

解决方案

基础提供程序在Open上失败要么表示您的连接字符串不正确,要么应用程序无权访问数据库(在连接字符串中指定的SQL帐户或正在运行该应用程序的当前用户).

i have made an application having entity framewrok. It is wpf application, now it runs fine on my computer, but when i run this application on another system it crashes, i debugged it on other system, exception came when i try to access data of entities, what could be problem,

解决方案

The underlying provider failed on Open either means that your connection string is incorrect or the application doesn't have access permission to the database (either SQL account specified in connection string or current user running the application).

这篇关于实体框架应用程序在其他系统上崩溃,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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