WCF RIA方法无效的一种解决方法
来源:互联网 发布:网络直播行业研究报告 编辑:程序博客网 时间:2024/05/17 04:56
今天使用WCF RIA做个Demo,但是发现服务器端写的方法总是不执行。这里,我使用的是LinqToEntitiesDomainService<ObjectContext>作为域服务类。通过Debug后发现其触发了ApplicationUnhandledException异常,里面的信息是:
Submit operation failed. The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
从这个信息中可以看出可能是配置文件的问题,后来查看web.config文件后才恍然大悟,原来是我忘记写ADO.NET 实体数据模型的数据库连接了,补上后问题解决。
例如:
<add name="DemoEntities" connectionString="metadata=res://*/Models.csdl|res://*/Models.ssdl|res://*/Models.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.;Initial Catalog=Demo;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
- WCF RIA方法无效的一种解决方法
- wcf ria services 异步请求提示错误“超出了2083的最大uri长度” 解决方法
- 更强悍的Silverlight: WCF RIA Services
- wcf ria forms验证的处理方式
- WCF Data Services 与 WCF RIA Services 的比较
- WCF Data Services 与 WCF RIA Services 的比较
- Dialog.dismiss()方法无效的解决方法
- EditText的setText()方法无效解决方法
- WCF RIA Services 中的WCF
- WCF 与 WCF RIA Services
- WCF RIA Services教程
- WCF RIA Services - 超时
- WCF RIA调试
- WCF RIA Services
- WCF RIA Services Domain Serive的生命周期和数据交互
- VS2010在WCF RIA Services上的增強
- 推荐大家WCF RIA Service的学习资源
- WCF RIA 问题: 表查询返回的内容过多
- 使用html5shiv让IE6~8支持HTML5
- postgreSQL8.4数据库问题及解决方法
- uva 10719 - Quotient Polynomial
- 毕业两年,需要下一个决心做选择
- javaBean多去少补
- WCF RIA方法无效的一种解决方法
- 关于hibernate纯sql查询返回结果集的问题(hbm.xml中不写多表关联)
- STL学习——list中的sort算法
- java中finally关键字的用处
- 德沃夏克布局与快蹄布局的手指负荷统计
- android消息推送-XMPP
- Mysql学习3——查看表结构、修改和删除数据表
- 2.4 存储管理
- java se TreeSet自己实现Comparator接口