Alexander Anikin's blog

My personal blog

Archive for the ‘Sharepoint’ Category

Extranet Collaboration Manager 2010

leave a comment »

Really cool stuff to connect extranet users:


Written by Alex Anikin

August 8, 2012 at 9:17 am

Posted in Sharepoint

PowerPoint Web Application encountered an error: Service unavailable. Please try again later.

leave a comment »

That’s funny, but PowerPoint stop working today without any visible reasons. Error message about service anavailable

I tryed to get into PowerPoint Service Application, but System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

and this in log:

1: “Could not find default ServiceProxy or it does not implement IWacServiceApplicationProxy”

2: “Unhandled exception caught when executing web method handler: System.NullReferenceException”

First of all – re-create PowerPoint Service Application. Problem with given key is gone.

Investigation… Something wrong with the PowerPoint application proxy. This solution using UI did’t work for me and  . It was not hooked up to the default proxy group, but admin pages said different. (Thanks to Dale Hirt)

Get-SPPowerPointServiceApplicationProxy | Remove-SPPowerPointServiceApplicationProxy -confirm

Add new one w-AddToDefaultGroup switch:

Get-SPPowerPointServiceApplication | New-SPPowerPointServiceApplicationProxy -Name “PowerPoint Proxy” -AddToDefaultGroup



Written by Alex Anikin

May 12, 2012 at 10:11 pm

Error Accessing SharePoint Document Library from Microsoft Office Open or Save As Dialog

leave a comment »

We got this issue from Windows Server 2008 from Citrix users. They tried to open or save document directly to SharePoint, but a dialog couldn’t browse into needed folder. And this works fine from Windows Server 2003.

Our server was in Trusted Sites with automatic login. The main problem was in WebDav client – it don’t get and use any browser sertting (so do nothing with Trusted Sites and so…)

Resolution for Windows Server 2008:

1. Need to install Desktop Experience with WebDav client and reboot server. (There was issues with Citrix after installation – need more investigation about.)

