The specified named connection is either not found in the configuration, not intended to be used
2013-07-10 15:44
615 查看
今天用EF遇到一个问题, The specified named connection is either not found in the configuration, not intended to be used。。。。。。。
原因是我的EF中数据库连接字符串放到App.Config文件中, 而我另一个工程使用此工程时没有添加App.Config 或者Web.Config
解决办法:在调用工程中添加App.Config, 或者Web.Config , 然后把EF工程中的连接字符串添加到此config文件里。
相关文章推荐
- EF之数据库连接问题The specified named connection is either not found in the configuration, not intended to be used with the Ent
- The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid
- The specified named connection is either not found in the configuration, not intended to be used
- The specified named connection is either not found in the configuration, not intended to be used
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive
- This event supports the .NET Framework infrastructure and is not intended to be used directly from your code?继承自VScrollbar的自定义winform控件,某些事件不触发的问题(Winform控件开发学习)
- 93 The ORACLE_SID environment variable is set to +ASM. ASMLIB is not used in the configuration. You
- This is probably a good time to review the order in which SELECT statement clauses are to be specified. Table 10.2 lists all the clauses we have learned thus far, in the order they must be used.
- Cannot update VMware Tools correctly :the configuration program is to be executed in a virtual match
- Only one expression can be specified in the select list when the subquery is not introduced with EXI
- adstpall.sh: Database connection could not be established. Either the database is down or the APPS c
- There is a problem starting qcCoInstaller.dll The specified module could not be found
- 启动unity3d 提示“unity3d EditorWindow could not be loaded because the script is not found in the projec”
- The function equals must be used with a prefix when a default namespace is not specified解决
- monogame Unable to load DLL 'openal32.dll': The specified module could not be found
- ADO.NET Entity framework 连接MySql 提示The specified store provider cannot be found in the configuration
- The function equals must be used with a prefix when a default namespace is not specified
- Only one expression can be specified in the select list when the subquery is not introduced with(求助)
- 【Visual Studio】The project appears to be under source control, but the associated source control plug-in is not installed on this computer