Month: January 2012

Today Microsoft released a new technical preview containing a small chm file with more information concerning the SharePoint vNext.
You can download the SDK from here, note that is not final and can be updated or changed…

SPLanguageSettings:Represents set of language preferences. The SPLanguageSettings object can be accessed via the SPUser object to return user’s language preference.

Microsoft.SharePoint.SPListDataValidationException.SPFailure
Describes a specific validation failure when a list item is inserted or updated.

Microsoft.SharePoint.IdentityModel.OAuth2.SPOAuth2BearerCredentialsFacebook Platform uses the OAuth 2.0 protocol for authentication and authorization, just like the Google API, Foursquare and Yammer…
But I’m sure more external systems are available and support this protocol…

Microsoft.SharePoint.WebControls.SPPageContentManager
Manages all the resource content that may be registered on a SharePoint page, including script files, inline scripts, style files, inline styles, and hidden input fields. Spweb ensures that the content can be either appropriately placed on a fully-rendered HTML page or correctly transmitted to a browser in the case of a partial page load.

Share this:

SharePoint 2010 High Availability & Disaster Recovery

Do you know what it takes to have your precious SharePoint environment up at all times?

In this session we’ll explore the ins and outs of HA & DR. What’s the difference between them? What requirements do you have to gather in order to architect a solution? What works and what doesn’t? What conditions have to be met? What technologies are involved?

We won’t cover every solution under the sun but try to give you a decent overview of the landscape.

How to Track Your Project Resources by Using SharePoint BI and MS Project Server

How do you create and use a project dashboard to track people and projects? Let us show you how by using the BI features from SharePoint 2010 on top of Project Server 2010 data.

We will use the different tools that are available within SharePoint 2010 and suggest which tool you use for which purpose. It will be a mix of slides and demo’s.

After this session you will have a good overview of the SharePoint BI world, demonstrated with project server data but off course it can be any data.

Share this:

Visual Studio 11 Developer Preview is available for you to download for free.

I took the liberty to download it and install it on a new cloudshare environment server and explored the newest version. While doing so I took some screenshots to share with you..

They seem very promising!

the installation took some time, but I received not a single error or warning message during the process.

The package interface has been updated, the 3 tabs design, advanced and manifest are located at the top of the form.

The content type designer allows you to select and order the site columns that are available, the grid view has smart intellisense so it filters the available fields based on what you’ve provided in the textbox.

The package option has been switched to an new publish option.

With this dialog you can decide if you want to publish your sandboxed solution to a SharePoint (online) environment or a specific folder, what in my opinion means you are packaging the solution into a single wsp file.

Caching

In my opinion on of the most important tools in a performance improver toolbox is the proper use of caching.

Caching is a technique that allows us to store a specific result in memory. This allows us to retrieve the same information very quickly from memory as soon as it is retrieved from the first time. A huge performance improvement can be archived when the application doesn’t have to access the ‘slow"’’ web service or calculation each time an end users performs an action. There is however a very important downside with caching that could have a huge impact on your application. As soon as you cache a certain result, it is not ‘up-to-date’ anymore.

Browser caching

Browser caching is always available but the browser needs direction on what files are the same and what files need to be retrieved from the site again. The files are stored in a specific folder in your OS. For Internet Explorer, these hidden files are stored in: C:\Users\<username>\AppData\Local\Microsoft\Windows\Temporary Internet Files\

When the browser performs the request to the website, normally it receives a 200 OK response code and the Last-Modified value in the header will be used by the browser in order to decide if a new version of the file needs to be retrieved from the specific website.

When the site returns instead of a 200 OK response code a 304 not-modified response, it means that the file in the browser cache can be reused.

A variety of cache related headers are superior to the Last-Modified header because they can do more than merely provide a clue about the version of a resource… Expires Header can be used to specify static content like images to ‘never expire’, but for dynamic content it is better to make use of the Cache-Control Header like ‘Expires: Fri, 20 Jan 2012 01:00:00 GMT’ or ‘max-age=28800’. This latest example states that the object is stale after 8 hours in the browser cache.

How does this affect my SharePoint solution? Well SharePoint sets these Cache-Control headers for us, the following table explains what values are set.

style library has the value private,max-age=0, this means do not cache _layouts folder has the value max-age=31536000, this means cache 1 year

Blob caching

Blob caching is a setting you enable in the web.config file of your web application. As soon as this configuration option is enabled it modifies the max-age value to the max-age attribute of each file with the extension described in the configuration element.

