Tallan's Technology Blog

Tallan's Top Technologists Share Their Thoughts on Today's Technology Challenges

Posts Tagged "SharePoint 2010"

Installing SharePoint 2010 SP2

Chris Magrane

I was tasked last week with learning how to install SharePoint 2010 as part of our SharePoint IT Training Module.  It’ll be easy they told me, or maybe they didn’t tell me that and I told myself that.  It’s only an installation, how hard can it be?  Famous Last words.  Well after a long time setting up every little thing I get hit with this error and spend a day trying to get past it trying a number of different strategies :

Implementing jQuery in SharePoint 2010 Solutions using Delegate Controls

Delegate Controls are generic controls found in all of the out-of-the-box master pages in SharePoint, a Delegate Control provides the ability to dynamically render ASP.net controls (candidates) in master pages extending the functionality of SharePoint without the need to directly modify any of those master pages.
So Basically, a Delegate Control provides a “plug-in” framework making its child candidates (ASP.NET user Controls) pluggable and replaceable.
Some of the available delegate controls in the master pages are:

GlobalNavigation.
SmallSearchInputBox.
QuickLaunchDataSource.
AdditionalPageHead.

In this post we will take a look at using the AdditionalPageHead Delegate control to quickly add a jQuery reference in SharePoint master pages.

Performance Point – the Good and the Bad – Part 1

Mark Frawley

This posting presumes the reader has at least a basic understanding of what Microsoft’s Performance Point (PP) offering is, at least at the level of wanting to assess whether it is appropriate for your requirements. Basic familiarity with Microsoft’s Analysis Services is also required to get the most out of the observations I provide. If you have that background, this two-part posting should prove helpful in making an assessment of whether PP might suit your requirements, in whole or in part.

Use SP.SOD.executeFunc(a,b,c) to load the SharePoint JavaScript libraries when needed

Patrick Kelly

A couple weeks ago, I was building a stock quote for a master page that required two images stored in /Style Library/Custom/; the images represented the typical stock quote arrows. In order to provide the JavaScript code with the correct location of the site collection’s root I was using the following directly in my code block:

var imgArrow = <asp:Literal runat=”server” Text=”<%$SPUrl:~sitecollection/

Style Library/Custom/images/stockup.png%>” />;

While I had originally thought this was a kludgey solution to begin with, it was getting the job done every single time.
However, a problem arose a few days after when I began refactoring the code. I had moved all of the js code from the master page itself into a separate js file, leaving only a static reference to the script on the master. The following code should be put within the ScriptManager control.

<asp:ScriptReference…

Creating a SharePoint BCS .NET Connectivity Assembly to Crawl RSS Data in Visual Studio 2010

Overview
In this post, I’ll walk you though how to create a SharePoint 2010  BCS .NET Connectivity Assembly in Visual Studio 2010.
We’re going to create an assembly that will allow us to Crawl RSS Feeds using BCS.
Creating a BCS .NET Connectivity Assembly project in Visual Studio 2010
First, create a new project selecting the Sharepoint –> 2010 –>Business Data Connectivity Model.  I’ll call this project RSSModel.

At the SharePoint Customization Wizard screen, select Deploy as a Farm Solution.  Be sure to put in the address of your base web application.

Click Finish.  Visual Studio will create the new project.  Once complete you should be presented with the model designer surface as below:

Updating the Default Project for Our Custom BCS Model
Setting the Model Name
The model is created using default model and entity names.  Lets change those first.  In solution explorer, change the name of the…

Fixing ‘The default web application could not be determined…’ when deploying a .NET BCS Connectivity Assembly in SharePoint 2010

Overview
The following error was received when attempting to deploy a .NET BCS Connectivity Assembly to our SharePoint 2010 Farm:
Error occurred in deployment step ‘Add Solution': The default web application could not be determined. Set the SiteUrl property in feature *Model Name*_Feature1 to the URL of the desired site and retry activation.
Parameter name: properties
 
 
Solution
While the Site URL property is automatically set in the Project properties by the SharePoint Configuration Wizard when creating the project, for some reason it doesn’t set a BCS Custom Property necessary for successful deployment.
To add this property, do the following:
Select the model object in the solution explorer.  This is generally beneath the Package node.  In the properties window, click (Collection) next to Feature Properties and click the elipsis (…) button.

In the Feature Properties window, click the Add button.  Set the Key property to SiteUrl and the…

SharePoint BCS Links

Overview
While investigating how to create and deploy custom .NET BCS Connectivity Assemblies, I came across a ton of good links that helped out with some specific issues, and I wanted to share them.
Clearing BCS Service Application Database
The following link describes a method of clearing out the BCS database in order to redeploy BCS custom assemblies that have changed models.  This is useful if you start getting errors about your BCD model not being compliant with previous versions.  It keeps you from having to delete/recreate the BCS Service Application:
http://tomvangaever.be/blog/index.php?entry=entry100422-165749
Making BCS Model in .NET Connectivity Assembly Searchable
The next link describes the changes to your .NET Connectivity Assembly that are necessary to make your BCS model show up in Content Sources under Line of Business in the SharePoint Search and/or FAST Content SSA’s.
http://tomvangaever.be/blogv2/2010/05/bcs-search-there-are-no-external-data-sources-to-choose-from/
BCS Custom Properties List
Finally, the last link is a list of…

Great Post on How SharePoint 2010 Load Balancing Works

Overview
In reviewing our client’s SharePoint 2010 / FAST farm topology, a lot of questions came up about how load balancing works in SharePoint 2010.  I came across blog post entitled: How I Learned To Stop Worrying and Love The SharePoint Topology Service by Josh Gavant.
It’s an excellent read and goes into some detail about how SharePoint 2010 Load Balancing works.  I recommend reading it.