Tuesday, July 30, 2013

Event ID 7000 : SharePoint 2010 Administration service failed to start

שלום חברים,

היום התקנתי Comulatvie Update בחווה של הלקוח שלי וכשהרצתי את ה-Configuration Wizard קיבלתי בסוף התהליך Faild. ה-Configuration Wizard לא הצליח להרים בחזרה את ה- SPAdminV4 - SharePoint 2010 Administration Service.

 


ביצעתי את הפעולות הבאות :

 

ערכתי את הערכים הבאים ב- Registry : (אם הם לא קיימים יש להוסיף אותם)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

הוסף/ ערוך את הערך  DWORD ServicesPipeTimeout ל-  60000 (60 seconds)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

 הוסף/ ערוך את הערך  String  WaitToKillServiceTimeout ל-  120000 (120 seconds)

ביצעתי Reset למכונה והרץ מחדש את ה-Configuration Wizard.

 חשוב לבצע Reset לשרת !

הכל עבר בהצלחה.


בהצלחה !

רון נס.


============================================================================================================================================================================================================================================================

Hello Friends,
Today I installed Comulatvie Update on my client's farm and when I ran the Configuration Wizard at the end of the process It Faild. The Configuration Wizard is not able to upload the - SPAdminV4 - SharePoint 2010 Administration Service.


I did the following:

I made the following entries on Registry: (If they do not exist have to add them)
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control
Add / Edit  ServicesPipeTimeout DWORD value to 60000 (60 seconds)
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control
  Add / Edit the value String WaitToKillServiceTimeout to 120000 (120 seconds)

I've reset the machine and re-run the Configuration Wizard.
It is important to restart the server!
Everything was successful.

Good Luck :)
Ron Ness.




Thursday, July 18, 2013

Event ID 6644 : Event manager error: Could not load file or assembly - Remove orphan evet handlers in SharePoint lists

שלום חברים,
הלקוח שלי ביצע מיגרציה לסביבת SharePoint 2010 מ- Moss 2007. לאחר המיגרציה (בוצעה לפני כחצי שנה) הופיע לעיתים קרובות ה-Error הבא ב- Event Log :



זה נובע בעיקר מחוסר ידיעה/תשומת לב לכל ה-DLL הרלוונטים ל- SharePoint(כולל של רכיבים שהוספו לחווה).
המשמעות של השגיאה היא, EventReceiver שהיה מקושר לרשימה לא רץ (לא קיים DLL ב-GAC) .

הפתרון הוא לבטל את הרישום של ה-Event לרשימה.
כתבתי Script ב- PowerShell , הרצתי אותו והבעיה שלי נפתרה.

מצ"ב ה-Script, תהנו :



# Get All SiteCollections
$siteCollection = Get-SPSite
 foreach ($site in $siteCollection)
 {
             <# Unmark the line below if you want to see the siteCollection Path each iteration
                   Write-Host "Site Collection Pathe :  " $site -foregroundcolor green #>
           
            #Check if there is a subsites under the SiteCollecyion if isn't write "The SubSite Doesn't Exist"
            if ($site.AllWebs.count -gt 0)
            {
              foreach($web in $site.AllWebs)
              {
              <# Unmark the line below if you want to see the SubSite Path each iteration
                   Write-Host "SubSite Pathe :  " $web -foregroundcolor Yellow#>

                         foreach ($list in $web.Lists)
                         {         
                              # Colelction of EventReceivers of the list
                               $ev = $list.EventReceivers
                                      
                             # Check if there is an EventReceivers
                               if ($ev.count -gt 0)
                               {
                                   
                       <# Unmark the line below if you want to see the List Name and the number of the EventReceivers
                             Write-Host "List Name :  " $list.Title -foregroundcolor Gray  
                            Write-Host "Number of eventRecivers in List :  " -foregroundcolor Gray -nonewline; Write-Host                             $ev.count -foregroundcolor Blue#>
                                               
                                    # Get the Curent EventReceiver
                                    foreach ($myev in $ev)
                                                {                      
                                     
                                                  if($myev.assembly -eq 'Write here the EventReceiver Assembly')
                                                   {
                                                            Write-Host "Site Collection Pathe :  " $site -foregroundcolor green
                                                            Write-Host "SubSite Pathe :  " $web -foregroundcolor Yellow
                                                            Write-Host "List Name :  " $list.Title -foregroundcolor Gray
                                                            Write-Host $myev.assembly -foregroundcolor cyan
                                                            $myev.delete()
                                                  }        
                                                }
                                       }
                         }
              }
            }
            else
            {
                        Write-Host "Site Collection Pathe :  " $site -foregroundcolor green
                        Write-Host "No SubSites" -foregroundcolor red
            }          
 }


בהצלחה !
רון נס.







============================================================================================================================================================================================================================================================




Hello Friends,
Befor 6 Months ,My client migrate his  Moss 2007 environment to SharePoint 2010 environment. After The Migration some Errors appeared frequently on the Event Log:



This is mainly due to lack of knowledge / attention to the relevant DLLs to SharePoint (including the components were added to the farm).
The Meaning of the error is the EventReceiver was linked to the list but was not running (there is no DLL in the GAC(.

The solution is to unregister the Event from the list.
I wrote a script inPowerShell, ran it, and my problem was solved.

Here is the script, enjoy:

# Get All SiteCollections
$siteCollection = Get-SPSite
 foreach ($site in $siteCollection)
 {
             <# Unmark the line below if you want to see the siteCollection Path each iteration
                   Write-Host "Site Collection Pathe :  " $site -foregroundcolor green #>
           
            #Check if there is a subsites under the SiteCollecyion if isn't write "The SubSite Doesn't Exist"
            if ($site.AllWebs.count -gt 0)
            {
              foreach($web in $site.AllWebs)
              {
              <# Unmark the line below if you want to see the SubSite Path each iteration
                   Write-Host "SubSite Pathe :  " $web -foregroundcolor Yellow#>

                         foreach ($list in $web.Lists)
                         {         
                              # Colelction of EventReceivers of the list
                               $ev = $list.EventReceivers
                                      
                             # Check if there is an EventReceivers
                               if ($ev.count -gt 0)
                               {
                                   
                       <# Unmark the line below if you want to see the List Name and the number of the EventReceivers
                             Write-Host "List Name :  " $list.Title -foregroundcolor Gray  
                            Write-Host "Number of eventRecivers in List :  " -foregroundcolor Gray -nonewline; Write-Host                             $ev.count -foregroundcolor Blue#>
                                               
                                    # Get the Curent EventReceiver
                                    foreach ($myev in $ev)
                                                {                      
                                     
                                                  if($myev.assembly -eq 'Write here the EventReceiver Assembly')
                                                   {
                                                            Write-Host "Site Collection Pathe :  " $site -foregroundcolor green
                                                            Write-Host "SubSite Pathe :  " $web -foregroundcolor Yellow
                                                            Write-Host "List Name :  " $list.Title -foregroundcolor Gray
                                                            Write-Host $myev.assembly -foregroundcolor cyan
                                                            $myev.delete()
                                                  }        
                                                }
                                       }
                         }
              }
            }
            else
            {
                        Write-Host "Site Collection Pathe :  " $site -foregroundcolor green
                        Write-Host "No SubSites" -foregroundcolor red
            }          
 }



 Good Luck :)

Ron Ness.