WCF - Windows authentication - Security settings require Anonymous

后端 未结 8 2280
耶瑟儿~
耶瑟儿~ 2020-12-08 13:40

I am struggling hard with getting WCF service running on IIS on our server. After deployment I end up with an error message:

Security settings for this service r

8条回答
  •  生来不讨喜
    2020-12-08 14:00

    Anonymous authentication can, and in some cases must be enabled for the service but not for the site.

    So check that your site's "root" authentication has only Windows Authentication enabled. Then expand your site, select 'service' folder and make sure that your service has Windows and Anonymous Authentication enabled.

    I had identical environment where this worked, only difference in these environments was the service's authentication. Problem in my case was not caused be selected providers (Ntlm or Negotiate) but the authentication settings for site and service.

    At least I had identical error message with basic MSSQL Master Data Services web site & service and this was the solution. I did get the error when running just the service but the site worked almost ok, MDS Explorer did not work because service's authentication settings were wrong at first. Cause of this miss-configuration might be a bug in MDS Configuration Manager when creating new MDS site?

    So in my case the problem was not to be fixed by doing any special editing to the web.config nor the ApplicationHost.config files, I didn't do any editing the config files. Just selected the correct authentication settings for the web site and it's service in IIS manager. I am not sure that this is the case in here, but maybe worth to try?

提交回复
热议问题