Farm Account Issue, Sometimes Sharepoint is installed with some account and is configured with some other account. Then Just go to Security --> Configure Service Accounts --> Update Farm Account
November 30, 2011
November 18, 2011
Linq
IEnumerable Way
var results = SPContext.Current.Web.Lists["Some List"].Items.Cast
foreach(SPListItem item in results)
{
//logic
}
Ling Way
List
foreach(SPListItem item in results)
{
//logic
}
November 15, 2011
November 11, 2011
Powershell SPSiteDataQuery Debug
clear
$site = Get-SPSite -Identity http://url
$q = New-Object -TypeName microsoft.SharePoint.SPSiteDataQuery
$q.Lists = "<Lists BaseType='1'/>"
$q.ViewFields = "<FieldRef Name='FieldInternalName'/>"
$q.Query = "<Where><Eq><FieldRef Name='FieldInternalName'/><Value Type='Text'>2011-0077</Value></Eq></Where>"
$q.Webs = "<Webs Scope='SiteCollection'/>"
echo $site.RootWeb.GetSiteData($q).Rows.Count
November 10, 2011
SharePoint 2010 Loopback
http://support.microsoft.com/kb/896861
Method #1 BackConnectionHostNames
To set the DisableLoopbackCheck registry key, follow these steps:Also, make sure you have entry in AAM and Host file.
Method #1 BackConnectionHostNames
- Click Start, click Run, type regedit, and then click OK.
- In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 - Right-click MSV1_0, point to New, and then click Multi-String Value.
- Type BackConnectionHostNames, and then press ENTER.
- Right-click BackConnectionHostNames, and then click Modify.
- In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK.
- Quit Registry Editor, and then restart the IISAdmin service
Method 2: Disable the loopback check (less-recommended method)
The second method is to disable the loopback check by setting the DisableLoopbackCheck registry key.To set the DisableLoopbackCheck registry key, follow these steps:
- Set theDisableStrictNameCheckingregistry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:281308 Connecting to SMB share on a Windows 2000-based computer or a Windows Server 2003-based computer may not work with an alias name
- Click Start, click Run, type regedit, and then click OK.
- In Registry Editor, locate and then click the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
- Right-click Lsa, point to New, and then click DWORD Value.
- Type DisableLoopbackCheck, and then press ENTER.
- Right-click DisableLoopbackCheck, and then click Modify.
- In the Value data box, type 1, and then click OK.
- Quit Registry Editor, and then restart your computer.
Subscribe to:
Posts (Atom)
SonarQube with Jenkins Setup using Docker Images
https://funnelgarden.com/sonarqube-jenkins-docker/ https://medium.com/@hakdogan/an-end-to-end-tutorial-to-continuous-integration-and-con...
-
clear $site = Get-SPSite -Identity http://url $q = New-Object -TypeName microsoft.SharePoint.SPSiteDataQuery $q.Lists = "<List...
-
http://sharepointmagazine.net/articles/creating-documents-with-sharepoint-designer-2010-workflows Issue#1 : The workflow could not cr...
-
The competitive examination for the Indian Forest Service is conducted by Union Public Service Commission (UPSC). IFS exam is conducted ann...