时光雕像

Experience is the father of wisdom and memory the mother.

导航

关于Silverlight2 beta2 app添加wcf引用的一个小问题

今天把silverlight2 beta2版本装上了,发现以前在beta1下写的一个程序wcf引用失效,于是就想把wcf引用重新添加一次,结果弹出对话框显示"Object reference not set to an instance of an object".为了测试问题的原因,又新建了一个Silverlight Application添加wcf引用,仍然提示这个错误,并且vs.net2008在退出的时候老是提示出现问题提示重新启动。于是google了一下,找到了解决方法。总结如下:

症状:
1.当添加WCF服务引用的时候出现错误 “Object reference not set to an instance of an object”
2.Silverlight app 不能发现同一个解决方案下的 WCF services
3.添加wcf服务的时候,点击advanced按钮时出现错误“Unable to find ‘DynamicTypeService’” 
4.Visual Studio退出时死掉,并且提示重新启动vs studio

解决方法:
1.在Tools – Options – Source Control – Plug-in Selector下将源代码管理插件设置为None
2.删除文件\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Microsoft.VisualStudio.ServicesProxy.dll
3.卸载 Microsoft Silverlight Tools Beta 2 for Visual Studio 2008. 并且重新安装
这样Microsoft.VisualStudio.ServicesProxy.dll被更新为新的版本。

打开vs.net2008问题解决。

posted on 2008-06-11 11:44  时光雕像  阅读(463)  评论(0编辑  收藏  举报