摘要:
当在一个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... 阅读全文
摘要:
下面我们来接着做客户端:1.在Solution中添加SiliverLight Project,命名为ChatClient这里,我将对应的网站 放在WCF Service中2.先在ChatClient工程中 添加DLL引用:System.Runtime.Serialization.dllSystem.ServiceModel.dllSystem.ServiceModel.PollingDuplex.... 阅读全文
摘要:
1.建立WCF Service,命名为ChatService添加引用,System.ServiceModel.dllSystem.ServiceModel.PollingDuplex.dllSystem.Runtime.Serialization.dll2.定义接口IChatService.cs[代码]相对应的callback接口[代码]注意:在IChat中的属性 NameSpace一定要是Sil... 阅读全文