Archive

Posts Tagged ‘SharePoint 2010’

Adding Filters to SharePoint 2010 Wiki Pages

February 16th, 2011 No comments

I just ran across this today for the first time and was honestly a little surprised by it.  I wanted to add a Choice Filter to my team site and couldn’t.  In SharePoint 2010, when creating a Team Site, wiki pages are used for the home page as well as any other pages you create.  If you edit the page and try to add a Choice Filter (as well as some of the other filters), nothing appears to be added to the page.  However, if you were to open the page in SharePoint Designer, you will see that the web part has in face been added to the page and is actually throwing and error.

So what is the solution?  There are actually two of them.

1.  Active the Publishing Feature for you site, create a Web Part Page, and use this page to add web parts to and utilize filters.

But..what if I don’t want to turn on publishing or I want to be able to use a wiki page?

2. Use SharePoint Designer to insert the filter web part.  That’s right, you can actually open a wiki page in SharePoint designer, insert your desired filter web part there and configure the connection and everything works fine.  Once the web part has been added, you can actually reconfigure it via the browser.  However, I would recommend against this as there is apparently some problem with filters, wiki pages and the browser.  The downside to this approach is you have to use SharePoint Designer which means if you want end users to be able to customize their own pages they either need to be allowed to use SharePoint Designer, or not able to use certain Filter Web Parts.

Hopefully this will be something that is added (or fixed as I’m not if this was intentional or not) in a later patch or update to SharePoint 2010.  If anyone else has additional information or a work around to adding these filter web parts to a wiki page, leave a comment and educate the rest of us.

Install and Configure SharePoint 2010 with no Database GUIDS (except PerformancePoint)

January 31st, 2011 2 comments

This is a blog post I’ve been meaning to write for a long time and have been slowly revising the content and steps.  I also can’t take credit for all the steps below, I gathered them from various resources, blogs, etc.  At the end of the post I will list all of the places I gathered these steps from.  This is also not the only way to do this, it’s just the way I have documented and how I go about configuring a SharePoint farm.

Server Installation and Prep Work

1. Decide on your SQL Server you will use

2. Configure SharePoint Accounts in AD.  The minimum you will need is 6:

  • SPAdmin (admin)
  • SPService (services)
  • SPApp (Web Application App Pools)
  • SPSearch (search service)
  • SPCrawl (crawl service)
  • SP_UPS (user profile synchronization service)

3. Make sure the SPAdmin has the following rights:

  • Local Admin on the SharePoint Servers (just for the Installation)
  • SQL Rights: dbcreator, public, securityadmin

4. Log into your SharePoint Servers and Install the SharePoint 2010 Bits

5. If the latest Cumulative Updates haven’t been install, download those and install those right after installing the bits.

