Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

I created a WCF service( for encrypting and decrypting the details )which will connect to a CRM system but some how I am getting this error.
The remote server returned an error: (401) Unauthorized.
Please can any one help me.
In IIS I have Anonymous access: Enabled .
Still not working.

Thanks

Suman
Posted
Updated 6-Aug-14 4:24am
v3
Comments
Herman<T>.Instance 6-Aug-14 10:45am    
maybe you need integrated security in IIS
Ink0gnit0 6-Aug-14 16:24pm    
Or configure in app.config section . May this article will help you: http://www.codeproject.com/Articles/36289/steps-to-enable-windows-authentication-on-WCF-Ba
j snooze 6-Aug-14 16:42pm    
We don't have much to go on, and that error can mean many things if you are not forcing authentication on the service. How are you trying to access the service? Through jquery/javascript? Code behind? alot has to do with your web.config setup.
KaushalJB 7-Aug-14 1:48am    
Are you accessing the wcf service from remote server. Write Inbound rules in Firewall that will allow the accessing of your service.
babli3 7-Aug-14 4:45am    
Hi Thanks for the reply
Yes I am accessing the web service remotely.
Can you please post me sone examples to write firewall rules as I am new to WCF.
Thank You

1 solution

This link may help you to write Inbound Rules

Creating an Inbound Custom Allow Rule for Windows Firewall
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900