社区
WPF/Silverlight
帖子详情
wcf和wcf ria服务怎么共存?
lanting08111214
2012-05-23 11:48:59
我在一个silverlight程序中使用了wcf ria服务用来访问数据库,但是我又要用到wcf,可是发现在有wcf ria基础上再添加wcf服务的话一直失败,在发现wcf服务的时候一直提示"从此地址下载元数据失败",求大神指点一二,怎么样才可能两个都用啊,是不是不行?
...全文
89
3
打赏
收藏
wcf和wcf ria服务怎么共存?
我在一个silverlight程序中使用了wcf ria服务用来访问数据库,但是我又要用到wcf,可是发现在有wcf ria基础上再添加wcf服务的话一直失败,在发现wcf服务的时候一直提示"从此地址下载元数据失败",求大神指点一二,怎么样才可能两个都用啊,是不是不行?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
端木昭昭
2013-03-28
打赏
举报
回复
赞楼主的行为!很气愤的是问个问题然后自己最后来个“解决了”,关于怎么解决的却只字不提。
lanting08111214
2012-05-25
打赏
举报
回复
[Quote=引用 1 楼 的回复:]
请确认wcf服务访问成功,wcf ria教程,请参考:
http://silverlightchina.net/html/zhuantixilie/getstart/2010/0815/1761.html
http://silverlightchina.net/html/zhuantixilie/getstart/2010/0617/1282.html
[/Quote]
谢谢您回复我,在wcf ria已存在的情况下再创建wcf服务可以创建,但是引用的时候就会出现我说的那个问题,我已经解决了这个问题了,要在wcf服务实现类前加入
[AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Required)]
public class DesktopService:IDesktopService
{
...
....
}
就可以共存,我用的是vs2010+silverlight 4,感觉这些问题对我们菜鸟来说真的很难,可是就是没有人总结下,在网上也找不到相关的资料,对silverlight越来越没好感了
jv9
2012-05-24
打赏
举报
回复
请确认wcf服务访问成功,wcf ria教程,请参考:
http://silverlightchina.net/html/zhuantixilie/getstart/2010/0815/1761.html
http://silverlightchina.net/html/zhuantixilie/getstart/2010/0617/1282.html
Ria
Services(
WCF
RIA
Services V1.0 for Silverlight 4 and Visual Studio 2010)
WCF
RIA
Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms.
RIA
Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.
wcf
RIA
Services帮助文档
微软官方提供的
wcf
RIA
Services帮助文档
WCF
边学边练
全面介绍
WCF
的各种特性,并以实例形式展示
WCF
的开发以及调用。
WCF
RIA
Service Silverlight 商业应用
WCF
RIA
Service Silverlight 商业应用 只是个例子
wcf
ria
服务
具体说明了
RIA
的用法,可以借鉴,具体说明了
RIA
的用法,可以借鉴
WPF/Silverlight
8,737
社区成员
12,029
社区内容
发帖
与我相关
我的任务
WPF/Silverlight
WPF/Silverlight相关讨论
复制链接
扫一扫
分享
社区描述
WPF/Silverlight相关讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章