पर डब्ल्यूसीएफ की मेजबानी की है मैंने MSDN से these instructions के अनुसार एक SSL प्रमाणपत्र बनाया और कॉन्फ़िगर किया है। मुझे त्रुटि संदेश मिल रहा है कि this question सूचियां, लेकिन मुझे यकीन नहीं है कि उस प्रश्न में स्वीकृत उत्तर को मेरी App.config फ़ाइल में कैसे मैप करना है। कॉन्फ़िगरेशन फ़ाइल की सामग्री, और सेवा स्वयं http पर सही ढंग से काम करती है, यह सिर्फ https पर है कि समस्या हो रही है।विंडोज सेवा ने एचटीटीपीएस
मेरे App.config
फ़ाइल वर्तमान में है:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="TransportSecurity">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="LookupServiceHost" behaviorConfiguration="serviceBehaviour">
<host>
<baseAddresses>
<add baseAddress="https://localhost:54321/MyService"/>
</baseAddresses>
</host>
<endpoint address="" binding="wsHttpBinding" contract="ILookupService" bindingConfiguration="TransportSecurity" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="serviceBehaviour">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="False"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
त्रुटि अपवाद Windows ईवेंट लॉग इन लौटे:
सेवा प्रारंभ नहीं किया जा सकता है। System.ServiceModel.AddressAlreadyInUseException: HTTP यूआरएल https://+:54321/MyService/ पंजीकृत नहीं कर सका। एक और एप्लीकेशन पहले से ही इस यूआरएल को HTTP.SYS के साथ पंजीकृत कर चुका है। ---> System.Net.HttpListenerException: उपसर्ग 'https://+:54321/MyService/' पर सुनने में विफल रहा क्योंकि यह मशीन पर मौजूदा पंजीकरण के साथ संघर्ष करता है।
क्या कोई मुझे यह सक्षम करने के लिए एक सूचक दे सकता है?
में विजुअल स्टूडियो चला रहे हैं क्योंकि यह .NET है, आपको एक त्रुटि संदेश प्राप्त नहीं हो रहा है, आपको अपवाद प्राप्त हो रहा है। कृपया पूरा अपवाद पोस्ट करें। –
@ जॉन, पेडेंट्री एक तरफ, मैंने कहा था कि मुझे एक ही संदेश (आईएमओ) लिंक किए गए पोस्ट के रूप में प्राप्त हो रहा था। उस ने कहा, मैंने अपने प्रश्न के लिए विशिष्ट विवरण जोड़ा है। – Rob