2008年7月29日
摘要: 当在一个siliverlight 2.0工程中 添加webservice时 遇到错误:'Object reference not set to an instance of an object'这是因为,siliverlight 2.0 SDK在安装过程中,会自动检测\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Microsoft.V... 阅读全文
posted @ 2008-07-29 16:42 monkey-猴子 阅读(690) 评论(0) 推荐(0) 编辑
2008年7月14日
摘要: 下面我们来接着做客户端:1.在Solution中添加SiliverLight Project,命名为ChatClient这里,我将对应的网站 放在WCF Service中2.先在ChatClient工程中 添加DLL引用:System.Runtime.Serialization.dllSystem.ServiceModel.dllSystem.ServiceModel.PollingDuplex.... 阅读全文
posted @ 2008-07-14 15:05 monkey-猴子 阅读(2017) 评论(10) 推荐(0) 编辑
2008年7月11日
摘要: 1.建立WCF Service,命名为ChatService添加引用,System.ServiceModel.dllSystem.ServiceModel.PollingDuplex.dllSystem.Runtime.Serialization.dll2.定义接口IChatService.cs[代码]相对应的callback接口[代码]注意:在IChat中的属性 NameSpace一定要是Sil... 阅读全文
posted @ 2008-07-11 17:56 monkey-猴子 阅读(2176) 评论(8) 推荐(0) 编辑