Image Renditions in SharePoint 2013

Image Renditions is predefined width and height to use them for images.

For example you can define a rendition call “Thumbnail” with width=70px and height=70px then you can use this in page layout to apply these dimensions on an image.

To use Image Renditions first you have to enable BLOB Cache

You can find this feature in the site settings of publishing site.

After opening the page, it will look like the following image

To use it, edit any page and insert image within the page.

Advertisements

Enable BLOB Cache in SharePoint 2013

Some features of SharePoint 2013 need to enable the BLOB cache in SharePoint 2013 like Image Renditions.

This is easy…

  1. Open the web.config of your SharePoint web application
  2. Search for <BlobCache
  3. You will find the following line<BlobCache location=C:\BlobCache\14
    path=\.(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|themedbmp|themedcss|themedgif|

themedjpg|themedpng|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|m

ov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv|ogg|ogv|oga|webm|xap)$
maxSize=10
enabled=false />

4.   Change the enabled=false to enabled=true

PowerShell Issue after Installing SharePoint 2010 SP1

After installing SharePoint 2010 SP1 on my VM, I opened the PowerShell to execute one Cmdlet.

But L , I got the following error in any CmdLet..

The complete error is:

Install-SPRSServiceProxy : Microsoft SharePoint is not supported with version

4.0.30319.17626 of the Microsoft .Net Runtime.

At line:1 char:1

+ Install-SPRSServiceProxy

+ ~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidData: (Microsoft.Repor…ingServiceProxy:

InstallReportingServiceProxy) [Install-SPRSServiceProxy], PlatformNotSuppo

rtedException

+ FullyQualifiedErrorId : Microsoft.ReportingServices.SharePoint.PowerShel

l.InstallReportingServiceProxy

Solution

Right click on “SharePoint 2010 Management Shell”

After the properties windows opened, you will see the below screen

Add “-version 2” in the Target field

Try now 😉

Report of Installed Features in SQL Server 2008,2012

Actually I need to know which features of my sql server 2012 instance have been installed on.

After a little time of search I found the solution.

Now, go to Tools

This wills generate a report of all installed features…

Destination Path Too Long

One of my friends needs to copy a file to directory in Windows 2008.

But he was unable to do that….. J

 

He got the following message

Destination Path Too Long

After lots of try and using many programs to copy it, he found the solution within the windows itself.

 

Solution

The solution is to use ROBOCOPY tool which is part of windows.

For example to use it:

Robocopy c:\mySource c:\myDest myFile.txt

 

 

For more information about this greate and hidden tool visit it below

 

 

Session state can only be used when enableSessionState is set to true

I have a user control using session module in ASP.NET running on SharePoint 2010.

I configured the all the session settings which are:

  • Http Module

    <httpModules>

        <add name=”Session” type=”System.Web.SessionState.SessionStateModule” />

    </httpModules>

  • Pages directive

<pages enableSessionState=”true” …….

  • Modules

    <modules runAllManagedModulesForAllRequests=”true”>

    <remove name=”AnonymousIdentification” />

    <remove name=”FileAuthorization” />

    <remove name=”Profile” />

    <remove name=”WebDAVModule” />
    <remove name=”Session” />

    <add name=”SPRequestModule” preCondition=”integratedMode” type=”Microsoft.SharePoint.ApplicationRuntime.SPRequestModule, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” />

    <add name=”ScriptModule” preCondition=”integratedMode” type=”System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ />

    <add name=”SharePoint14Module” preCondition=”integratedMode” />

    <add name=”StateServiceModule” type=”Microsoft.Office.Server.Administration.StateModule, Microsoft.Office.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” />

    <add name=”PwaAuthentication” type=”Microsoft.Office.Project.PWA.PwaAuthenticationModule, Microsoft.Office.Project.Server.PWA, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” />

    <add name=”RSRedirectModule” type=”Microsoft.ReportingServices.SharePoint.Soap.RSRedirectModule, RSSharePointSoapProxy, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91″ />

    <add name=”PublishingHttpModule” type=”Microsoft.SharePoint.Publishing.PublishingHttpModule, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” />

    <add name=”Session” type=”System.Web.SessionState.SessionStateModule” preCondition=”” />

    </modules>

Now, the surprise…

I am able to set a value in the session , ex:

Session[“X”] = “my new value”;

But when reading the value, I got the following error:

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.

Solution

Add the following line IN BOLD only

<SharePoint>

<SafeMode MaxControls=”200″ CallStack=”false” DirectFileDependencies=”10″ TotalFileDependencies=”50″ AllowPageLevelTrace=”false”>

<PageParserPaths>

    <PageParserPath VirtualPath=”/*” CompilationMode=”Always” AllowServerSideScript=”true” IncludeSubFolders=”true” />

</PageParserPaths>