Greg_L_WER
asked on
SSL WCF Service Issues - Value cannot be null
This is my first time that I’m trying to setup a service to require SSL connections. The service is accessible but when I try to run one of the methods (Using both WCF Test Client as well as a Web application) I get this error:
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.
Value cannot be null.
Parameter name: context
Server stack trace:
at System.ServiceModel.Channe ls.Service Channel.Th rowIfFault Understood (Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channe ls.Service Channel.Ha ndleReply( ProxyOpera tionRuntim e operation, ProxyRpc& rpc)
at System.ServiceModel.Channe ls.Service Channel.Ca ll(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channe ls.Service Channel.Ca ll(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channe ls.Service ChannelPro xy.InvokeS ervice(IMe thodCallMe ssage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channe ls.Service ChannelPro xy.Invoke( IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Pr oxies.Real Proxy.Hand leReturnMe ssage(IMes sage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Pr oxies.Real Proxy.Priv ateInvoke( MessageDat a& msgData, Int32 type)
at IeSearchServices.GetOrderS tatus(Stri ng AccountKey, Int32 ItemId)
at IeSearchServicesClient.Get OrderStatu s(String AccountKey, Int32 ItemId)
I’ve tried many of the different “fixes” online with no luck so far. Any ideas would be appreciated. Please let me know if additional information would help.
Thanks,
Greg
Server config file information:
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.
Value cannot be null.
Parameter name: context
Server stack trace:
at System.ServiceModel.Channe
at System.ServiceModel.Channe
at System.ServiceModel.Channe
at System.ServiceModel.Channe
at System.ServiceModel.Channe
at System.ServiceModel.Channe
Exception rethrown at [0]:
at System.Runtime.Remoting.Pr
at System.Runtime.Remoting.Pr
at IeSearchServices.GetOrderS
at IeSearchServicesClient.Get
I’ve tried many of the different “fixes” online with no luck so far. Any ideas would be appreciated. Please let me know if additional information would help.
Thanks,
Greg
Server config file information:
<system.serviceModel>
<services>
<service name="eSearchServices.eSearchServices">
<endpoint address=""
binding="basicHttpBinding"
bindingConfiguration="secureHttpBinding"
contract="eSearchServices.IeSearchServices"/>
<!--<endpoint address="mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />-->
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="secureHttpBinding">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank again YZlat! Looks like it did work after-all. Your changes led me to another issue that once I solved it seems to have everything working properly. One follow-up question for you... how can I check that the information being sent/received from the service is in fact encrypted?
Thanks,
Greg
Thanks,
Greg
What happens if you look at it in fiddler?
Also you could try enabling message logging
ASKER
Hmmm... not a program that I've used yet... looks promising. I'll give it a try. Thanks for the idea and help earlier :)
ASKER
Thanks again,
Greg
Open in new window