2015-08-25 4 views
0

Все,службы WCF - веб-конфигурации служба связывания исключение

Env: Asp.net 4,0

IIS 7 (или выше)

WCF службы потребляемой SL компонента

Аутентификация: Anonymous/Forms

Когда я пытаюсь перейти к моей веб-службе WCF (используя браузер), я получаю следующее крыло исключение на моем веб-службы, мне нужно, чтобы избавиться от этой ошибки:

The authentication schemes configured on the host ('IntegratedWindowsAuthentication') do not allow those configured on the binding 'BasicHttpBinding' ('Anonymous'). Please ensure that the SecurityMode is set to Transport or TransportCredentialOnly. Additionally, this may be resolved by changing the authentication schemes for this application through the IIS management tool, through the ServiceHost.Authentication.AuthenticationSchemes property, in the application configuration file at the element, by updating the ClientCredentialType property on the binding, or by adjusting the AuthenticationScheme property on the HttpTransportBindingElement.

Я смотрел на все соответствующие должности, и никто из них не поможет мне. Я не использую аутентификацию или передачу пользователя/pwd для моей службы. Служба, которая мне нужна для работы, потребляется компонентом Silverlight и имеет это имя в файле web.config: Htmls.WebStore.Services.WebStoreServices (игнорируйте другую службу).

Вот мой web.config:

<system.serviceModel> 
<bindings> 
    <basicHttpBinding> 
      <binding name="WebStoreServices_InsecureTransport" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> 
       <readerQuotas maxDepth="4096" /> 
       <security mode="None" /> 
      </binding> 
    <binding name="basicHttpBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"> 
     <security mode="None" /> 
    </binding> 
    </basicHttpBinding> 
</bindings> 
<behaviors> 
    <endpointBehaviors> 
    <behavior name="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior"> 
     <enableWebScript /> 
    </behavior> 
    <behavior name="EndpBehavior"> 
     <webHttp /> 
    </behavior> 
    </endpointBehaviors> 
    <serviceBehaviors> 
    <behavior> 
     <serviceMetadata httpGetEnabled="true" /> 
     <serviceDebug includeExceptionDetailInFaults="true" /> 
    </behavior> 
    <behavior name="Telerik.Sitefinity.Web.Services.LocalizationBehavior" /> 
    <behavior name="ServiceBehavior"> 
     <serviceMetadata httpGetEnabled="true" /> 
     <serviceDebug includeExceptionDetailInFaults="true" /> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 
<services> 
     <service name="Htmls.WebStore.Services.WebStoreServices"> 
      <endpoint address="" binding="basicHttpBinding" bindingConfiguration="WebStoreServices_InsecureTransport" contract="Htmls.WebStore.Services.IWebStoreServices" /> 
     </service> 
    <service name="SitefinityWebApp.Sitefinity.Services.Content.Events"> 
    <endpoint address="" behaviorConfiguration="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior" binding="webHttpBinding" contract="SitefinityWebApp.Sitefinity.Services.Content.Events" /> 
    </service> 
</services> 
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> 

+0

Ошибка указывает на то, что IIS не настроен на соответствие привязке. Попробуйте включить анонимную аутентификацию в IIS или запустите пул приложений службы под учетной записью домена. – Tim

+0

Аутентификация уже включена для анонимного пользователя для сайта. Разрешение пула приложений настроено на сетевую услугу, и это то, что должна выполнять служба. Любопытно, однако, что, если папка не имеет правильного разрешения или соответствующего разрешения, эта глупая ошибка может возникнуть ??? Когда я вернусь домой, я буду проверять эту теорию. – ActiveX

ответ

0

Исключение было вызвано наличием неправильного разрешения на папку, в которой файл был xxxxx.svc. Папка была заблокирована с использованием разрешений безопасности.

 Смежные вопросы

  • Нет связанных вопросов^_^