This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您的连接字符串称为
DBEntities
请在代码中使用此行:
Your connection string is called
DBEntities
Use this line in your code instead:
这只是一个猜测,因为您没有在问题中包含实际的异常:
将对
System.Configuration
的引用添加到您的项目中。This is only a guess since you didn't include the actual exception in your question:
Add a reference to
System.Configuration
to your project.此外,您的名称属性的值为
DBEntities
,但您正尝试在代码中访问ApplicationServices
。Also, your name-attribute's value is
DBEntities
, but you are trying to accessApplicationServices
in your code.