Cannot make a call on this channel because a call to Open() is in progress error in CRM 2011.


Hi,

We had developed a Visual Web Part for SharePoint 2013 that used IOrganizationService of CRM 2011. It was all working fine however yesterday it started throwing this error.

After some investigation we realized that the user whose credentials we were using as Client Credentials for the OrganizationService had recently been changed.

Updating it to the correct updated one fixed the issue for us.

Hope it helps.

Disable wsstracing.exe in SharePoint


Hi,

At times we need to disable wsstracing.exe to improve the system’s performance at it uses too much CPU resources.

Open Command Prompt as Administrator

To Disable

  • sc stop “SPTraceV4”
  • sc config “SPTraceV4” start= disabled

To Delete

  • sc delete “SPTraceV4”

bye.

Hide “Personalize this Page” option in SharePoint for all the users.


Hi,

We recently had a requirement to hide the Personalize this Page option from the SharePoint Site for all the users.

The way we can do it is by commenting out the following element in the Welcome.ascx page

(\15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx)

The other option through central administration

http://donalconlon.wordpress.com/2011/04/28/hide-personalize-this-page-option-for-sharepoint-site/

Hope it helps.

Set SelectedDate for DateTimeControl in SharePoint.


While working on a visual web part wherein we were using SharePoint’s DateTimeControl, realized that it was not that straight forward to set the value for the DateTimeControl.

The following post came handy

http://blog.enderspsyche.com/2013/04/setting-datetimecontrol-date-in.html

Hope it helps!

Using JavaScript in custom master page for SharePoint 2013 that uses SP.js.


Hi,

We recently had a requirement to show no of listitems on a particular list on every page within the site. So we decided to use the JavaScript that does so in our custom master page itself.

This is how we got it working

Adding the SharePoint script link that refers to the SP.js file in our custom html master page.

<!–MS:<SharePoint:ScriptLink ID=”ScriptLink21″ Name=”sp.js” runat=”server” OnDemand=”false” LoadAfterUI=”true” Localizable=”false”>–>
<!–ME:</SharePoint:ScriptLink>–>

And then executing our script using the following method i.e. after SP.js is loaded

function GetCount() {

// code that uses CSOM to get the count

}


ExecuteOrDelayUntilScriptLoaded(GetCount, “sp.js”);

Hope it helps.

Object reference not set to an instance of an object. at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaNavigationSettingsPage.OKButton_Click(Object sender, EventArgs e) error in AreaNavigationSettings.aspx page


Hi,

Was getting the above issue while trying to configure navigation for the SharePoint Site. Tried out different solutions mentioned in the following post.

http://phinotworking.com/stubborn-site-navigation-menu-items/

Corrected the JavaScript issue on the page, renamed the id of the div to something else instead of container but that didn’t work. Then through PowerShell script deleted few of the navigation links and again gave it a try. This time it worked properly.


I think the navigation page would have got corrupted or something because of those links and hence deleting those links fixed the issue.

Hope it helps.