wcf confidence blunder vs 2008 section test
i controlling initial visible studio 2008 section exam wcf use i viewed following error:
test method
unittest.serviceunittest.testmyservice
threw exception:
system.servicemodel.security.messagesecurityexception:
http ask unapproved with
fan authentication scheme
'anonymous'. authentication header
viewed server was
'negotiate,ntlm'. --->
system.net.webexception: remote
server returned an error: (401)
unauthorized..
i am also removing following unsuccessful review confidence log:
logon failure: reason: user has
reputed requested logon
form during machine
user
name: (internet guest account)
domain:
logon type: 3
logon process: iis
authentication package:
microsoft_authentication_package_v1_0
workstation name:
i am hosting wcf use iis 6.0 windows xp sp3 machine. i have both "anonymous access" "integrated windows authentication" checked wcf use practical directory.
here config record service:
<system.servicemodel>
<services>
<bindings>
<basichttpbinding>
<binding name="mybinding">
<security mode="none" />
</binding>
</basichttpbinding>
<custombinding>
<binding name="mybinding">
<transactionflow />
<textmessageencoding />
<httpstransport authenticationscheme="ntlm"/>
</binding>
</custombinding>
<wshttpbinding>
<binding name="mybinding">
<security mode="none" />
</binding>
</wshttpbinding>
</bindings>
<service
behaviorconfiguration="service1behavior"
name="service1"
>
<endpoint
address=""
binding="wshttpbinding"
bindingconfiguration="mybinding"
contract="iservice1"
>
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</service>
</services>
<behaviors>
<servicebehaviors>
<behavior name="service1behavior">
<servicemetadata httpgetenabled="true" />
<servicedebug includeexceptiondetailinfaults="false" />
</behavior>
</servicebehaviors>
</behaviors>
</system.servicemodel>
Comments
Post a Comment