I built up a WCF service, it works good in IE addr, but once i add it to wcftestclient and invoke a method, an error was prompted and shown as :
Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.
Error Details:
The Address property on ChannelFactory.Endpoint was null. The ChannelFactory's Endpoint must have a valid Address specified.
at System.ServiceModel.ChannelFactory.CreateEndpointAddress(ServiceEndpoint endpoint)
at System.ServiceModel.ChannelFactory`1.CreateChannel()
at System.ServiceModel.ClientBase`1.CreateChannel()
at System.ServiceModel.ClientBase`1.CreateChannelInternal()
at System.ServiceModel.ClientBase`1.get_Channel()
at MyDownloadSvcClient.DeleteMyFolder(Int32 UserId, Int32 FolderId)
The config file is: (updated at 10/9)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<services>
<service name="MyDownloadSvcClient">
<endpoint binding="basicHttpBinding" />
</service>
</services>
<bindings />
<client>
<endpoint address="http://localhost/MyDownloadSvc.svc"
binding="basicHttpBinding" bindingConfiguration="" contract="IMyDownloadSvc"
name="Test" />
</client>
</system.serviceModel>
</configuration>
Is there anything wrong?
Thanks in advance, Elaine