asp.net - WCF Services - Configuration web service binding exception -


all,

env: asp.net 4.0

iis 7 (or greater)

wcf service consumed sl component

authentication: anonymous/forms

when attempt browse wcf web service (using browser) following exception on web service, need rid of error:

the authentication schemes configured on host ('integratedwindowsauthentication') not allow configured on binding 'basichttpbinding' ('anonymous'). please ensure securitymode set transport or transportcredentialonly. additionally, may resolved changing authentication schemes application through iis management tool, through servicehost.authentication.authenticationschemes property, in application configuration file @ element, updating clientcredentialtype property on binding, or adjusting authenticationscheme property on httptransportbindingelement.

i looked @ related posts , none of them me. not using authentication or user/pwd transmission service. service need working consumed silverlight component , has name in web.config file: htmls.webstore.services.webstoreservices (ignore other service).

here's 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" /> 

the exception caused having incorrect permission on folder xxxxx.svc file was. folder locked down using security permissions.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -