Tuesday, April 26, 2011

Open PDF files in browser from SharePoint 2010

By default, SharePoint 2010 doesn't allow you to open the PDF files directly in the browser, Instead it prompts a "Save" Dialog box. This is because of the Web application's general settings. We can open pdf instead save.
open pdf document browser sharepoint 2010

To Make SharePoint 2010 to Open PDF documents in browser: Go to Central Administration >> Application Management >> Select the web application >> and click on "General Settings".

Now in "General Settings" Dialogue box, set the "Browser File Handling" to "Permissive". Now you can open PDF documents in browser from SharePoint 2010.
Lets use PowerShell to instruct SharePoint open PDF not save:
#Get web application 
$WebApp = Get-SPWebApplication "http://sharepoint.crescent.com"
#Set property as Permissive
$WebApp.BrowserFileHandling = "Permissive"
#Update the changes
$WebApp.Update()

BrowserFileHandling at List/Library Level:
In some cases, BrowserFileHandling setting of a list or library may override web application setting. Here is how we can reset:

#Get the Site collection
$site = Get-SPSite("http://sharepoint.crescent.com/sites/Sales")

#Get all webs
foreach ($web in $site.AllWebs) 
  {
    write-host "Processing  $($web.Title)"
   
   #Get all lists
    foreach ($list in $web.Lists) 
      {
          #Check the browserfilehandling setting
           if($list.browserfilehandling -eq "Strict") 
            {
              Write-Host "Changing " $list.Title
              $list.browserfilehandling = "Permissive";
              $list.update();
            }
      }
   }                            

Bother this will open other security holes? use AllowedInLineDownloadedMimeTypes

SharePoint 2010 determines whether to Open the file in browser or not based on the "AllowedInlineDownloadedMimeTypes" type  property of the web application. You can add/remove File types to this property collection to control the behavior.

Get the AllowedInLineDownloadedMimeTypes:
$WebApp = Get-SPWebApplication <web-App-URL>
$WebApp.AllowedInlineDownloadedMimeTypes

Add a File Type to Allowed Inline Downloaded Mime Types:
$WebApp = Get-SPWebApplication <web-App-URL>
$WebApp.AllowedInlineDownloadedMimeTypes.Add("application/pdf" )

#For Flash files, use: 
#$webApp.AllowedInlineDownloadedMimeTypes.Add("application/x-shockwave-flash")
 
$WebApp.Update()

A bit cleaner code would be:
$webApp=Get-SPWebApplication "http://SharePoint.company.com"

If ($webApp.AllowedInlineDownloadedMimeTypes -notcontains "application/pdf")
{
  $webApp.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
  $webApp.Update()
  write-host "PDF File type added"
} 
else 
{
  write-host "PDF File type already exists!"
}

Remove:
$WebApp = Get-SPWebApplication <web-App-URL>
$WebApp.AllowedInlineDownloadedMimeTypes.Remove("application/pdf")
$WebApp.Update()

Found the Remove works only for newly uploaded files after this change.

Open PDF Files in Adobe Reader application Instead of Browser:

We can open PDF in new window (in Adobe Reader's application or any client application which can handle PDF) from SharePoint. By default it opens in browser. In fact, this is based on the client settings. If you want to open PDF documents in Adobe Reader, instead of the same browser window: Open Adobe Reader, Go to: Edit >> Preferences >> Category: Internet >> Uncheck the option "Display PDF in browser ". 

However in latest version this option has been removed! So the remedy is: Disable Adobe reader add-on in browser. Here is how:
Go to Internet Explorer >> Tools >> Manage Add-ons >> Select "Adobe PDF Reader" and disable it! 
Open PDF Files in Adobe Reader Instead of Browser
Now, when you click on any PDF file, they'll be opened in Adobe Reader instead of browser.


You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Sunday, April 24, 2011

Create SharePoint 2007 Site Collection in New Content Database

Create SharePoint Site Collection in a Specific Content Database
Ever wanted to create New Site collection in a particular database or Restore the site collection backup to a specific database?

If Yes, Here is the simple Trick: Increase the Maximum Number of Sites. SharePoint places New Sites in the content database where the [Maximum Number of site - Current Number of Sites] delta is a large number!

In Central admin > Manage Content Database page set these options: For all other existing databases
  • Set the Maximum number of sites = current Number of sites 
  • Warning Level = Maximum number of sites -1
and then Set the Maximum number of sites and Warning Level values to Larger number of your desired database!
Create SharePoint Site Collection in New Content Database
Then you can create or Backup-Delete-Restore your site collections.

Generally SharePoint will place the new site in this particular DB based on the difference between "Current number of Sites" and the "Maximum Number of Sites".

Say for e.g. I had "10" in "Current number of Sites" in all content DB's and 15000 in "Maximum Number of Sites", so I adjusted Maximum Number of Sites & Warning level to - 20000, and the new site I created went and sat into this particular DB.

Alternatively, you can go to Central Administration >> Application Management >> Content Databases and set the existed content databases(Except the one in which sites needs to be created) to “Offline” mode.

Create SharePoint Site Collection in New Content Database

If there is a requirement to create site collection in new or specific content database in SharePoint 2007, here is the stsadm command:

stsadm -o createsiteinnewdb -url http://site-collection-url -owneremail owner@domain.com -ownerlogin domain\owner -sitetemplate sts -title “Information Technology” -databaseserver "SP-DB-SERVER" -databasename “SP2010_IT”

Create site collection in New content database in SharePoint 2010 using PowerShell:

Here is the PowerShell cmdlets to create new site collection in a separate database: http://www.sharepointdiary.com/2013/11/create-site-collection-in-new-specific-database-with-powershell.html 

Microsoft recommendation on content database size is not more than 100Gb for MOSS 2007 and 200 GB for SharePoint 2010, because
  1. It simplifies the backup and restore operations
  2. It provides flexibility on Disaster Recovery strategies.

Don't want any new site collections to be created in a particular DB?
Some times, we may want to limit the number of site collection in a particular DB.  To achieve this, Go to Database settings in Central Admin, Change the Maximum number of site collections settings to be equal to the current number of site collections.


    You might also like:
    SharePoint Usage Reports
    Usage reports, collaboration and audit for SharePoint.
    Document SharePoint Farm
    Automatically generate SharePoint documentation.
    *Sponsored


    Friday, April 22, 2011

    Service Unavailable: HTTP Error 503. The service is unavailable in SharePoint

    Service Unavailable: HTTP Error 503. The service is unavailable error normally occurs whenever the password for application pool identity account is changed or application pools are in stopped state. This error may appear temporarily when you deploy solutions. In my case, I realized that password got changed for the Identity account.
    Its a best practice to set "Password never expire" option for service accounts, BTW!

    Here are the steps to resolve:
    SharePoint Error: Service Unavailable: HTTP Error 503. The service is unavailable in SharePoint  
    If you are Running SharePoint in Windows 2003:
    • Go to Start >> All Programs >> Administrative Tools >> Internet Information Services (IIS) Manager.
    • Locate your App Pool account and right-click on it and select ‘Advanced Settings’.
    • Go to process model then Identity Click on the Identity >> Set and then give the user name, password and confirm password.
    Hope this will work fine after that.

    Here is the Microsoft KEDB: http://support.microsoft.com/kb/823552

    If you are Running SharePoint in Windows 2008:
    • Go to IIS Manager (Start > Administrative Tools > Internet Information Services Manager)
    • Expand the server node, and Click on Application Pools
    • Locate the Application Pool of the SharePoint site, If it is stopped - Start it. If the password is changed, update the password:
      • Click on "Advanced Settings" Setting Application Pool Identity in IIS
      • and then click on ... Button in Identity property
      • Set Application Pool Identity in IIS
      • Enter the User Name and password for the application Pool account.
      • Set Application Pool Account User Name password in IIS 
    It could happen when the App pool's Advanced Property: Enable 32-Bit Applications is set to "True"! It should be false.

    Tail: Application Pool Starting and Stopping? or Application Pools stops after restart? Make sure your application pool account has "Log on as batch job" rights!. This error may occur when necessary services like World Wide Web Publishing service, SharePoint Timer Service is in  stopped state.

    You might also like:
    SharePoint Usage Reports
    Usage reports, collaboration and audit for SharePoint.
    Document SharePoint Farm
    Automatically generate SharePoint documentation.
    *Sponsored


    Saturday, April 16, 2011

    SharePoint URL Shortcuts

    Here is the list of Quick URL Shortcuts to Frequent SharePoint Links:
    • Add web parts to any page: append  ?PageView=Shared&ToolPaneView=2
    • Create New Site Content (List, Library, etc)  /_layouts/create.aspx
    • Create New Site: _layouts/NewsbWeb.aspx
    • List Template Gallery: _catalogs/lt/Forms/AllItems.aspx
    • Master Page Gallery: _catalogs/masterpage/Forms/AllItems.aspx
    • Manage your Alerts  _layouts/SubEdit.aspx 
    • Create New Alert: _layouts/SubChoos.aspx
    • Manage Site Collection Administrators  /_layouts/mngsiteadmin.aspx
    • Manage Sites and Workspaces /_layouts/mngsubwebs.aspx
    • Manage People  /_layouts/people.aspx
    • All People view: /_layouts/people.aspx?MembershipGroupId=0
    • Manage User Permissions /_layouts/user.aspx
    • Modify Navigation  /_layouts/AreaNavigationSettings.aspx
    • Modify Site Navigation: _layouts/SiteNavigationSettings.aspx
    • Recycle Bin /_layouts/AdminRecycleBin.aspx
    • Site Directory _layouts/SiteDirectorySettings.aspx
    • Save Site as Template: _layouts/savetmpl.aspx
    • Site Settings page: _layouts/settings.aspx
    • Create New Web Part Page: _layouts/spcf.aspx
    • Site Template Gallery : _catalogs/wt/Forms/Common.aspx
    • Site Column Gallery  /_layouts/mngfield.aspx
    • Site Content Types /_layouts/mngctype.aspx
    • User Information List /_catalogs/users/simple.aspx
    • Site Content and Structure Manager /_layouts/sitemanager.aspx
    • Site Usage Summary /_layouts/SpUsageWeb.aspx
    • User Alerts  /_layouts/sitesubs.aspx
    • View All Site Content /_layouts/viewlsts.aspx
    • Web Part Gallery: _catalogs/wp/Forms/AllItems.aspx
    • Web part maintenance mode:  append ?contents=1 to the URL of the page
    • Login as another user: /_layouts/closeConnection.aspx?loginasanotheruser=true
    • Open the page in Edit Mode:  In Address bar, Type "javascript:MSOLayout_ToggleLayoutMode();" or "javascript:MSOTlPn_ShowToolPane(’2′);" in the Address bar 



      You might also like:
      SharePoint Usage Reports
      Usage reports, collaboration and audit for SharePoint.
      Document SharePoint Farm
      Automatically generate SharePoint documentation.
      *Sponsored


      Thursday, April 14, 2011

      Introduction to PowerShell

      Check out my Presentation on Introduction to PowerShell


      You might also like:
      SharePoint Usage Reports
      Usage reports, collaboration and audit for SharePoint.
      Document SharePoint Farm
      Automatically generate SharePoint documentation.
      *Sponsored


      Sunday, April 10, 2011

      Managing Features in SharePoint using PowerShell & STSADM

      SharePoint Features are part of deployment unit that typically consists of set of functionality such as customization, application pages, list schema, etc. that can be activated and de-activated at various levels in SharePoint. Features consists of "Feature.xml" file and any other supporting element files.

      Generally Features to be activated or deactivated from SharePoint User Interface. Apart from web interface, Features can be installed/activated/deactivated/uninstalled using STSADM tool, PowerShell, Or Object Model.

      Feature Scope id defined by Scope attribute in feature.xml. They have four possible scopes:
      •     Farm
      •     Web application
      •     Site
      •     Web

      How to install SharePoint feature using stsadm
      stsadm -o installfeature -filename {FeatureFolder}\feature.xml
      Install-SPFeature -Path "FeatureFolder" -Force
      Where the "FeatureFolder" refers to a folder in SharePoint hive (14/15/16).

      To activate SharePoint feature using stsadm
      stsadm –o activatefeature –name <feature-name> –url <URL>

      Where the URL could be:
      • web application URL
      • site collection URL
      • Sub site URL
      Depending on the feature scope.

      To activate a Feature in SharePoint 2010 using PowerShell
      Enable-SPFeature <FeatureFolderName in 14 hive> -Url http://server/site/subsite
      or
      $feature = Get-SPFeature -Identity e819dc7-70fd-41723-2323a

      Enable-SPFeature $feature –Url "http://SharePointSite" -Force

      To Deactivate a SharePoint Feature using Stsadm:
      stsadm –o deactivatefeature –name MyFeatureName –url http://myspwebapp

      $feature = Get-SPFeature -Identity e819dc7-70fd-41723-2323a
      Disable-SPFeature $feature –Url "http://SharePointSite" -Force


      Uninstall SharePoint feature using stsadm
      stsadm -o uninstallfeature -filename {FeatureFolder}\feature.xml
      UnInstall-SPFeature -Path "<feature Folder in 14 hive>"
      or
      $feature = Get-SPFeature -Identity  e819dc7-70fd-41723-2323a
      Uninstall-SPFeature $feature -Force

      Get Feature list (Display List of all installed Features):
      Get-SPFeature –Farm

      Display the features at the web application level:
      Get-SPFeature –WebApplication "SharePoint – 8080"

      To Display All Installed Site Collection Features
      Get-SPFeature –Site "http://SharePointSite"

      To Displaying All Installed Site Features (Feature list using PowerShell)
      Get-SPFeature –Web "http://SharePointSite"

      To Get a Specific Feature:
      $feature = Get-SPFeature -Identity e819dc7-70fd-41723-2323a

      You might also like:
      SharePoint Usage Reports
      Usage reports, collaboration and audit for SharePoint.
      Document SharePoint Farm
      Automatically generate SharePoint documentation.
      *Sponsored


      Friday, April 8, 2011

      Custom Branded Links Section - Using DVWP XSL

      How about having a quick link section with images and links in our SharePoint site? yeah, good idea. How about make it configurable? I mean, quick link titles, links, images manageable by end user.

      Well, at high level idea, what you have to do is:
      1. Create a list with Title, Description, image, etc columns.
      2. Customize the SharePoint data view web part; once done export and import the web part where ever we need.

      Sounds good? yeah, we'll look in to the implementation

      Create a simple list with Title, Description, and image columns: Here is one I've done:
      and i've filled the list with few entries, so now my list is looking like:


      So, our list is ready, we've to customize our list by using Data view web part. Or you can just copy paste the below code, which i took from my customized data view web part, into a text file, name it to xxxx.webpart, and import this web part to your page :-)

      <webParts>
      <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
      <metaData>
      <type name="Microsoft.SharePoint.WebPartPages.DataFormWebPart,
      Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
      </metaData>
      <data>
      <properties>
      <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
      <property name="FireInitialRow" type="bool">True</property>
      <property name="TitleIconImageUrl" type="string" />
      <property name="HelpMode" type="helpmode">Modeless</property>
      <property name="CacheXslStorage" type="bool">True</property>
      <property name="ViewContentTypeId" type="string" />
      <property name="Description" type="string" />
      <property name="DataSourcesString" type="string">&lt;%@ Register TagPrefix="sharepoint"  Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint,
      Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt;&lt;%@
      Register TagPrefix="webpartpages" Namespace="Microsoft.SharePoint.WebPartPages"
      Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral,
      PublicKeyToken=71e9bce111e9429c" %&gt;&lt;sharepoint:SPDataSource runat="server"
      DataSourceMode="List" SelectCommand="&amp;lt;View&amp;gt;&amp;lt;/View&amp;gt;"
      UpdateCommand="" InsertCommand="" DeleteCommand="" UseInternalName="True"
      ID="dataformwebpart2"&gt;&lt;SelectParameters&gt;
      &lt;webpartpages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues"
      DefaultValue="{E01A58C6-C760-4C5B-A3EB-7CD61F94281B}" Name="ListID"&gt;&lt;/webpartpages:DataFormParameter&gt;
       &lt;/SelectParameters&gt;
      &lt;UpdateParameters&gt;
      &lt;webpartpages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues"
      DefaultValue="{E01A58C6-C760-4C5B-A3EB-7CD61F94281B}" Name="ListID"&gt;&lt;/webpartpages:DataFormParameter&gt;
      &lt;/UpdateParameters&gt;
       &lt;InsertParameters&gt;
      &lt;webpartpages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues"
      DefaultValue="{E01A58C6-C760-4C5B-A3EB-7CD61F94281B}" Name="ListID"&gt;&lt;/webpartpages:DataFormParameter&gt;
      &lt;/InsertParameters&gt;
      &lt;DeleteParameters&gt;
      &lt;webpartpages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues"
      DefaultValue="{E01A58C6-C760-4C5B-A3EB-7CD61F94281B}" Name="ListID"&gt;&lt;/webpartpages:DataFormParameter&gt;
      &lt;/DeleteParameters&gt;
      &lt;/sharepoint:SPDataSource&gt;
      </property>
      <property name="AllowZoneChange" type="bool">True</property>
      <property name="ParameterBindings" type="string">
      &lt;ParameterBinding Name="ListID" Location="None" DefaultValue="{E01A58C6-C760-4C5B-A3EB-7CD61F94281B}"/&gt;
      &lt;ParameterBinding Name="dvt_apos" Location="Postback;Connection"/&gt;
      &lt;ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/&gt;
      &lt;ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/&gt;
      </property>
      <property name="PageSize" type="int">-1</property>
      <property name="TitleUrl" type="string" />
      <property name="ViewFlag" type="string">0</property>
      <property name="Xsl" type="string">&lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
      xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0"
      exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
      xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
      xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"&gt;
      &lt;xsl:output method="html" indent="no"/&gt;
      &lt;xsl:decimal-format NaN=""/&gt;
      &lt;xsl:param name="dvt_apos"&gt;'&lt;/xsl:param&gt;
      &lt;xsl:variable name="dvt_1_automode"&gt;0&lt;/xsl:variable&gt;
      &lt;xsl:template match="/"&gt;
      &lt;xsl:call-template name="dvt_1"/&gt;
      &lt;/xsl:template&gt;
      &lt;xsl:template name="dvt_1"&gt;
      &lt;xsl:variable name="dvt_StyleName"&gt;Table&lt;/xsl:variable&gt;
      &lt;xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/&gt;
      &lt;table border="0" width="100%" cellpadding="2" cellspacing="0"
      class="style1"&gt;
      &lt;tr valign="top"&gt;
      &lt;xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1"&gt;
      &lt;th class="ms-vh" width="1%" nowrap="nowrap"&gt;&lt;/th&gt;
      &lt;/xsl:if&gt;
       &lt;/tr&gt;
      &lt;xsl:call-template name="dvt_1.body"&gt;
      &lt;xsl:with-param name="Rows" select="$Rows"/&gt;
      &lt;/xsl:call-template&gt;
      &lt;/table&gt;
      &lt;/xsl:template&gt;
      &lt;xsl:template name="dvt_1.body"&gt;
      &lt;xsl:param name="Rows"/&gt;
      &lt;xsl:for-each select="$Rows"&gt;
      &lt;xsl:call-template name="dvt_1.rowview"/&gt;
      &lt;/xsl:for-each&gt;
      &lt;/xsl:template&gt;
      &lt;xsl:template name="dvt_1.rowview"&gt;
      &lt;tr&gt;
      &lt;xsl:if test="position() mod 2 = 1"&gt;
      &lt;xsl:attribute name="class"&gt;ms-alternating&lt;/xsl:attribute&gt;
      &lt;/xsl:if&gt;
      &lt;xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1"&gt;
      &lt;td class="ms-vb" width="1%" nowrap="nowrap"&gt;
      &lt;span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))"
      ddwrt:ammode="view"&gt;&lt;/span&gt;
      &lt;/td&gt;
      &lt;/xsl:if&gt;
       &lt;td style="width: 10px"&gt;&lt;span style="text-decoration: none;"&gt;
      &lt;a href="Lists/Quick Links/DispForm.aspx?id={@ID}"&gt;&lt;img border="0" src="{substring-before(@Image,
      ', ')}" alt="{substring-after(@Image, ', ')}"/&gt;&lt;/a&gt;&lt;/span&gt;
      &lt;/td&gt;
      &lt;td style="width: 3px"&gt;&lt;/td&gt;
      &lt;td class="ms-vb" valign="top" &gt;
      &lt;a href="Lists/Quick Links/DispForm.aspx?id={@ID}"&gt;&lt;xsl:value-of
      select="@Title" /&gt;&lt;/a&gt;&lt;BR/&gt;
      &lt;xsl:value-of select="@Description"/&gt;
       &lt;/td&gt;
      &lt;/tr&gt;
      &lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</property>
      <property name="NoDefaultStyle" type="string">TRUE</property>
       <property name="Direction" type="direction">NotSet</property>
      <property name="UseSQLDataSourcePaging" type="bool">True</property>
      <property name="ListName" type="string" null="true" />
      <property name="Hidden" type="bool">False</property>
      <property name="DisplayName" type="string" />
      <property name="SampleData" type="string" null="true" />
      <property name="HelpUrl" type="string" />
      <property name="ChromeType" type="chrometype">Default</property>
      <property name="CatalogIconImageUrl" type="string" />
      <property name="Height" type="string" />
      <property name="DataFields" type="string">@Title,Title;@Description,Description;@Image,Image;@ID,ID;@ContentType,Content
      Type;@Modified,Modified;@Created,Created;@Author,Created By;@Editor,Modified
      By;@_UIVersionString,Version;@Attachments,Attachments;@File_x0020_Type,File
      Type;@FileLeafRef,Name (for use in forms);@FileDirRef,Path;@FSObjType,Item
      Type;@_HasCopyDestinations,Has Copy Destinations;@_CopySource,Copy
      Source;@ContentTypeId,Content Type ID;@_ModerationStatus,Approval
      Status;@_UIVersion,UI Version;@Created_x0020_Date,Created;@FileRef,URL
      Path;</property>
      <property name="Default" type="string" />
      <property name="ChromeState" type="chromestate">Normal</property>
      <property name="DataSourceID" type="string" />
      <property name="AllowClose" type="bool">True</property>
      <property name="CacheXslTimeOut" type="int">86400</property>
      <property name="AllowMinimize" type="bool">True</property>
      <property name="AllowEdit" type="bool">True</property>
      <property name="XslLink" type="string" null="true" />
      <property name="Title" type="string">Quick Links</property>
      <property name="Width" type="string" />
      <property name="ShowWithSampleData" type="bool">False</property>
      <property name="ExportMode" type="exportmode">All</property>
      <property name="AllowHide" type="bool">True</property>
      <property name="AllowConnect" type="bool">True</property>
      </properties>
      </data>
      </webPart>
      </webParts>

      Important: You have to change your list ID and list name as in the code higlighed
      and here is what you will get finally!
      Similar way, just by re-arranging the <TD>'s you can design the quick links sections as in the below image.
      


      You might also like:
      SharePoint Usage Reports
      Usage reports, collaboration and audit for SharePoint.
      Document SharePoint Farm
      Automatically generate SharePoint documentation.
      *Sponsored


      This session has exceeded the amount of allowable resources - Infopath form services error

      Apparently, to fix this issue we need to increase the Session state value.
      This session has exceeded the amount of allowable resources - Infopath form services error
      I double checked it by examining event logs and verified it. Event id: 7083 logged multiple times.
      Event id: 7083

       So, the fix is to increase the session state value. Here is how to do that

      Go to Central Administration >> Application Management >> Configure Info Path Form Services (under InfoPath Forms Services) and increase the value accordingly.
      increase session state value
      By default it would be: 4096, in my case I increased it to: 8192, and the error gone away!

      Another error in similar area: 
      users received errors in InfoPath forms, as - Number of form actions, 235, has exceeded 200, the maximum allowable value per request. This value is configurable and can be changed by the administrator.

      and Event ID: 5737 logged multiple times. To fix this issue, increase the Number of actions per postback value.


      You might also like:
      SharePoint Usage Reports
      Usage reports, collaboration and audit for SharePoint.
      Document SharePoint Farm
      Automatically generate SharePoint documentation.
      *Sponsored


      Thursday, April 7, 2011

      HTTP Error 401 - Not Authorized Error in SharePoint site with Kerberos Authentication Enabled

      In a new SharePoint web application, it prompted for user name and password repeatedly

      401 not authorized sharepoint 2010
      and finally resulted in  "Not Authorized - HTTP Error 401. The requested resource requires user authentication" - in the SharePoint site with Kerberos Authentication Enabled.
      sharepoint 401 not authorized

      Here is some more spec: MOSS 2007, Windows 2008, IIS 7.5.

      Solution: With IIS 7.5, kerberos enabled for SharePoint, we must turn OFF the "Kernel Mode Authentication". Here is how:

      1. Open the IIS, Select the authentication feature of the appropriate web application

      sharepoint 2010 kerberos 401 unauthorized
      2. Select the authentication mode which is enabled, click on Advanced settings

      3. Make sure you have unselected the "Kernel Mode Authentication"

      sharepoint kerberos 401 unauthorized4. Do an IISReset

      You might also like:
      SharePoint Usage Reports
      Usage reports, collaboration and audit for SharePoint.
      Document SharePoint Farm
      Automatically generate SharePoint documentation.
      *Sponsored


      You might also like:

      Related Posts Plugin for WordPress, Blogger...