ASP.NET Session State

ASP.NET Session state provides a place to store values that will persist across page requests. Values stored in Session are stored on the server and will remain in memory until they are explicitly removed or until the Session expires.

The combination of using ASP.NET Session State with a SQL server to store the data in is a perfect scenario whenever you are working in a farm with multiple WFE’s and you want to store data in the Session object of the Page and don’t have to worry about the load balancer.

More details concerning the SharePoint 2010 Session State Service can be found here:

Page output cache profiles caching

Publishing feature infrastructure and publishing feature are required on your site collection

The page output cache stores the rendered output of a page. It also stores different versions of the cached page, based on the permissions of the users who are requesting the page. Page output cache settings can be configured at the site collection level, at the site level, and for page layouts. By default, the page output cache is turned off.

Object cache

Publishing feature infrastructure and publishing feature are required on your site collection

In SharePoint Server 2010 you’ve got the option to use Object Caching, this technology allows us to cache specific page items. This is very useful while using Cross-List data queries.

Working with large lists , Resource Throttling

A new feature in SharePoint Server 2010, resource throttling provides options for monitoring and throttling server resources and large lists for Web applications. This enables you to control resource utilization during peak usage and prevent user activity from negatively affecting server performance.

Track bottlenecks while using the SharePoint Developer Dashboard ?

As SharePoint developers we aren’t only responsible for creating the functionality that is required, but we are also responsible for the overall quality of the solution we build. This means an ergonomic fluent user interface, code that is suitable for changes and in my opinion one of the most important aspects, a good performance. Most of these topics are described in white papers, best practices and millions of books and blog posts… but wouldn’t it be a pleasure if it was already in the platform? Yes, indeed!

SPMonitoredScope

That is why the SharePoint team provided us with the developer dashboard and the SPMonitoredScope class! I’ve already written a blog post concerning the how and the what of the developer dashboard here: http://bit.ly/yKmBSR

Custom master page

When you are using a custom master page and not the out-of-the-box v4 master page the controls that are rendering the dashboard aren’t available. But it is allowed to provide these controls in your custom master page in order to benefit from the functionality it contains. Remember to specify the SharePoint webcontrols assembly in order to use the DeveloperDashboardLauncher and the DeveloperDashboard controls. In combination with the SPSecurityTrimmedControl you can enable this control only for members of a specific SharePoint group.

Most times the branding is not the default css, so when you open the develop dashboard the formatting is not as readable as you would want to.
Add these CSS classes to your css file in order to format the developer dashboard.

Share this:

Nopcommerce is a very popular (23642 downloads) opensource asp.net shopping application platform. Even if you are not interested in a webshop solution it is a very good reference project for your custom asp.net application.
from http://www.nopcommerce.com: nopCommerce is a fully customizable shopping cart. It’s stable and highly usable. nopCommerce is an open source e-commerce solution that is ASP.NET 4.0 based with a MS SQL 2005 (or higher) backend database. Our easy-to-use shopping cart solution is uniquely suited for merchants that have outgrown existing systems, and may be hosted with your current web host or our hosting partners. It has everything you need to get started in selling physical and digital goods over the internet.

Before we start I want to mention how easy it was to install this application on my dev environment. My first impression about a custom solution is based on how easy and professional the installation is done. In order to get the installation wizard working I had some minor options I needed to tweak on my development instance and I would like to share them with you. If you see room for improvement don’t hesitate to post a comment!!!

Provide the correct connectionstring settings like servername and database name

Click Install (see possible messages below)

Behold your nopcommerce site operational

Specific configuration

HTTP Error 500.19 – Internal Server Error”.
This issue occurred when the application pool identity didn’t have permissions towards the inetpub/wwwroot folder where the nopcommerce files were copied. (see 3.6)Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive. This issue occurred when the application pool .NET Framework Version was note set to v4.0 (see 3.4)

Access to the path ‘C:\inetpub\wwwroot\shop\Plugins\bin’ is denied. This issue occurred when the application pool identity didn’t have the writepermissions towards the inetpub/wwwroot folder where the nopcommerce files were copied. (see 3.6)Setup failed: System.Exception: Database does not exist or you don’t have permissions to connect to it at Nop.Web.Controllers.InstallController.Index(InstallModel model) in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web\Controllers\InstallController.cs:line 406 This issue occurred when the SQL database that you provided was not created yet (see 4)