SharePoint Stuff



Posts Tagged ‘Sharepoint 2010’

SharePoint 2010 Word App Viewer unable to view documents but you can edit

Written by Luke Smith. Posted in Microsoft

Error
=====

When viewing a word document the following error is raised:

“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: 15558a20-9f79-4f12-854a-4f360c23be76, 20121022161646”

Fix
===
$e = Get-SPServiceApplication | where {$_.TypeName.Equals("Word Viewing Service Application")}
$e.WordServerIsSandboxed = $false
$e.WordServerIsSandboxed

Browsed to server’s “c:windowssystem32inetsrvconfigapplicationHost.config” and added the following line below in the end of the dynamicTypes.

note we are using the value TypeName not the name of the Service Application – this doesn’t need changing

It is also worth confirming that the Web Application Pool account for PowerPoint has DBOwner assigned to the content databases in SQL you wish to view and edit PowerPoint Presentations.

$OffWASvcPoolIdentity="DOMAINWordAP";
Get-SPWebApplication|%{ $_.GrantAccessToProcessIdentity($OffWASvcPoolIdentity);}

 

SharePoint 2010 PowerPoint Web Application unable to edit or view documents

Written by Luke Smith. Posted in Microsoft

Error

When Viewing a PowerPoint Presentation you receive:

“PowerPoint Web App encountered an error. Please try again.”
 
When editing a PowerPoint Presentation you receive:
 
“PowerPoint Web App cannot display some of the text, images, or objects on slides in this presentation because they are corrupted.”
 
 
Fix
==
 
Execute the following on the SharePoint CA Server using SharePoint 2010 Powershell
 
Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedViewing $false
Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedEditing $false
 
It is also worth confirming that the Web Application Pool account for PowerPoint has DBOwner assigned to the content databases in SQL you wish to view and edit PowerPoint Presentations.
 
$OffWASvcPoolIdentity=”DOMAINPowrAP”;
Get-SPWebApplication|%{$_.GrantAccessToProcessIdentity($OffWASvcPoolIdentity);}
 
 

SharePoint 2010 AutoSPInstaller Manage Account creation error

Written by Luke Smith. Posted in Microsoft

Error

Command cannot be executed due to the error: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
At G:DeploymentSP2010AutoSPInstallerAutoSPInstallerFunctions.ps1:1012 char:
18
+ Start-Process <<<< -FilePath "$env:SYSTEMROOTSystem32cmd.e
xe" -ArgumentList "/C" -LoadUserProfile -NoNewWindow -Credential $credAccount
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOp
erationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.C
ommands.StartProcessCommand.
WARNING: - Could not create local user profile for XXXXXXXXXXXXXX

Resolution

 Log on to the computer as Administrator, or log on as a user who has administrative permissions.

  1. Right-click the My Computer icon, and then click Manage.
  2. In Computer Management, expand the Services and Applications node, and then click Services.
  3. In the details pane, right-click the Secondary Logon service, and then click Properties.
  4. In the Properties dialog box, set Startup type to Automatic, and then click Start.
  5. After the computer starts the service, click OK to close the Properties dialog box, and then close Computer Management.