Showing posts with label DocumentLibrary. Show all posts
Showing posts with label DocumentLibrary. Show all posts

Tuesday, May 22, 2012

Unable to upload flash (.SWF) file to SharePoint Document Library


If you are getting "Access Denied"  message while trying to upload  SWF file to SharePoint (2010), you can remove swf file extensions using commands below.

You need to run these from SharePoint power shell
Get your application
$sa = Get-SPWebApplication http://mysite.mycompany.com

List blocked files
$sa.WebFileExtensions

remove swf file extensions from blocked list
$sa.WebFileExtensions.Remove(“swf”)

update..
$sa.Update

Note: Make sure that you are using url of your windows based site.



Thursday, March 29, 2012

What can I do to stop getting Alerts - SharePoint 2010

Steps to Remove SharePoint 2010 Alerts


go to "My Alerts on this Site"

http://mysharepointsite.com/_layouts/MySubs.aspx

Select and Remove the "Alert" 

What happened to “Alert Me” SharePoint 2010 document library?


There are two different settings you need to check.

1. Central admin / Manage web applications / General Settings / outgoing emails

Make sure you configured this correctly.



2. Central admin / Manage web applications / General Settings / General Settings

Make sure “Alerts” are turned “On”

Monday, January 9, 2012

SharePoint : Broken PDF file icon, Search not indexing pdf documents

Issue 1 : PDF file icon is missing in SharePoint server. SharePoint UI shown broken image URL.
Issue 2: SharePoint Search is not indexing PDF document.


Solution :
                Install PDF  iFilter  from 


Please see the original article  from MSDN http://support.microsoft.com/kb/2293357


Configure Adobe iFilter based on steps mentioned below: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025


  • Install PDF iFilter 9.0 (64 bit) from  http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
  • Download PDF icon picture from Adobe web site http://www.adobe.com/misc/linking.html  and copy to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\ 
  • Add the following entry in docIcon.xml file, which can be found at: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML
  • Add pdf file type on the File Type page under Search Service Application
  • Open regedit
  • Navigate to the following location:
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\ContentIndexCommon\Filters\Extension
  • Right-click > Click New > Key to create a new key for .pdf
  • Add the following GUID in the default value {E8978DA6-047F-4E3D-9C78-CDBE46041603}
  • Restart the SharePoint Server Search 14
    • net stop osearch14
    • net start osearch14
  • Reboot the SharePoint servers in Farm
  • Perform FULL Crawl to get search result.
Once the crawl is completed we will get search results and pdf icon


Wednesday, December 28, 2011

SharePoint 2010 : “The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again”



When you try to update or delete an List/Documentlibrary item you may get the following error

“The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again”

This one was driving me nuts for a while as the error description is not very helpful (as usual). 
This is because the "user" doesn't have enough permissions.

One way to handle this is to temporarily allow unsafe update on the web before updating/deleting the List/Documentlibrary item (if you can't grant additional permissions to the "user")

See code below

web.AllowUnsafeUpdates = true;

item.Delete();

web.AllowUnsafeUpdates = false;


Note : If this helped you, please add a comment and share the link as it will motivate me to post more solutions like this.