service - iis7 wcf: on local computer I get 401 - Unauthorized: Access is denied due to invalid credentials -
Running in Authentication Mode. When I call it directly from IIS machine it works well. But when I try to call service from local computer, I receive the following error: 401 - Unauthorized: Access denied due to invalid certificate.
This service was working on the local computer for a few days and suddenly it was closed (I'm not sure, but it is possible that some configuration was changed.)
I call service directly from IExplorer: web.config: I found a solution Whatever it is It can help, it saved my life ... IIS 7 was hard to figure out why I was receiving 401- unauthorized: entry is denied due to invalid certificate ... when Until I did this .. 1. Open the IIS and select the website that causes the 401 2.) Open the "Authentication" property under the "IIS" header 3.) Click on the "Windows authentication" item and click on "Provider" 4) The issue for me was that the conversation was above NTLM. I think there was some kind of handshake behind the scenes, but I was not actually certified. I transferred NTLM to the top position, and the BAM decided it. http: //serveriis/ssopension/service.svc
& Lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; Connection rows Configuration Protected Provider = "RS-protected configuration provider" & gt; & Lt; Encrypted Data Type = "http://www.w3.org/2001/04/xmlenc#Element" xmlns = "http://www.w3.org/2001/04/xmlenc#" & gt; & Lt; Encryption method algorithm = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc" /> & Lt; KeyInfo xmlns = "http://www.w3.org/2000/09/xmldsig#" & gt; & Lt; Encrypted that xmln = "http://www.w3.org/2001/04/xmlenc#" & gt; & Lt; Encryption method algorithm = "http://www.w3.org/2001/04/xmlenc#rsa-1_5" /> & Lt; KeyInfo xmlns = "http://www.w3.org/2000/09/xmldsig#" & gt; & Lt; KeyName & gt; The key of the & lt; / KeyName & gt; & Lt; / KeyInfo & gt; & Lt; CipherData & gt; & Lt; CipherValue & gt; O8jBoF9YUW3sZtSN + L / Xxhzss = & lt; / CipherValue & gt; & Lt; / CipherData & gt; & Lt; / EncryptedKey & gt; & Lt; / KeyInfo & gt; & Lt; CipherData & gt; & Lt; CipherValue & gt; C + EeTszivHho8Ujk2oIQ == & lt; / CipherValue & gt; & Lt; / CipherData & gt; & Lt; / EncryptedData & gt; & Lt; / ConnectionStrings & gt; & Lt; System.web & gt; & Lt; Collection Target Framework = "4.0" /> & Lt; Authentication mode = "Windows" /> & Lt; Pages control rendering formatting = "3.5" client idmod = "autoid" /> & Lt; /system.web> & Lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; BasicHttpBinding & gt; & Lt; Binding name = "basic htppointpointbunding" & gt; & Lt; Safety Mode = "Transport Credential Only" & gt; & Lt; Transport Customer Credential Type = "Windows" /> & Lt; / Safety & gt; & Lt; / Binding & gt; & Lt; / BasicHttpBinding & gt; & Lt; / Binding & gt; & Lt; Services & gt; & Lt; Service transaction support = "SSO_Pension.ServiceBehavior" name = "SSO_Pension.Service" & gt; & Lt; Endpoint address = "binding =" basicHttpBinding "binding configuration =" basicHTPandpointbidding "name =" basichpindpoint "contract =" sso_pension.iservice "> gt; & lt; identity & gt; & lt; dns; value =" localhost "/> & Lt; / identity & gt; / endpoint & gt; & lt; / service & gt; & lt; / services & gt; & lt; behave & gt; Name = "SSO_Pension.ServiceBehavior" & gt; & lt;! - To avoid disclosing metadata information, set the value below to false and remove metadata endpoint before deploying - & gt; & lt; serviceMetadata httpGetEnabled = "true" /> & lt ;! To obtain exception details in the defects for debugging purposes, set the price below to true. To avoid being set to wrong before deployment - & gt; & lt; service is included in the debugging exception interaction = "false" /> gt; & lt; / serviceBehaviors & gt; & Lt ; / Behavior & gt; & lt; /system.serviceModel> & lt; system.webServer & gt; & Lt; DefaultDocument & gt; & Lt; Files & gt; & Lt; Add value = "Service.svc" /> & Lt; / Files & gt; & Lt; / DefaultDocument & gt; & Lt; /system.webServer> & Lt; / Configuration & gt;
Comments
Post a Comment