Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

WCF Error :- The HTTP request was forbidden with client authentication scheme 'Anonymous'.

$
0
0

Hi I have hosted a WCF Service on my Server it's give me Error 

The HTTP request was forbidden with client authentication scheme 'Anonymous'.

at my localhost everything is working fine. Even if i call hosted service from "Firefox Http Requester"  it's work fine. give me proper  output.

only give me error when i try to call same from other WCF Service using in ASP.net VB.
my code to call that service are bellow 

 Using WCG As New WebChannelFactory(Of IDAS)(binding, New Uri(sWCFPath))
       Dim channel As IDAS = WCG.CreateChannel()
       Using Scope As New OperationContextScope(TryCast(channel, IContextChannel))
             WebOperationContext.Current.OutgoingRequest.Accept = "application/json"
             WebOperationContext.Current.OutgoingRequest.ContentType = "application/json"Dim DsJSON As String = WebResponseStream(channel.GetDataSet(Query, con.ConnectionString))
       End Using
  End Using

Please help me out. Thanks in advanced.


Viewing all articles
Browse latest Browse all 1881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>