c# - Client can't open service on Win8 -
c# - Client can't open service on Win8 -
i utilize wshttpbinding may wcf app. , have problem when seek running client on windows 8.1 (not pro). application crashed every time when run service.open()
binding configuration:
wshttpbinding binding = new wshttpbinding(); binding.maxreceivedmessagesize = 524288; binding.reliablesession.enabled = true; binding.messageencoding = wsmessageencoding.text; binding.security.mode = securitymode.message; binding.security.message.clientcredentialtype = messagecredentialtype.username; for other operating scheme it's work well.
exception message: unsecured or incorrectly secured fault received other party. see inner faultexception fault code , detail.
inner exception: security validation error message.
metro apps (win 8) back upwards next wcf bindings:
basichttpbinding nettcpbinding nethttpbinding custombindingwshttpbinding not supported!
in win 8.1 win wshttpbinding work , should used, because microsoft have enhanced security in lsas in 8.1 / 2012 r2 , basichttpbinding should fail due no longer supported sending users identity info on network.
i guessing using wshttpbinding same way - want utilize username/password , send them on network.
your case should : message security user name client
i no know problem is, seems trust issues. error thrown because security validation fails in validation.
if programme worked on win 8.1 pro , not win 8.1:
and utilize username + certificate validate reinstall certificate and utilize username + password validate check if domain user exists , if tries connect right domain.other fluke chance :
certificate not exit certificate not have privileges needed certificate based on other certificates invalid, uninstalled, expired or ... certificate or it's base of operations certificates utilize algorithm not supported c# wcf
Comments
Post a Comment