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);
Tuesday, May 31, 2011
SMTP Detail From Central Administration
Hi Friends,
You will get SMTP configuration detail from central admin which is useful in webpart or workflow for email trigger.
using Microsoft.SharePoint.Administration;
You will get SMTP configuration detail from central admin which is useful in webpart or workflow for email trigger.
using Microsoft.SharePoint.Administration;
string smtpServer = SPAdministrationWebApplication.Local.OutboundMailServiceInstance.Server.Address;
string smtpFrom = SPAdministrationWebApplication.Local.OutboundMailSenderAddress;
string smtpFrom = SPAdministrationWebApplication.Local.OutboundMailSenderAddress;
Friday, March 25, 2011
Custom workflow action appearing in action list but not showing Workflow UI
I created for SharePoint Designer 2010 in Visual Studio 2010. My custom action appears in Designer in the action list just like it's supposed to, but when I click on it it does not appear in the workflow. I don't get any error messages throughout the development process, and Designer seems to have no trouble with knowing the action is there and there is an assembly associated with it.
Solution :
I have checked application web.config file and found that <authorizedType Assembly="DocToPDFActivity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2478de059b6051f4" Namespace="DocToPDFActivity" TypeName="*" Authorized="True" /> is configure in it.
So Just i have added it and reset IIS.
After I have checked Workflow action UI and it appears.
Cheers.
Friday, March 4, 2011
Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site. Error occurs while deploying SharePoint solut
In Visual Studio 2010 while deploying SharePoint solutions, sometime we see this error
“Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.”
This is because we forgot to mention the Site URL where we are going to deploy this solution. After specifying site URL, deployment went well.

Site URL will be your SharePoint site i.e. http://MOSS:2000.
“Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.”
This is because we forgot to mention the Site URL where we are going to deploy this solution. After specifying site URL, deployment went well.
Site URL will be your SharePoint site i.e. http://MOSS:2000.
Subscribe to:
Posts (Atom)

