运行Web应用程序时出现连接错误 [英] connection error when run web application

查看:112
本文介绍了运行Web应用程序时出现连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

登录后实时运行Web应用程序时出现此错误:

在配置中找不到指定的命名连接,或者不打算与EntityClient提供程序一起使用,或者无效.


任何帮助??

I got this error when i run my web application live after logging in :

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.


Any help ??

推荐答案

您需要将app.config中的连接字符串复制到web.config,或将整个文件复制到显示输出.这是使用框架的条件之一.
You need to copy the connection string in the app.config to your web.config, or copy the entire file to the project which displays the output. It is one of the conditions to consume the framework.


解决方案:将连接字符串从新创建的类库项目移至网站项目.

报告了类似的问题,并在此处解决:http://blog.weareon.net/指定连接名不打算与实体客户端提供者一起使用的配置或无效// [ ^ ]
Solution: Moving the connection string from newly created class library project to the website project.

Similar issue reported with resolution here: http://blog.weareon.net/the-specified-named-connection-is-either-not-found-in-the-configuration-not-intended-to-be-used-with-the-entityclient-provider-or-not-valid/[^]


这篇关于运行Web应用程序时出现连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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