How to access WCF service from asp.net? -


we host wcf services , asp.net site on same machine, both in iis under network service account.

both sites have anonymous , windows authentication enabled. service uses wshttpbinding

when call service wcf test client works fine sends regular domain user credentials, when asp.net calls service exception:

type : system.servicemodel.security.securitynegotiationexception, system.servicemodel, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089 message : caller not authenticated service.

it seems nt authority\network service not authenticated, not know why.

here config parts:

  <service name="wumte.server.host.edocumentscreationnondual">     <endpoint address="" binding="wshttpbinding" contract="wumte.server.host.iedocumentscreationnondual" bindingconfiguration="largemessagewshttpbinding">       <identity>         <dns value="localhost"/>       </identity>     </endpoint>     <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange"/>   </service>     <wshttpbinding>     <binding name="largemessagewshttpbinding" maxreceivedmessagesize="2147483647">       <readerquotas maxdepth="32" maxstringcontentlength="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647"/>     </binding>           </wshttpbinding> 


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -