Translate

Tuesday, February 10, 2015

SharePoint Designer Performance Issue at the client side

Sometimes i have seen SharePoint performance issue at the client side - this can be due to many reason but you can give a try for below steps at client side and see if this helps you !

1. Close SharePoint Designer.
2. Clear your Internet Explorer's temporary Internet cache and close the browser.
3. Remove content in Folder %System Drive%\Users\%user%\AppData\Local\Microsoft\WebSiteCache).
4. Type %temp% at a run prompt and delete all the temp files in there.
5. Type temp at a run prompt and delete all the temp files in there.
6. Delete %APPDATA%\Microsoft\SharePoint Designer\ProxyAssemblyCache
7. Delete the contents of: %APPDATA%\Microsoft\Web Server Extensions\Cache 

8. Delete contents of %USERPROFILE%\AppData\Roaming\Microsoft\SharePoint Designer

you can also check @ server side - change with your URL

$app = Get-SPWebApplication http://abhi.interest.com
$app.ClientCallableSettings.ExecutionTimeout

Try to increase ClientCallableSettings.ExecutionTimeout values - 

$app.ClientCallableSettings.ExecutionTimeout = 5400000000

$app.Update()

Best of LUCK!

ProcDump v7.01

ProcDump is a command-line utility whose primary purpose is monitoring an application for CPU spikes and generating crash dumps during a spike that an administrator or developer can use to determine the cause of the spike. ProcDump also includes hung window monitoring (using the same definition of a window hang that Windows and Task Manager use), unhandled exception monitoring and can generate dumps based on the values of system performance counters. It also can serve as a general process dump utility that you can embed in other scripts.

Download URL- https://technet.microsoft.com/en-us/sysinternals/dd996900.aspx

Tiny tool and you can run at client side - I was trying to test the this for SPD with the below syntax

1. Put the binary to c:\
2. Open DOS shell 
3. Use this command for SPD - procdump.exe -f "" -e 1 -w spdesign.exe > proc.txt
4. Open SharePoint Designer and open the site
5. Once done - Ctr+C to terminate the dump collection process
6. Open proc.txt and see the result for further analysis

Unable to parse page for field values: The 'mso:CustomDocumentProperties' start tag on line 2 does not match the end tag of


When you have upgraded from SP 2007 to SP 2010 and trying to access customized any .aspx pages you might receive the the below errors - 


1. List does not exist.  The page you selected contains a list that does not exist.  It may have been deleted by another user.

2.w3wp.exe (0x5C30) 0x62A8 SharePoint Foundation Performance btw0 Medium Unable to parse page for field values: The 'mso:CustomDocumentProperties' start tag on line 2 does not match the end tag of 'mso:PSD_x0020_Product_x0020_Mgr'. Line 354, position 7., pageContent = 

3. System.ArgumentException: Value does not fall within the expected range.
Unexpected       System.ArgumentException: Value does not fall within the expected range.    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)     at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback ...   b38ad70a-09d7-420e-b3fc-d91ebbff39d9

You can try the below steps - 

1) Deactivate the features - publishing
2) delete the "Relationships List"
3) Activate the features using PowerShell. It creates the  "Relationships List" again

Or 
you can also try to copy the problematic .aspx page from explorer view and paste at the same location with different name and then browse it.

seems the below tag is automatically updated in copied page and it works -

<mso:_dlc_DocIdItemGuid msdt:dt="string">620c31d7-5d91-40d2-9c60-d08101fcc0d8</mso:_dlc_DocIdItemGuid>

Note - this is in my case so please first check the situation and error and then try these above options.

Thank you !

Thursday, August 21, 2014

PS Script to do the sizing which includes all versions

#-----------------------------------
cls
if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
{
Add-PsSnapin Microsoft.SharePoint.PowerShell
}
$ErrorActionPreference="SilentlyContinue"
Stop-Transcript | out-null
$ErrorActionPreference = "Continue"
Start-Transcript -path C:\outputsize.txt -append
function GetWebSize ($Web)
{
[long]$subtotal = 0
foreach ($folder in $Web.Folders)
{
$subtotal += GetFolderSize -Folder $folder
}
$sitetotal=$subtotal
$SiteInGb = (($sitetotal/1024)/1024)/1024
$SiteInGb = "{0:N4}" -f $SiteInGb
write-host "," $Web.Url "," $SiteInGb ","
write-host "`r`n"
return $subtotal
function GetSubWebSizes ($Web)
{
[long]$subtotal = 0
foreach ($subweb in $Web.GetSubwebsForCurrentUser())
{
[long]$webtotal = 0
foreach ($folder in $subweb.Folders)
{
$webtotal += GetFolderSize -Folder $folder
}
$subsitetotal=$webtotal
$subsiteInGb = (($subsitetotal/1024)/1024)/1024
$subsiteInGb = "{0:N4}" -f $subsiteInGb
write-host "," $subweb.Url "," $subsiteInGb ","
write-host "`r`n"
$subtotal += $webtotal
$subtotal += GetSubWebSizes -Web $subweb
}
return $subtotal
function GetFolderSize ($Folder)
{
[long]$folderSize = 0
foreach ($file in $Folder.Files)
{
if ($file.Versions -ne $NULL -and $file.Versions.Count -gt 1) {
foreach ($version in $file.Versions)
{
$folderSize += $version.Size;
}
}
else {
$folderSize += $file.Length;
}
}
foreach ($fd in $Folder.SubFolders)
{
$folderSize += GetFolderSize -Folder $fd
}
return $folderSize
}

$web = Get-SPWeb $args[0]
[long]$total = 0
$total += GetWebSize -Web $web
$total += GetSubWebSizes -Web $web
$totalInMb = ($total/1024)/1024
$totalInMb = "{0:N4}" -f $totalInMb
$totalInGb = (($total/1024)/1024)/1024
$totalInGb = "{0:N4}" -f $totalInGb
write-host "Total size of all sites below" $StartWeb "is" $total "Bytes,"
write-host "which is" $totalInMb "MB or" $totalInGb "GB"
$web.Dispose()
Stop-Transcript
#--------------------------------------------
To run the above PowerShell - first copy the above code and save in a file with anyname.PS1 and fireup the PowerShell with administrator 
# how to run this script -
c:\>anyname.ps1 http://portal/
OR
c:\>anyname.ps1 http://portal/portal1
OR
c:\>anyname.ps1 http://portal/portal1/portal2


Monday, August 18, 2014

An SPRequest object was not disposed before the end of this thread.

An SPRequest object was not disposed before the end of this thread.  To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it.  Due to flags specified at object creation, this will not be freed until processed by garbage collection.  Allocation Id: {D7B164AB-A421-46AC-80C6-D119DBE511BB}  To determine where this object was allocated, set Microsoft.SharePoint.Administration.SPWebService.ContentService.CollectSPRequestAllocationCallStacks = true.


Solution - Related web application pool stop and start again and it works fine for me :)

Thursday, August 14, 2014

Dissecting the Office Web Apps cache in SharePoint 2010

http://www.wictorwilen.se/Post/Dissecting-the-Office-Web-Apps-cache-in-SharePoint-2010.aspx

http://blogs.catapultsystems.com/IT/archive/2010/08/26/co-authoring-in-sharepoint-2010-explained.aspx

Tuesday, August 12, 2014

Recommended SharePoint Related Tools

Recommended SharePoint Related Tools

http://gallery.technet.microsoft.com/The-SharePoint-Flavored-5b03f323    This link is external to TechNet Wiki. It will open in a new window. , the SharePoint Flavored Weblog Reader (SFWR) helps troubleshooting performance problems by analyzing the IIS log files of SharePoint WFEs.
http://gallery.technet.microsoft.com/PressurePoint-Dragon-for-87572ee1 This link is external to TechNet Wiki. It will open in a new window.  , PressurePoint Dragon for SharePoint 2013 helps executing performance tests.
http://gallery.technet.microsoft.com/Maxer-for-SharePoint-2013-52208636 This link is external to TechNet Wiki. It will open in a new window.  , a tool for checking capacity planning limits.
http://visualstudiogallery.msdn.microsoft.com/36a6eb45-a7b1-47c3-9e85-09f0aef6e879    This link is external to TechNet Wiki. It will open in a new window. , Muse.VSExtensions, a great tool for referencing assemblies located in the GAC.
http://www.quest.com/powergui-freeware/ This link is external to TechNet Wiki. It will open in a new window.  , helps with all your PowerShell development. In a SharePoint environment, there usually will be some.
http://powerguivsx.codeplex.com/ This link is external to TechNet Wiki. It will open in a new window.  , Visual Studio extension based on PowerGUI that adds PowerShell IntelliSense support to Visual Studio.
http://visualstudiogallery.msdn.microsoft.com/4784e790-32f4-455f-9228-53f537c03787 This link is external to TechNet Wiki. It will open in a new window.  , FishBurn Systems provides some sort of CKSDev lite for VS.NET 2012/SharePoint 2013. Very useful.
http://visualstudiogallery.msdn.microsoft.com/6ed4c78f-a23e-49ad-b5fd-369af0c2107f This link is external to TechNet Wiki. It will open in a new window.  , web extensions make creating CSS in VS.NET a lot easier and supports CSS generation for multiple platforms.
http://technet.microsoft.com/en-us/library/cc508851 This link is external to TechNet Wiki. It will open in a new window. , the SharePoint 2010 Administration Toolkit (works on 2013).
http://clumsyleaf.com/products/cloudxplorer This link is external to TechNet Wiki. It will open in a new window.  , a great tool when you've installed your SharePoint farm on Azure.