में डब्ल्यूसीएफ सेवा के साथ "मेरे पास एक डब्ल्यूसीएफ सेवा है जिसे मैंने इस त्रुटि के कारण कुछ भी नहीं किया है। यह मुझे दीवार ऊपर चला रहा है। मेरे पास अब क्या है।"रिमोट सर्वर ने एक त्रुटि लौटा दी: (403) अवरुद्ध" https
एक विधि के साथ एक बहुत ही सरल डब्ल्यूसीएफ सेवा जो मूल्य, "परीक्षण" के साथ एक स्ट्रिंग देता है।
सेवा का उपयोग करने वाला एक बहुत ही सरल वेब ऐप और स्ट्रिंग के मान को लेबल में रखता है।
एक वेब सर्वर एक एसएसएल प्रमाणपत्र के साथ विन 2003 पर आईआईएस 6 चला रहा है।
अन्य डब्ल्यूसीएफ सेवाएं जो उसी सर्वर पर काम करती हैं।
मैं WCF सेवा प्रकाशित यह https स्थान
मैं वी.एस. में डिबग मोड में वेब एप्लिकेशन को चलाने के है और इसे पूरी तरह से काम करता है।
मैं प्रकाशित यह करने के लिए वेब अनुप्रयोग https है एक ही सर्वर WCF सेवा एक ही SSL प्रमाणपत्र
मैं के तहत रहता है पर स्थान, "दूरस्थ सर्वर ने एक त्रुटि दिखाई: (403) निषिद्ध"
मैंने आईआईएस के साथ-साथ डब्ल्यूसीएफ और वेब ऐप में लगभग हर सेटिंग को कोई फायदा नहीं हुआ है। मैंने डब्ल्यूसीएफ सेवाओं में सेटिंग की तुलना की है जो काम करते हैं और सबकुछ एक जैसा है।
नीचे WCF सेवा और वेब अनुप्रयोग के लिए web.config में सेटिंग कर रहे हैं:
ऐसा प्रतीत होता है समस्या वेब एप्लिकेशन के साथ क्या करना है, लेकिन मैं विचारों से बाहर हूँ। कोई भी विचार:
WCF सेवा:
<system.serviceModel>
<bindings>
<client />
<services>
<service behaviorConfiguration="Ucf.Smtp.Wcf.SmtpServiceBehavior" name="Ucf.Smtp.Wcf.SmtpService">
<host>
<baseAddresses>
<add baseAddress="https://test.net.ucf.edu/webservices/Smtp/" />
</baseAddresses>
</host>
<endpoint address="" binding="wsHttpBinding" contract="Ucf.Smtp.Wcf.ISmtpService" bindingConfiguration="SSLBinding">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Ucf.Smtp.Wcf.SmtpServiceBehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" httpsHelpPageEnabled="True"/>
</behavior>
</serviceBehaviors>
</behaviors>
वेब एप्लिकेशन:
<system.serviceModel>
<bindings><wsHttpBinding>
<binding name="WSHttpBinding_ISmtpService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
establishSecurityContext="true" />
</security>
</binding>
<client>
<endpoint address="https://net228.net.ucf.edu/webservices/smtp/SmtpService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISmtpService"
contract="SmtpService.ISmtpService" name="WSHttpBinding_ISmtpService">
<identity>
<dns value="localhost" />
</identity>
</client>
</system.serviceModel>