Microsoft SharePoint 2010 Visual How Tos

December 30th, 2010 No comments

Accessing SharePoint 2010 Data with the .NET Client Object Model

Summary:

Learn how to use the Microsoft SharePoint 2010 managed client object model to read and write data in SharePoint sites from Microsoft .NET Framework–based applications.

Applies to:

Microsoft SharePoint Server 2010

Provided by:

Andrew Connell, MVP, Critical Path Training

Adding SharePoint Project Items to SharePoint Projects in Visual Studio 2010

Summary:

Learn how to add and work with SharePoint project items in Microsoft SharePoint 2010 to quickly build business solutions by using the SharePoint development tools in Microsoft Visual Studio 2010.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ted Pattison, Critical Path Training, LLC (SharePoint MVP)

Creating Content Types for SharePoint 2010 in Visual Studio 2010

Summary:

Learn how to create a SharePoint 2010 content type by using Visual Studio 2010.

Applies to:

Microsoft SharePoint Server 2010 | Microsoft SharePoint Foundation 2010 | Microsoft Visual Studio 2010

Provided by:

Ben Hedges, Point8020

Creating Custom Extensions for SharePoint 2010 Development Tools in Visual Studio 2010

Summary:

Learn how to start creating custom extensions for the Microsoft SharePoint development tools in Microsoft Visual Studio 2010. By creating custom extensions, you can add your own SharePoint project templates and SharePoint Project Item templates into the Visual Studio 2010 development environment.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ted Pattison, Critical Path Training, LLC (SharePoint MVP)

Creating Custom SharePoint 2010 Field Types

Summary:

Learn how custom field types provide a powerful extensibility point for creating business solutions for Microsoft SharePoint 2010. Learn how to make a more polished column type by using custom logic to create default values and validate user input.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ted Pattison, Critical Path Training, LLC (SharePoint MVP)

Creating Custom SharePoint 2010 Service Applications and Consumers

Summary:

Lean how to create custom SharePoint 2010 service applications for robust, scalable, and fault tolerant shared services.

Applies to:

Microsoft SharePoint Server 2010 | Microsoft SharePoint Foundation 2010

Provided by:

Andrew Connell, Critical Path Training, LLC (SharePoint MVP)

Creating Multicolumn SharePoint 2010 Field Types

Summary:

Learn how to work with multicolumn values when creating custom field types in Microsoft SharePoint 2010 to track two or more pieces of data that represent one logical piece of information.  

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ted Pattison, Critical Path Training, LLC (SharePoint MVP)

Creating SharePoint 2010 Event Receivers in Visual Studio 2010

Summary:

Learn how to create an event receiver for Microsoft SharePoint 2010 by using Microsoft Visual Studio 2010.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ben Hedges, Point8020

Creating SharePoint 2010 List Definitions in Visual Studio 2010

Summary:

Learn how to create list definitions and list instances for Microsoft SharePoint 2010 by using Microsoft Visual Studio 2010.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ben Hedges, Point8020

Creating SharePoint 2010 Sequential Workflows in Visual Studio 2010

Summary:

Learn how to create a SharePoint 2010 Sequential Workflow in Visual Studio 2010.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ben Hedges, Point8020

Creating SharePoint 2010 Site Definitions in Visual Studio 2010

Summary:

Learn how to create site definitions for Microsoft SharePoint 2010 by using Microsoft Visual Studio 2010.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ben Hedges, Point8020

Creating SharePoint 2010 State Machine Workflows in Visual Studio 2010

Summary:

Learn how to use the State Machine Workflow template in Microsoft Visual Studio 2010 to build a Microsoft SharePoint 2010 state machine workflow.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ben Hedges, Point8020

Creating SharePoint 2010 Visual Web Parts in Visual Studio 2010

Summary:

Learn how to create a Visual Web Part for SharePoint 2010 by using Visual Studio 2010.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ben Hedges, Point8020

Creating SharePoint 2010 Web Parts That Can Read and Write Data to External Data Sources

Summary:

Learn how to use Microsoft Visual Studio 2010 to create a Visual Web Part that uses a Microsoft Business Connectivity Services (BCS) external content type in Microsoft SharePoint Server 2010 to read and write data to the AdventureWorks sample database.

Applies to:

Microsoft SharePoint Server 2010 | Microsoft Business Connectivity Services (BCS) | Microsoft Visual Studio 2010

Provided by:

Joel Krist, iSoftStone

Getting Started with SharePoint 2010 Development Tools in Visual Studio 2010

Summary:

Learn how to create, test, and debug Microsoft SharePoint 2010 projects using the new SharePoint development tools in Microsoft Visual Studio 2010.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft Visual Studio 2010

Provided by:

Ted Pattison, Critical Path Training, LLC (SharePoint MVP)

Importing SharePoint 2010 Site Definitions in Visual Studio 2010

Summary:

Learn how to import a Microsoft SharePoint 2010 site definition using Microsoft Visual Studio 2010 and Microsoft SharePoint Designer 2010.

Applies to:

Microsoft SharePoint Foundation 2010 | Microsoft SharePoint Server 2010 | Microsoft SharePoint Designer 2010 | Microsoft Visual Studio 2010

Provided by:

Ben Hedges, Point8020

Online Microsoft SharePoint Server 2010 Training Links

December 14th, 2010 No comments

TechDays 2010 Toronto – CLB372: Session Resources

October 26th, 2010 No comments

Scripting IIS appSettings and connectionStrings with appcmd

October 20th, 2010 No comments

Developers have two section of web.config they are always asking the administrator to edit. The sections are the appSettings and connectionStrings.

  • “appSettings” used by custom code as a parameter in the code, supporting different environments.
  • “connectionStrings” used to specify a collection of database connection strings, as name/value pairs, for ASP.NET connection.

Appcmd support more than scripting change into your web.config files, but in this posting is approval a process to add, change and remove entries.

NOTE:To simplify access to the appcmd executable I use an environment setting %appcmd% set to the programs.
    set appcmd=”%windir%\system32\inetsvr\appcmd.exe”

appSettings

Add new key-value pair

The following added the key of “Test” with a value set to “Test Data”

%appcmd% set config “Default Web Site” /section:appSettings /+”[key='Test',value='Test Data']”

%appcmd% set config The command edit a web.config file
Default Web Site The location of the web.config file.
In this case the root site of the default site.
/section:appSettings The section of the web.config to be edited
/+”[key='Test',value='Test Data']“ /+ add the change to the web.config file
“<settings data>” in this case the key-value pair to be added to the appSettings section of the web.config file.
NOTE: data is delimited by (”) single quotes.

Change existing key-value pair’s ‘value’

The following changes value to “New Data” for the key of “Test”

%appcmd% set config “Default Web Site” /section:appSettings /”[key='Test'].value:New Data”

/”[key='Test'].value:Test Data” / Changes an existing entries value data in the web.config file
[key='<value>'] is the entry in the collection of appSettings that has its value changed in this case.
NOTE: only the key is delimited by (”) single quotes.

Change existing key-value pair’s ‘key’

The following changes key to “New Test” for the key of “Test”

%appcmd% set config “Default Web Site” /section:appSettings /”[key='Test'].Key:New-Key”

/”[key='Test'].key:New-Key” / changes an existing entries key value in the web.config file
[key='<value>'] is the entry in the collection of appSettings the key property changed in this case.
NOTE: only the key is delimited by (”) single Read more…

Visual Studio 2010 Online help Content for SharePoint 2007 SDK and SharePoint 2010 SDK

July 30th, 2010 No comments

Microsoft has made available both the SharePoint Server 2010 SDK and the SharePoint 2007/ WSS 3.0 SDK help for download and installation.

With the new Help Library Manager in Visual Studio 2010 used to install Help Content books covering selected topics.

