2013-03-25 131 views
0

我得到这个错误在我的WP项目:Keynotfoundexception上创建客户端

An exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.ni.dll but was not handled in user code 

在此:

AzureService.AzureServiceClient client = new AzureService.AzureServiceClient(); 

客户端从一个WCF Web服务=客户端。

这里发生了什么?

回答

0

当操作尝试使用该集合中不存在的键从集合中检索元素时,会引发KeyNotFoundException。

所以,我认为,当你注册你的服务,你有来电时的问题,您可以设置注册并称为服务之间的错配