Skip to content

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Some times Server execution may failed and may we get below error:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Server execution failed

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x80080005): Server execution failed

]

System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +378094

System.DirectoryServices.DirectoryEntry.Bind() +36

System.DirectoryServices.DirectoryEntry.get_IsContainer() +31

System.DirectoryServices.ChildEnumerator..ctor(DirectoryEntry container) +26

System.DirectoryServices.DirectoryEntries.GetEnumerator() +25

Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.System.Web.IHttpModule.Init(HttpApplication app) +471

System.Web.HttpApplication.InitModulesCommon() +65

System.Web.HttpApplication.InitModules() +43

System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +729

System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +298

System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107

System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +289

SOLUTION: 

Run “Sharepoint Products and Technologies Configuration Wizard” and  then see.

Advertisements

SharePoint Designer: How to add list/library of one site to another site as a web part with in the site collection.

This is very use full to add a list/library from one site to another site as a web part within the site collection.

1. Add list/library(Un check Allow Management of Content Types check box otherwise you will get error) as a web part on a page.

2. Open that  page in SharePoint Designer and and select design mode and then select the web part.

3. Click Web part on tool bar and then click To Site Gallery  to export web part to site web part gallery.

4. Now the web part is available under Miscellaneous web parts category.

 

SharePoint 2013: Database Schema Version Issue when you try to move site collection from Database to another Database:

Some times you may get Database schema version issue when you try to move site collection one database to another database:
Error Message: “Cannot complete the copy or merge operation because the database schema versions are different.
When you get this issue?

Usually we see this kind of issue after applying updates and creating new content databases, and trying to move a site collection.

Reason could be:
Sometimes you content databases do not get properly upgraded during the installation of a cumulative updates or service packs.
Resolution: Run following command to fix the issue. Best practice is to run this cmdlet on all content databases so that system will let you know if the content database does not need to upgraded.
Upgrade-SPContentDatabase -Identity <<content database name>>

 

Hide SharePoint Root Level site tab under global navigation:

Below is the change(which is in blue color) I made to the master page so it would hide the root level tab from global navigation.

Change this:

<SharePoint:AspMenu

ID=”TopNavigationMenuV4″

Runat=”server”

EnableViewState=”false”

DataSourceID=”topSiteMap”

AccessKey=”<%$Resources:wss,navigation_accesskey%>”

UseSimpleRendering=”true”

UseSeparateCss=”false”

Orientation=”Horizontal”

StaticDisplayLevels=”2″

MaximumDynamicDisplayLevels=”1″

SkipLinkText=””

CssClass=”s4-tn”/>

<SharePoint:DelegateControl runat=”server” ControlId=”TopNavigationDataSource” Id=”topNavigationDelegate”>
<Template_Controls>
<asp:SiteMapDataSource
ShowStartingNode=”False”
SiteMapProvider=”SPNavigationProvider”
id=”topSiteMap”
runat=”server”
StartingNodeUrl=”sid:1002″/>
</Template_Controls>
</SharePoint:DelegateControl>

 

To this:

<SharePoint:AspMenu

ID=”TopNavigationMenuV4″

Runat=”server”

EnableViewState=”false”

DataSourceID=”topSiteMap”

AccessKey=”<%$Resources:wss,navigation_accesskey%>”

UseSimpleRendering=”true”

UseSeparateCss=”false”

Orientation=”Horizontal”

StaticDisplayLevels=”1″

MaximumDynamicDisplayLevels=”0″

SkipLinkText=””

CssClass=”s4-tn”/>

<asp:SiteMapDataSource id=”topSiteMap”
ShowStartingNode=”False”
SiteMapProvider=”CurrentNavSiteMapProvider”
runat=”server”/>

Webhost failed to process a request error message (Event ID: 3)

Try following instructions to solve “Webhost failed to process a request error message”.

  1. Go to the server that contains this error message.
  2. Open IIS (Internet Information Services) Manager
  3. In the Connections panel, navigate to Application Pools
  4. Select the each Application Pool and click “Advanced Settings” from the action panel.
  5. Scroll to ProcessModel section, verify the Identity, and update Identity with SharePoint Farm Account if it is Local account.
  6. Click Ok and Recycle the application pool.
  7. Schedule Recycling if it is not scheduled.

SharePoint Updates Installation

Instructions to install the SharePoint Updates, Patches or Hot Fixes on SharePoint Servers.

  1. Download exe file from Microsoft site.
  2. Take backup of SharePoint farm either using Central Admin or using SQL database backup method.
  3. Stop User Profile Synchronization service as well.
  4. Stop Custom Timer Jobs if exist.
  5. Stop the services in the following order.                                                                                                    Admin Service                                                                                                                                SPTimer                                                                                                                                         Search                                                                                                                                             Search Host Controller
  6. Run exe file and install updates on App Servers and then web servers.
  7. Run Configuration Wizard on Central Admin Server and then the remaining servers.
  8. Start the Services in reverse order                                                                                                             Search Host Controller                                                                                                                 Search                                                                                                                                             SPTimer                                                                                                                                          Admin Service
  9. Start User Profile Synchronization Service.
  10. Start Custom Timer Jobs.
  11. If you get the error “Some Products were not detected on Server <Server Name>” when you run configuration wizard, please run the following command in Windows PowerShell.

psconfig.exe -cmd installcheck -noinstallcheck

Commands for SharePoint Content Databases

Use below commands to get Content Databases size and Data base size for each Site Collection:

Content Databases in Farm

Get-SPDatabase : Sort-Object disksizerequired-desc: Format-Table Name, @(Label = “Size in MB”; eXPRESSION = ($_.disksizerequired/1024/1024))

Database size for each site collection

Get-SPSite -Limit All -ContentDatabase <DatabaseName> :select url, @(label=”Size”;Expression=($_.usage.storage))