To add the new help to your local computer running Visual Studio 2010 just request the new content and update.

  1. Open the click Help, and then
    select Manage Help settings or type <ctrl>f1,m.
  2. Click the link Install content from online or <alt>o
  3. Once the list of available content form online is displayed, scroll down the SharePoint Products and Technologies and click the Add links.
  4. Then click the Update button to download and install.

Could not find how to configure httpModules using appcmd.exe

June 22nd, 2010 No comments

So I found the way to set the appSettings and connectionString in my web.config using appcmd.exe, but I tried every think I could to add an http Module to the <httpModules> section of the <system.web> with no success.

As it turns out in IIS 7 both <httpModules> and <httpHandlers> in <system.web> have been moved to <Modules> and <Handlers> in <system.webServer>. If you are using both the old location and the new location you will need to add the following item in the <system.webServer> section of the web.config file.

<system.webServer>
<validation validateIntegratedModeConfiguration=”false” />
</system.webServer>

You can now use the following appcmd.exe commands:

Add Module (httpModule)

Set appcmd =C:\Windows\System32\inetsrv\appcmd.exe
Set SiteName=”Default Web Site”
%appcmd% set config %SiteName% /section:system.webServer\Modules /+”[name='<http Module Name>',type='<Module class and assembly information>']“

Remove Module (httpModule)

Set appcmd =C:\Windows\System32\inetsrv\appcmd.exe
Set SiteName=”Default Web Site”
%appcmd% set config %SiteName% /section:system.webServer\Modules /-”[name='<http Module Name>']“

Reference:

ASP.NET 2.0 Breaking Changes on IIS 7.0 at http://learn.iis.net/page.aspx/381/aspnet-20-breaking-changes-on-iis-70/

Configuring IIS 7 Site Binding with appcmd.exe

June 21st, 2010 No comments

While SharePoint provides a place to configure alternate access mapping for each of the SharePoint site it does on update the bindings in the IIS configuration. In order to do this you can use appcmd.exe with the set site command.

With a large number of site binding to be configured for the different Site and server in SharePoint, for example if you have 4 web application on 4 server with 1 to 5 binding (average say 3) that would be 4 x 4 x 3 = 48 binding to be assigned to the SharePoint sites. By making use of 4 batch command files you can reduce the number of error accrues the server and there web application.

The following will add a new binding to the site

Set appcmd =C:\Windows\System32\inetsrv\appcmd.exeSet SiteName=Default Web SiteSet IP=192.168.0.1:80Set FQDN=www.contos.com

%appcmd% set site “% SiteName%” /+bindings.[protocol='http',bindingInformation='%IP%:%FQDN%']

 

The following will remove an existing binding to the site

Set appcmd =C:\Windows\System32\inetsrv\appcmd.exeSet SiteName=Default Web SiteSet IP=192.168.0.1:80Set FQDN=www.contos.com

%appcmd% set site “% SiteName%” /-bindings.[protocol='http',bindingInformation='%IP%:%FQDN%']

 

Using a combination of addition and removals you will be able to configure all the web application on all server the same.

References:

Binding <binding> on the IIS site.

Microsoft announced that the next SharePoint Conference will be October 3-6 2011

June 8th, 2010 No comments

Today Microsoft announced that the next SharePoint Conference will be in Anaheim, CA on October 3-6 2011.

Register to be notified and stay up to date on all conference announcements SPC 2011 site

Registration will open spring 2011.

Mirosoft tech-days canada is coming

June 3rd, 2010 No comments

techdays2010

Check out the early Early Bird Registration @ www.techdays.ca
Toronto dates are October 27th and 28th.

If you read your error messages

May 8th, 2010 No comments

The thing we all do, or at least I do time to time is not stop and read the messages that my application are providing. I this case I could not get Windows Live Writer or Word to connect to my new Blog site, a wordpress site. But when I stopped and read the message in the pop-up dialog box, it not only told me the issue but there to fix on my wordpress site.

So next time stop and read the messages before trying to force your way to get it to work!