【发布时间】:2015-06-25 18:27:03
【问题描述】:
我是 asp.net 和使用实体框架的新手。我们必须创建一个使用实体模型的网站。我们导出为 .dll 的实体模型(数据库)供 asp.net 网站使用。当我调用使用 dll 函数的函数时,我收到以下错误:
An exception of type 'System.ArgumentException' occurred in System.Data.Entity.dll but was not handled in user code
Additional information: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
该模型是使用实体框架版本 4.0.0.0 创建的。我可以添加到 asp.net 网站的最旧版本是 4.2.0.0 版。我不确定这是原因还是其他原因。一些帮助将不胜感激。
【问题讨论】:
标签: c# asp.net entity-framework visual-studio-2013 entity-framework-4