Bunu nasıl düzelteceğine dair bir fikrin var mı?
UserService.UserServiceClient userServiceClient = new UserServiceClient();
userServiceClient.GetUsersCompleted += new EventHandler<GetUsersCompletedEventArgs>(userServiceClient_GetUsersCompleted);
userServiceClient.GetUsersAsync(searchString);
.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_UserService"
maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:52185/UserService.svc"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_UserService"
contract="UserService.UserService"
name="BasicHttpBinding_UserService" />
</client>
<behaviors>
<serviceBehaviors>
<behavior name="Shell.Silverlight.Web.Service3Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<services>
<service behaviorConfiguration="Shell.Silverlight.Web.Service3Behavior"
name="Shell.Silverlight.Web.Service3">
<endpoint address=""
binding="basicHttpBinding"
contract="Shell.Silverlight.Web.Service3" />
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
ServiceModel istemci yapılandırması bölümünde "UserService.UserService" sözleşmesine başvuran varsayılan uç nokta öğesi bulunamadı. Bunun nedeni, uygulamanız için hiçbir yapılandırma dosyasının bulunmaması veya istemci öğesinde bu sözleşmeyle eşleşen hiçbir uç nokta öğesinin bulunamaması olabilir.
Çözüldü!
Bunun bir Silverlight uygulaması olduğundan bahsetmedim. Kendi "ServiceReferences.ClientConfig" dosyasına sahip bir DLL dosyasında wcf başvurum vardı. DLL'nin ServiceReferences.ClientConfig içeriğini ana silverlight projesine taşıdım ve işe yaradı.