Monday, June 20, 2011
Sunday, June 12, 2011
SharePoint 2010 - i:0#.w|domain\username issue in User
Hi Friend,
Yesterday When I fetched user name through object model, I am getting user name like i:0#.w|domain\username. Because It is possible in claim based authentication in sharepoint.
To Solve this problem, decode the account name.
using Microsoft.SharePoint.Administration.Claims;SPClaimProviderManager mgr = SPClaimProviderManager.Local;
string
strDecodedLoginName =
""
;
strDecodedLoginName = mgr.DecodeClaim(strLoginName).Value;
Wednesday, June 8, 2011
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.System.Web.Services in sharepoint 2010
Hi Guys,
Today I am connect to SharePoint web service from external machine but I am getting error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.System.Web.Services ".
I searched on Google and found below solution.
//Trust all certificates
System.Net.ServicePointManager.ServerCertificateValidationCallback =
((sender, certificate, chain, sslPolicyErrors) => true);
System.Net.ServicePointManager.ServerCertificateValidationCallback =
((sender, certificate, chain, sslPolicyErrors) => true);
Subscribe to:
Posts (Atom)