Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 23, 2013 01:53 PM by CruzerB
Member
40 Points
53 Posts
Jan 23, 2013 12:06 PM|LINK
i have added a web refernce of Exchange web service and given my credentials. i m able to work with this on localhost ,
while i am running it on server or to any other machine , its giving me an error - "The request failed with HTTP status 401: Unauthorized."
things i have tried but did'nt worked -
1.enable anonymous authenication
2.given folder permission
3. used service.UseDefaultCredentials = true;
please help me out , if there is any other way i can try .
Contributor
5399 Points
1098 Posts
Jan 23, 2013 01:53 PM|LINK
Hi,
I think you were saying that the request fail at connect to the web services. Do you have Binding session in the application config file? I have a sample to resolve the authentication issue by using BasicHttpBinding.
<basicHttpBinding> .
.
. <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> </basicHttpBinding>
sssstud
Member
40 Points
53 Posts
Exchange Webservice The request failed with HTTP status 401: Unauthorized.
Jan 23, 2013 12:06 PM|LINK
i have added a web refernce of Exchange web service and given my credentials. i m able to work with this on localhost ,
while i am running it on server or to any other machine , its giving me an error - "The request failed with HTTP status 401: Unauthorized."
things i have tried but did'nt worked -
1.enable anonymous authenication
2.given folder permission
3. used service.UseDefaultCredentials = true;
please help me out , if there is any other way i can try .
CruzerB
Contributor
5399 Points
1098 Posts
Re: Exchange Webservice The request failed with HTTP status 401: Unauthorized.
Jan 23, 2013 01:53 PM|LINK
Hi,
I think you were saying that the request fail at connect to the web services. Do you have Binding session in the application config file? I have a sample to resolve the authentication issue by using BasicHttpBinding.
<basicHttpBinding>
.
.
.
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
My Technical Blog