Windows Platform FIPS validated cryptographic algorithms Errors in Sharepoint

 Computer, Sharepoint, Software  Comments Off on Windows Platform FIPS validated cryptographic algorithms Errors in Sharepoint
Oct 112011

In using Dashboard Designer, I was having problems with the drop-downs for databases and tables when creating datasources. Using ULS Viewer and the Windows Application Event Viewer I was noticing a lot of errors referencing; this implementation is not part of the windows platform fips validated cryptographic algorithms.

On the DD front end the error message was; The data source cannot be used because PerformancePoint Services is not configured correctly. Additional details have been logged for your administrator.

I did have Performance Point configured with an Unattended Service Account and the Secure Store Service was running as well.

The Sharepoint Health Analyzer also complained that The Security Token Service is not available.

The solution: check your registry for HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsafipsalgorithmpolicy.
Set the registry subkey to 0.

I’m not sure this was actually related but I also saw the Sharepoint Health Analyzer complaining that The Security Token Service is not available.
I simply re-provisioned it from Powershell.

$sts = get-spserviceapplication -identity {id of sts}
(Should return with “Online”)

This seemed to work for me.

Displaying PDFs in the browser from Sharepoint 2010

 Computer, Sharepoint, Software  Comments Off on Displaying PDFs in the browser from Sharepoint 2010
Oct 052011

If you have a default SharePoint 2010 setup you would notice that when you go to open a PDF file SharePoint prompts you to save it rather than opening.

The cause of this behavior is SharePoint 2010 Browser File Handling. This property is on SharePoint Web Application level and its value determines how files are treated in the browser. “Strict” specifies that MIME content types which are not listed in “AllowedInlineDownloadedMimeTypes” are forced to be downloaded. “Permissive” specifies that the HTML and other content types which might contain script are allowed to be displayed directly in the browser.

“AllowedInlineDownloadedMimeTypes” is a collection of MIME types. This list of MIME types does not contain MIME type of Pdf documents by default. It is important to understand that by adding Pdf MIME type to IIS settings you will not solve this issue.

Solution Part 1:
The solution is to change Browser File Handling property on Web Application level. For that you need to be a Farm Administrator. Steps to change Browser File Handling property:
Go to SharePoint 2010 Central Administration > Application Management > Manage Web Applications
Select the row of your web application
Click General Settings in the ribbon
Scroll down to Browser File Handling and select Permissive
Click Ok

Solution Part 2:
You may still get prompted to open PDFs with the Client Application. Adding the MIME type will allow you to open the PDF in the browser.
Here is a Powershell script to affect this.

$mimetypes = “application/pdf”,
$webApp = Get-SPWebApplication http://portal

foreach($mime in $mimetypes)
If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains $mime)
Write-Host -ForegroundColor White “Adding MIME Type “$mime
Write-Host -ForegroundColor Green “MIME Type added and saved.”
Write-Host -ForegroundColor Yellow $mime” MIME type is already added.”
After executing this script, you have to restart your IIS in order this setting to get active: iisreset /noforce.