6. Disable the Loopback Check (http://support.microsoft.com/kb/896861)

7. Restart the server

Configure Central Administration

1. Right-click on “SharePoint 2010 Management Shell” and “Run As Administrator” – I just created a shortcut on my desktop

2. In Powershell Run:

New-SPConfigurationDatabase –DatabaseName “SP2010_Config” –DatabaseServer “[ServerName]” –AdministrationContentDatabaseName “SP2010_Admin_Content” –Passphrase (ConvertTo-SecureString “[YourPassPhrase]” –AsPlaintext –Force) –FarmCredentials (Get-Credential)

**Notes**

  • For [ServerName] localhost will NOT work if you are running SQL on your SharePoint box (usually only likely in a dev environment)
  • Since not everyone that install/configures SharePoint is always a DB Expert, when using a SQL Named Instance:
    • A common error you may get if using a named instance will be something like: “Connot connect to database master at SQL server at [SQLServer\Instance].  The database might not exist, or the current user does not have permission to connect to it.”
    • SQL Name Instances use Dynamic Ports, before running the command above, open up SQL Configuration Managers and assign a static port to your Named Instance – http://msdn.microsoft.com/en-us/library/ms177440.aspx
    • Modify the command above slightly…for the [ServerName] use: [ServerName]\[InstanceName],[PortNumber] as an example: “SQLServer2008\SP2010,1433”
    • Create an Incoming Rule on your SQL Server to allow connections through the port you specify for your instance.Install-SP

3. Enter domain\SPAdmin and the associated password in the resulting Credential Request box.

4. Close the PowerShell Window

5. Re-Open PowerShell again as administrator

6. Run the following PowerShell Commands

  • Install-SPHelpCollection –All
  • Initialize-SPResourceSecurity
  • Install-SPService (If you install a standalone server, something I never recommend, run ‘Install-SPService –Provision’ instead.
  • Install-SPFeature –AllExistingFeatures
  • New-SPCentralAdministration –Port 9999 –WindowsAuthProvider “NTLM” (you can pick any port here you want to)
  • Install-SPApplicationContent

7. Central Administration is now configured.  You can got to the shortcut in your start menu or run “start iexplore http://[servername]:9999” from PowerShell.

Configure the User Profile Service

I’m not even going to try to type out the steps or guide you in the right direction here.  Just follow Spence Harbar’s steps EXACTLY that he posted here – http://www.harbar.net/articles/sp2010ups.aspx

You may have a few minor tweaks to the steps based on user accounts, but the process for getting the profile synchronization service is solid!!

Once your done with this, you may have an error that starts showing up in your event log about the Taxonomy Picker, to eliminate this error do the following:

  1. Navigate to \14\Template\ControlTemplates
  2. Rename TaxonomyPicker.ascx to TaxonomyPicker.ascx.broken
  3. Remember you did this incase it is actually used in an update to SharePoint 2010 in the future.

***I used the same Application Pool for all my services (the same Application Pool Account I set up when configuring the User Profile Synchronization Service).  In my case it is SharePoint Web Services Default.  So I will use this Application Pool for all Service Applications going forward.  Wherever you see this application pool name used in the future, you can replace it with your own application pool name or a new one if you want separate application pools for every service.  Also, wherever you see –Name “[somename]” or –DatabaseName –“[somename]” going forward you can replace [somename] using your own naming conventions. ***

Configure Search Services

  1. Open up SharePoint 2010 Management Shell as an Administrator again.
  2. Enter the following commands in PowerShell:
  3. $searchapp = New-SPEnterpriseSearchServiceApplication –Name “Search Service Application” –ApplicationPool “SharePoint Web Services Default” –DatabaseName “SP2010_Search_Service”
  4. $proxy = New-SPEnterpriseSearchServiceApplicationProxy –name “Search Service Application Proxy” –Uri $searchapp.uri.absoluteURI
  5. $proxy.status *It should return “Online”, if not enter $proxy.status = “online”*
  6. $changestatus.update
  7. $si = Get-SPEnterpriseSearchServiceInstance –local
  8. $si.status *If it’s disabled run Start-SPEnterpriseSearchServiceInstance –identity $si*
  9. Set-SPEnterpriseSearchAdministrationComponent –SearchApplication $searchapp –SearchServiceInstance $si
  10. $ct = $searchapp | New-SPEnterpriseSearchCrawlTopology
  11. $csid = $searchapp.CrawlStores | select id
  12. $CrawlStore = $searchapp.CrawlStores.item($csid.id)
  13. $hname = hostname **hostname is for a single server, this is the servername were you want the crawl component to reside**
  14. New-SPEnterpriseSearchCrawlComponent –CrawlTopology $ct –CrawlDatabase $CrawlStore –SearchServiceInstance $hname
  15. $ct | Set-SPEnterpriseSearchCrawlTopology –active
  16. $qt = $searchapp | New-SPEnterpriseSearchQueryTopology –partitions 1
  17. $p1 = ($qt | Get-SPEnterpriseSearchIndexPartition)
  18. New-SPEnterpriseSearchQueryComponent –IndexPartition $p1 –QueryTopology $qt –SearchServiceInstance $si
  19. $PropDB = $searchapp | Get-SPEnterpriseSearchPropertyDatabase
  20. $p1 | Set-SPEnterpriseSearchIndexPartition –PropertyDatabase $PropDB
  21. $qt | Set-SPEnterpriseSearchQueryTopology –Active

Usage Application and Usage Analysis Service

  1. Your Usage Application may have already been provisioned in one of the previous steps, if it was, go into “Manage Service Applications” and delete it.  Check the box to delete associated data as well.
  2. Once again in your SharePoint 2010 Management Shell enter the following:
  3. New-SPUsageApplication –Name “SharePoint Usage Application Service” –DatabaseName “SP2010_Usage”
  4. $App = New-SPSubscriptionSettingsServiceApplication –ApplicationPool “SharePoint Web Services Default” –Name “Subscription Service Application” –DatabaseName “SP2010_Subscription”
  5. $proxy = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $App
  6. Get-SPServiceInstance | where {$_.TypeName –eq “Windows SharePoint Services Subscription Settings Service”} | Start-SPServiceInstance
  7. $StagingDB = “<StagingDatabases><StagingDatabase ServerName=’[SQLServerName]’ DatabaseName=’SP2010_Web_Analytics_Service_Staging’/></StagingDatabases>”
  8. $ReportingDB = “<ReportingDatabases><ReportingDatabase ServerName=’[SQLServerName]’ DatabaseName=’SP2010_Web_Analytics_Service_Reporting’/></ReportingDatabases>”
  9. $webanalytics = New-SPWebAnalyticsServiceApplication –ApplicationPool “SharePoint Web Services Default” –ListOfReportingDatabases $ReportingDB –ListOfStagingDatabases $StagingDB –Name “Web Analytics Service Application”
  10.   New-SPWebAnalyticsServiceApplicationProxy –Name “Web Analytics Service Application Proxy” –ServiceApplication $webanalytics
  11. . $Usage = Get-SPServiceApplicationProxy | where {$_.TypeName
    -eq "Usage and Health Data Collection Proxy"}
  12.   $Usage.Provision()

At this point in time, navigate to “Services on Server” and start all the service you want running on their respective servers.

State Service Application

  1. While still in the SharePoint Management Console enter the following PowerShell Commands:
  • $serviceapp = New-SPStateServiceApplication –Name “State Service Application”
  • New-SPStateServiceDatabase –Name “SP2010_State_Service” –ServiceApplication $serviceapp
  • New-SPStateServiceApplicationProxy –Name “State Service Application Proxy” –ServiceApplication $serviceapp –DefaultProxyGroup

Secure Store Service

At this point in time, navigate to “Services on Server” and make sure the Secure Store Service on the Server you wish it to run on.

The secure store service is implemented in SharePoint 2010 to replace SSO.  Rather than get into all the details of it here, there are several good resources on TechNet explain the Secure Store and how to configure it.  The Secure Store Service Application can be initially configured through Central Administration allowing you to create the custom named database (without any GUIDs).  However, once this has been created, there are some additional management/configuration tasks that have to take place within the Service Application.  I use these three TechNet articles as reference when performing the rest of the configuration tasks.

PerformancePoint Service Application

Again, make sure you the the PerformancePoint Service has been started before creating the PerformancPoint Service Application.

From everything I can find, right now this can either be done via PowerShell or Central Administration, but unfortunately, no matter which way you provision PerformancePoint, there is no way to set a custom name for that database.  If I discover a way I’ll update this post with the steps.

The Rest of It

That should take care of everything that needs to be done in your SharePoint 2010 Management Shell.  The rest of the services can be configured through Central Administration.  Once you’ve reached this point, open up Central Administration.  Go to "Services on Server” and start the rest of the services you need.  This includes the Foundation Search Service that can be set up through the GUI.Next go to “Manage Service Applications” and add the rest of the Service Applications here that you need.

**As you go through setting everything up the GUI make sure to pay attention to where you can name your databases so you can continue keeping your consistent naming without the GUIDs**

Now you should have something that looks a lot like these screen shots below:

imageimage

image

Once I got to this point, I ran the PowerShell script found here – http://www.sharepointconfig.com/2011/01/instant-sharepoint-health-analysis/ in order to instantly see any issues I still had with my farm configuration.  From this report I went in and took care of a few remaining issues.  Some of the issues I encountered were things that should have been done initially and thus resulted in some updates to this blog post.

If you get an error similar to: “WebPart class [8d6034c4-a416-e535-281a-6b714894e1aa] is referenced [6] times in the database” after running the SharePoint Health Analyzer, there is a simple “fix” to get rid of this error here – http://blogs.architectingconnectedsystems.com/blogs/cjg/archive/2009/12/09/Missing-Server-Side-Dependencies-_2D00_-8d6034c4_2D00_a416_2D00_e535_2D00_281a_2D00_6b714894e1aa.aspx.

If you want to skip the link, it is a simple process of:

  1. Go to “Manage Service Applications”
  2. Select “Search Service Application” and click Manage in the Ribbon
  3. Click on “Farm Search Administration” in the Quick Launch
  4. Rerun the SharePoint Health Analyzer and this error should be gone

 

If anyone runs across any typos or problems with the steps PLEASE let me know so I can correct the issues.  Also, I can’t take credit for all of the content above, as I gathered most of the info from several different locations, they all deserve credit for their work so here are the references used for this post, these links are posted in the order I used them for the steps above:

SharePoint 2010 October CUs reposted

December 2nd, 2010 No comments

Just a quick update.  Yesterday Microsoft reposted the October 2010 Cumulative Updates for SharePoint 2010.  For all the information, head on over to the Microsoft SharePoint Team Blog post about the reposting.

SharePoint Server 2010 October CU “recalled”

November 8th, 2010 No comments

I’m a little late in getting this out as I was out of town over the weekend, but just in case you missed it, the October Cumulative Updated for SharePoint Server 2010 has been taken down due to a recently discovered critical issues.  For more details see the posts on the Microsoft SharePoint Team Blog.

Initial Announcement – http://blogs.msdn.com/b/sharepoint/archive/2010/11/05/critical-information-about-the-sharepoint-server-2010-october-cumulative-update.aspx

Details and Workaround – http://blogs.msdn.com/b/sharepoint/archive/2010/11/06/details-and-workaround.aspx

ASP.NET Security Vulnerability Resources

September 22nd, 2010 No comments

***Update: Today Microsoft is releasing as out-of-band security update to address this issues.

- SharePoint Team Blog Announcement – http://blogs.msdn.com/b/sharepoint/

 

I’m sure by now all of you have heard about the ASP.NET security vulnerability and there are plenty of references out there about it and how to fix it so I’m not going to go into much detail here.  The key point is yes, it effects WSS 2.0, SharePoint 2007 (WSS 3.0 and MOSS) and SharePoint 2010 (Foundation and Server).

The best references I have found so far, and I will refer you to rather than writing it all up myself are":

1. The Microsoft SharePoint Team Blog, this is where the fixes are documented that you can put in place until a patch is released.

2. Scott Guthrie’s Blog, this contains a very good list of FAQs about the vulnerability.

SharePoint 2010, Internet Explorer and FireFox

April 20th, 2010 No comments

Microsoft has been talking about how much better the user experience with SharePoint 2010 is when using browsers other than Internet Explorer, mainly, Mozilla Firefox.  They have been doing a lot of SharePoint demo’s with Firefox to demonstrate this ability and Firefox has been labels as being a level 1 browser for SharePoint 2010.

However, in my use of Firefox, I have found a couple of things so far that still work only when using Internet Explorer.

1. You can’t upload multiple files to a document library from within Firefox.  This is due to the fact that for some of these actions.  SharePoint 2010 does indeed still use ActiveX controls.  In fact, some people don’t even have this option in Internet Explorer according to this post – http://sharepoint4u.wordpress.com/2009/05/07/no-multiple-upload-no-connect-to-outlook/

2. There isn’t the ability to drag and drop to re-arrange web parts on a SharePoint site or to move them between zones.  You must move the web parts around by using the setting in the web part properties.

I am actually somewhat surprised by both of these limitations.  The first one probably more so than the second, especially considering that when using Microsoft SkyDrive you have the ability to upload multiple files using Firefox.  You would think this same type of functionality could exist in SharePoint 2010.

Based on the most recent posts by Microsoft, http://technet.microsoft.com/en-us/library/cc263526%28office.14%29.aspx, it doesn’t look like they have plans on changing any of these limitations.  This site contains additional details on these limitations as well as other limitations that exist for various browsers when accessing SharePoint 2010.

Office 2010 and SharePoint 2010 Launch Date!

March 9th, 2010 No comments

I’m definitely not the first to blog this, nor will I probably be the last; and, chances are that you have already read this elsewhere, but just in case you haven’t, I figured I would post it anyways.

So, here it is, the launch date for Office and SharePoint 2010 has been set!  It will be May 12, 2010 at 11:00 am EST.  You can view all the details and sign up to watch the even live online here – http://sharepoint.microsoft.com/businessproductivity/proof/pages/2010-launch-events.aspx#fbid=N7_NqK7briG.

SharePoint 2010 Complete Install on Windows 7

February 20th, 2010 1 comment

So this weekend I decided to install SharePoint 2010 on my desktop at home.  My desktop is running Windows 7, and due to requirements of other software I need, I’m unable to run Windows Server 2008 on it.

Running a stand alone installation of SharePoint 2010 is great, however, I wanted to see if I could get a complete install on Windows 7 and user SQL Server 2008.  Fortunately, I found this blog post by Neil Hodgkinson that explained how to do it.  Everything appeared to be working great and the configuration wizard finished without any problems.  Unfortunately, that appearance didn’t last too long.

My problem arose when I went into Central Administration and, despite being a farm administrator, the first thing I noticed was I couldn’t create new web applications.  There were some other security issues as well, however, those are beside the point.  The purpose of this post is how to go about fixing this issue if you encounter the same thing.

After mulling over the issues for a few minutes, I remember are beloved User Access Control (UAC) and other issues I’ve seen when it is enabled on Windows Server.  So, I went into my UAC settings, disabled them complete, restarted my computer, logged into Central Administration and what do you know, it worked!  I can now create new web applications and have full control over my SharePoint 2010 installation.

Hide Web Part Headers with SharePoint 2010

February 1st, 2010 7 comments

A while a go a write a short post on how to hide web part headers in SharePoint 2007.  Recently I had some inquire how to do the same thing for SharePoint 2010.  So, here is what to do in order to hide a web part header in SharePoint 2010.

1.  Add a content editor web part to your page.

2. Edit the Web Part

3. Click in the content area of the web part, click HTML and select “Edit HTML Source”

4. Put the following code in the web part:

  1. <style>
  2.   TR.ms-viewheadertr > TH.ms-vh2 {
  3.   DISPLAY: none
  4.   }
  5. </style>

 

5. Click “OK”

6. Expand “Appearance” (on the right side of the page)

7. Set the chrome type to “None”

8. Click “OK” and then save and check in your page.

The headers of your web part should now be hidden.  This can be extremely helpful when your page contains a web part using “boxed” for your style when creating a list view.  The only downside to this approach is if you have multiple web parts on a single page, it will hide the headers for all the web parts on your site.

How to do the same thing in SharePoint 2007

SharePoint Surveys and Excel 2010

December 14th, 2009 2 comments

I was working with SharePoint surveys the other day and discovered an old issue working with surveys and Microsoft Office that appears to have resurfaced.

We were trying to see what other reports we could generate from a SharePoint survey.  Naturally with the option to export to Excel, we figured why not just export all the survey data into Excel and play with it there.  To test it out I tried to get a variety of questions in the survey, one of these questions being the rating (matrix) survey question.

I created a few responses to the survey and attempted to export the list data to Excel (I’m running 2010 Beta).  Everything came over well with the exception of the matrix type questions.  I did some searching and this was also an issue with Excel 2003.  However, people said it was resolved with Excel 2007.  I installed Excel 2007 and sure enough the matrix questions imported into Excel 2007 just fine.  I tried Excel 2010 once more and the values still failed to come over.

So, it appears that the problem with importing matrix type of questions from SharePoint 2007 to Excel 2003 has returned in Excel 2010.  Granted, this is the beta, so maybe it will be fixed by the release.

I also want to do some testing with SharePoint 2010 surveys, Excel 2010 and possibly PowerPivot.  I’ve been reading some great things about PowerPivot but haven’t had much of a chance to play with it for myself.  Once I get a chance to do some testing with these tools I’ll write a new post.  Hopefully there will be some good news about doing more in depth analysis of SharePoint Survey results using these new tools.