2. At AppServer need to add multiple-string key AuthForwardServerList to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters] and add all SP host-headers (like https://*


Written by Alex Anikin

February 13, 2012 at 2:05 pm

Using .Net Framework 4 in PowerShell

leave a comment »

I need use 4 in one of my projects. This because some strong differencies in working with WebRequest. The main thing – in version 3.5 WebRequest don’t want support NTLM authentication scheme.  May be it was my fault, but when i chaged version to 4 my code worked fine.

Project needs – use my code from PowerShell, but it gets me this:

Add-PSSnapin : Cannot load Windows PowerShell snap-in NTLMSnapIn because of the following error: Could not load file or  assembly ‘file:///C:\Users\aanikin\Documents\Visual Studio 2010\Projects\NTLMTest\NTLM.Powershell\bin\Debug\NTLM.Power shell.dll’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

This is not a big problem – solution :

reg add hklm\software\microsoft\.netframework /v OnlyUseLatestCLR /t REG_DWORD /d 1

reg add hklm\software\wow6432node\microsoft\.netframework /v OnlyUseLatestCLR /t REG_DWORD /d 1

But this was not the end – this experiments was on my SharePoint Server and this registry keys crashed it (CS1703 error about mscorlib, errro 500 in Central Administration). So OnlyUseLatestCLR key will crash SharePoint. Solution:

reg add hklm\software\microsoft\.netframework /v OnlyUseLatestCLR /t REG_DWORD /d 0

reg add hklm\software\wow6432node\microsoft\.netframework /v OnlyUseLatestCLR /t REG_DWORD /d 0

or just delete this key from Registry.

Written by Alex Anikin

January 24, 2012 at 1:36 pm

Sharepoint 2010 Error Opening Root Site Page

with 2 comments

We got strange error after installing SP1 for SharePoint 2010.

When opening root site page we got an error “Server error in ‘/’ application”.

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:
[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties() +134
Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs() +44
Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext) +329

Fast, and may be not correct, solution is delete User Profile Service Application and restart IIS (iisreset).

I’ll ckeck solution with re-creation this service and update this post then….

Written by Alex Anikin

November 6, 2011 at 7:26 am

Strange Office Web in Word Vieving Service Error after SP1 install

leave a comment »

In Central Administration at Services On Server we have Word Viewing Service stopped.

When we try to start it – we get this (the main is highlighted):

Adding binding ‘*:32843:’ for protocol ‘http’. 8dce029c-949a-495f-9c87-fae7133d906a
08/10/2011 09:45:37.55  w3wp.exe (0x1608)                        0x11FC SharePoint Foundation          Topology                       bmu2 High     Adding secure binding ‘*:32844:’ with SSL certificate ‘FindBySubjectDistinguishedName:CN=SharePoint Services, OU=SharePoint, O=Microsoft, C=US’ in store ‘SharePoint’. 8dce029c-949a-495f-9c87-fae7133d906a
08/10/2011 09:45:37.55  w3wp.exe (0x1608)                        0x11FC SharePoint Foundation          Topology                       bmu3 High     Adding binding ‘32845:*’ for protocol ‘net.tcp’. 8dce029c-949a-495f-9c87-fae7133d906a
08/10/2011 09:45:37.55  w3wp.exe (0x1608)                        0x11FC SharePoint Foundation          Topology                       bmu3 High     Adding binding ‘*’ for protocol ‘net.pipe’. 8dce029c-949a-495f-9c87-fae7133d906a
08/10/2011 09:45:38.07  w3wp.exe (0x1608)                        0x11FC SharePoint Foundation          Topology                       fx74 High     An exception occured while committing IIS configuration changes: A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520) 8dce029c-949a-495f-9c87-fae7133d906a
08/10/2011 09:45:39.10  w3wp.exe (0x1608)                        0x11FC SharePoint Foundation          Topology                       bmu3 High     Adding binding ‘*:32843:’ for protocol ‘http’. 8dce029c-949a-495f-9c87-fae7133d906a
08/10/2011 09:45:39.10  w3wp.exe (0x1608)                        0x11FC SharePoint Foundation          Topology                       bmu2 High     Adding secure binding ‘*:32844:’ with SSL certificate ‘FindBySubjectDistinguishedName:CN=SharePoint Services, OU=SharePoint, O=Microsoft, C=US’ in store ‘SharePoint’. 8dce029c-949a-495f-9c87-fae7133d906a
08/10/2011 09:45:39.10  w3wp.exe (0x1608)                        0x11FC SharePoint Foundation          Topology                       bmu3 High     Adding binding ‘32845:*’ for protocol ‘net.tcp’. 8dce029c-949a-495f-9c87-fae7133d906a
08/10/2011 09:45:39.10  w3wp.exe (0x1608)

Investigation – something wrong with Sharepoint Service certificate. And it can’t be assigned.

Resolution in this article:

I use SPServiceHostCertificate_Example and change $names = “Sharepoint Services”, “” and $env:PSModulePath to folder with files. As I can see – we recreate certificates and assign the new one to services. Word Viewing Service is started for me now. Fuff…

Written by Alex Anikin

August 10, 2011 at 4:14 pm

Word and PowerPoint File Open in Browser Error

with one comment

Sometimes we get an error in Office Web Application like this:

Word Web App cannot open this document for viewing because of an unexpected error. To view this document, open it in Microsoft Word.
Error Id: e526e7cf-f17a-48ee-85ee-916c593e0569, 20110415162644

What we can see in logs? Surprise!

DownloadManager: Exception thrown downloading file \\fs001\Anikin, Alexander\Agency contract.docx: System.UnauthorizedAccessException: Access to the path ‘C:\Windows\TEMP\waccache\30091891-f580-40fb-a151-9ff2114df390\DEV_ow_services\e7c940c5-2bc8-471b-b63d-37507944b53a\’ is denied.

Sharepoint Services Pool (OWA workrs under) account can’t write into the Temp\waccache folder any more.

I’be found this, but solution 1 don’t work for me. I add permissions for this folder to my accounts and it works!

I don’t know why it happens. Conversion service use this folder for temp files, but it start creating folders without needed permissions.

Written by Alex Anikin

April 16, 2011 at 10:49 am