के रूप में मैं विन-फॉर्म एप्लिकेशन के साथ अपनी डब्ल्यूसीएफ सेवा से कनेक्ट करने में सक्षम हूं, हालांकि मैं अपनी विंडोज सेवा के साथ ऐसा करने में सक्षम नहीं हूं। System.Security.Authentication.InvalidCredentialException: सर्वर ग्राहक साख को अस्वीकार कर दिया गया है जब भी मैं खुले आग() प्रॉक्सी के लिए यह निम्न त्रुटिसर्वर ने ग्राहक सेवा को अस्वीकार कर दिया है, डब्ल्यूसीएफ विंडोज सेवा
सर्वर क्लाइंट साख
इनर अपवाद को अस्वीकार कर दिया गया है फेंकता ।
---> System.ComponentModel.Win32Exception: लॉगऑन प्रयास विफल
--- भीतरी अपवाद स्टैक ट्रेस की समाप्ति --- System.Net.Security.NegoState.ProcessAuthentication पर
(LazyAsyncResult lazyResult)
पर System.Net.Security.NegotiateStream.AuthenticateAsClient (NetworkCredential क्रेडेंशियल, ChannelBinding बंधन, स्ट्रिंग टार्गेटनाम, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
System.Net.Security.NegotiateStream.AuthenticateAsClient (NetworkCredential क्रेडेंशियल, स्ट्रिंग टार्गेटनाम पर, रक्षा ionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade पर (स्ट्रीम धारा, SecurityMessageProperty & remoteSecurity)
की कोशिश की समाधान के लिए खोज, लेकिन कोई भी मेरी आवश्यकताओं फिटिंग, इसलिए की तैनाती।
कृपया मदद ...
अद्यतन 1:।
@ A.R, की कोशिश की का उपयोग कर
client.ClientCredentials.Windows.AllowedImpersonationLevel =
System.Security.Principal.TokenImpersonationLevel.Impersonation;
लेकिन कोई लाभ नहीं हुआ।
अद्यतन 2:
WCF सेवा विन्यास
<system.serviceModel>
<diagnostics performanceCounters="All" />
<bindings>
<netTcpBinding>
<binding name="myBindingForLargeData" maxReceivedMessageSize="5242880" maxConnections="10">
<readerQuotas maxDepth="64" maxStringContentLength="5242880" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
</binding>
</netTcpBinding>
</bindings>
<services>
<service behaviorConfiguration="WCFService.ServiceBehavior"
name="WCFService.CollectorService">
<endpoint address="" binding="netTcpBinding" bindingConfiguration="myBindingForLargeData"
name="netTcpEndPoint" contract="WCFService.ICollectorService" />
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
name="mexTcpEndPoint" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8010/WCFService.CollectorService/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WCFService.ServiceBehavior">
<serviceMetadata httpGetEnabled="False"/>
<serviceDebug includeExceptionDetailInFaults="True" />
<serviceThrottling
maxConcurrentCalls="32"
maxConcurrentSessions="32"
maxConcurrentInstances="32"
/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
प्रश्न अपडेट किया गया कृपया – Bravo
ठीक है, आपको वास्तव में यह कहना है कि इसका प्रतिरूपण करना है। आप केवल ध्वज सेट नहीं कर सकते हैं और उम्मीद करते हैं कि यह किसी के जादुई रूप से प्रतिरूपण करे। दूसरे लिंक में प्रस्तुत सामग्री पढ़ें। –