Archive

Archive for the ‘SharePoint’ Category

How to upload a .wsp solution in SharePoint 2010

October 9, 2012 2 comments

Have you ever gotten a .SharePoint 2010 wsp file and thought “Now what?”. Well there are two ways to do this. You can upload the .wsp to the solution gallary within the site collection and the create a sub-site based on the .wsp. The videos below shows this technique.

 

You can also create an entire site collection based on the .wsp. The video below shows this technique.

How do I: Install SharePoint 2010 on Windows 7

October 9, 2012 Leave a comment

SharePoint 2010 #RSS Feeds

August 13, 2012 2 comments

One of the SharePoint configuration items that I tend to asked about is getting external RSS feeds to work, there are quite a few articles and blogs on the web that talk through specific problems, but I thought I would share my experiences with SharePoint & RSS.

So what is an RSS feed and why might we want to consume it, simply put and RSS (Really Simple Syndication) feed is a way used to publish often updated content in standard format that can be easily consumed. To find out if a site publishes an RSS feed, simply go to it and look for the RSS Feed symbol in Internet Explorer turn from Grey image to Orange image

then just click on the feed button to view the feed address ( examples below use BBC News)

image

and then then view and subscribe to the feed.

image

Also if you are using Outlook and sync with the Common Feed List (the one that Internet Explorer keeps)

image

then the feed will appear in your mailbox as well.

image

What does all this have to do with SharePoint I hear you ask, in a perfect world you would go to your SharePoint site, edit a page, add the RSS viewer webpart, edit the RSS Feed URL property…

image

… and as if by magic the shopkeeper appeared, no sorry wrong story, as if by magic your feed will be displayed…Smile

image

but more often then not you get the error below…Sad smile or something similar.

image

or if you are using the free and rather excellent Bamboo Solutions World Clock and Weather web part http://store.bamboosolutions.com/ps-55-5-world-clock-and-weather-web-part.aspx you might see the error below.

image

This is normally caused by one of 2 problems

Location of Proxy

Type of Windows Authentication used

 

Location of Proxy

If your SharePoint Web servers are located behind a proxy, they will need to know where the proxy is that traffic  needs to go through, to do this updated your web.config for the site in question (if you have multiple WFE’s don’t forget to update each one)

Backup, then edit the <defaultProxy> section to make it look like this.

 

<defaultProxy useDefaultCredentials="false">
    <proxy proxyaddress=”http://YourProxyServer” bypassonlocal="true" />
   </defaultProxy>

 

Type of Windows Authentication

Once you have the settings about in place, the type of authentication in use at the web application level comes into play. If you are using NTLM, then you still may have a problem as your client side credentials will not be passed on your proxy server due the ‘double hop’ issue of NTLM so you can either set a bypass rule on your proxy to allow unauthenticated traffic out or configure your web app to use Kerberos authentication, once that is resolved your web parts should work as per below.

image

SharePoint 2010 #Web.Config Errors

July 25, 2012 Leave a comment

Working with a client recently, they wanted to have a look at some of the BI options offered by SharePoint, so we created a site from the BI template and looked at Excel Services and the Performance Point sample pages, Excel Services worked fine but Performance Point gave the error below that is mentioned elsewhere on this fine blog  Smile

https://spandps.com/2010/11/01/performancepoint-2010-error-resolved-code-blocks-are-not-allowed-in-this-file-in-sp2010/ 

performancepoint problem

 

So a quick change to the web.config files was in order for the 2 web servers in the farm.

I went to the 1st server, backed up the web.config file, the made the change and all was good.

Went to the 2nd server, backed up the web.config file, the made the change and BANG internal error

image

I backed out the change, same error, put back the previous web.config, same error..hmm not good…. did a few IIS Resets, same error…hmm not good at all..

Finally looked at the servers event log and spotted the following text in the event

image

 

It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (C:\inetpub\wwwroot\wss\VirtualDirectories\<Portal Site\app_globalresources\web.config line 355)

The path looked a bit odd so I checked in the app_globalresources folder and I had indeed somehow managed to copy a version the web.config file in to it. Deleted the file and SharePoint sprang back into life.. so the moral of the story is always read the error..

 

Happy SharePointing.

Categories: SharePoint Tags:

SharePoint never say “It won’t take long”

June 29, 2012 2 comments

SharePoint – why is nothing ever quick ?

Recently I had to help out a client who was trying to restore a single piece of content  from a backup. We had a backup copy of the content-db and the client also had a recovery farm we could use, so this shouldn’t have taken long.

The backup was over 200 GB, so the 1st problem was to find enough space on the DR farm to recover the content db, once we had enough space the backup was restored to SQL and we attached the content db to the recovery farm, but the Current Number of Sites, was 0, very odd…

I ran a couple of SQL queries on the content db to get some information about its content,

http://devdotnotes.wordpress.com/2012/01/27/common-sql-queries-for-sharepoint-content-database/

but SharePoint refused to show me any content, so we detached and reattached, moved to another Web-app and reattached but nothing appeared, and no errors were reported from the UI.

I took a look a the ULS logs, which was showing nothing, just the headings. An IIS reset and restart of the Tracing service kicked the ULS logs into action and we tried the reattach again, now we were getting errors in the ULS log.

 

The site named <Site Collection Name> and with id bc229270-86b6-4606-832e-a38c0e71058d was found in the content database <database name> in the database server <SQL Server Name>.  However, the following error was reported while adding a mapping to this site to the configuration database.  Operation is not valid due to the current state of the object. 

Followed by

System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint ‘PK_SiteMap’. Cannot insert duplicate key in object ‘dbo.SiteMap’. The statement has been terminated

 

This DR farm had all sorts of other Web Apps and content db’s attached, but I finally worked that another copy of the same db with a different name as attached to one of the other Web Apps, once that was detached we could attach our db, find the site, get the content out and make the client and end user happy Smile

Another day in the wonderful  world of SharePoint !

Categories: MOSS, SharePoint Tags:

SharePoint and fun with SP1

May 1, 2012 3 comments

Recently I was asked to take a look at a SharePoint 2010 system that was having a few problems. Looking at the patching status it was still running SPS2010 RTM, so the 1st job was to at least get SP1 installed, then the latest CUs on top, and so the fun started…

I downloaded the appropriate service packs, and kicked off the foundation SP1 install and got the following.

image

 

The error appeared straight away, no upgrade log was written, nothing in the ULS logs and nothing in the Windows logs.

I used /? switch on the end on the Service Pack file to get the usage options.

 

sharepointfoundation2010sp1-kb2460058-x64-fullfile-en-us.exe /?

 

image

Next I used the log option to have a look at the output of the Service Pack install

C:\patches>sharepointfoundation2010sp1-kb2460058-x64-fullfile-en-us.exe /log:c:\
patches\sp.log

 

There is quite a lot of information written to the log file, but nothing that pointed to the reason of the failure, next was to extract the patch and see which patch file was causing a problem.

C:\patches>sharepointfoundation2010sp1-kb2460058-x64-fullfile-en-us.exe /extract
:c:\patches\sp

the c:\patches\sp folder now contains the extracted patch files and the EULA text file

image

Running the patch wsssp1-x-none.msp was giving the following error.

 

image

So the Service Pack wouldn’t install because one of the patches inside it didn’t realise that SharePoint was installed, interesting as the error I would have expected to if SharePoint wasn’t installed would have been this one…

image

I tried running the Config Wizard, but that didn’t help either, after checking with one of colleagues who knows all about packaging software he thought that the failing msp was probably looking for a specific registry key or value.

So I decided to try running a repair from Control Panel, to reset all the original Server settings while not effecting the content or configuration databases (this process ran for quite a long while)

 

image

 

image

Then I re-ran the Config Wizard, (which now asked about removing the server from the farm).

Finally, after all this the Service Pack would finally install.

Another day done in the world of SharePoint.

Issue Downloading SharePoint 2010 Prerequisite Installer Files

April 25, 2012 2 comments

Strictly speaking this quick article doesn’t really have anything to with SharePoint, but hopefully it might help-out someone out there in SharePoint land.

One of the projects I’m currently working on is a 2010 Farm build, we are just getting the media set ready to install SharePoint with AutoSPInstaller, and of course need to download the Pre-Requisite Installer Files. For this particular project I have no local access to the servers so everything is being done by RDP on the server. So to download the Pre-Requisite Installer Files I’m was using this script from codeplex, but it was failing with a really wierd error

 

image

 

I tried it on a few different servers, but they all had the same problem.

I could of course simply open the script, grab the URL’s and paste them into a browser, but where is the fun in that.

This KB article talks about foreground / background transfers, and this being a problem when using background transfers and that foreground should be okay.

This article describes the cmdlet references for BITS and the –Priority switch that controls the foreground / background transfer setting

So the fix was to change this line

Start-BitsTransfer -Source $Url -Destination $DestFolder\$DestFileName -DisplayName "Downloading `’$DestFileName`’ to $DestFolder" -Priority High -Description "From $Url…" -ErrorVariable err

to this line

Start-BitsTransfer -Source $Url -Destination $DestFolder\$DestFileName -DisplayName "Downloading `’$DestFileName`’ to $DestFolder" -Priority Foreground -Description "From $Url…" -ErrorVariable err

and Voilá, pre-reqs downloaded . Smile

Last day at the International Conference in London

April 25, 2012 5 comments

*** UPDATE – If you would like to see more information about #ISCLondon, take a look at Matthew Hughes’ blog Engage in SharePoint.

The #ISCLondon is a 3 days intense knowledge sharing, specially on the third day it feels like the end of a marathon, may be something to do with the late party last night too!

Today on that last day a few delegate I spoke to had the same feelings: it felt like we are running out of topics for the ones like us who have attended the conference in the previous year or just used SP2010 since the beta version. The topics being discussed seems to be more about SharePoint overview or something we have already seen at other conference.
I did mention in my previous posts some disappointment regarding “mySite demo” that didn’t show anything new already.
I am sure next year will be much more exciting and 3 days will not even be enough.

Now here is a summary of the sessions I have attended today.

Search Center with Matthew McDermott http://www.abbleblue.com/blog

Form this session I will try to use search web parts more in other pages than search Center, they are quite powerful and work farm wise which may potentially replace querycontent web parts.

Few things i jotted down:
– Only picture library returns thumbnails in search Center.
– Queries you should know:
Contenttype:picture
Fileextension:jpg
Responsibilities:”SharePoint”
ContentClass:STS_Site –> will show a list of all sites that current user has access too.
Isdocument:1 –> will return only document
AssignedTo:username
ContentClass:STS_ListItem_Issue –> show list of only issues
ManagedProperty:value

– Those terms are OOB but can be made user friendly, by mapping them in Central Admin (creating managed metadata)

Tip:
– How to re-order the tabs on a result page
Open the tabs list settings, Change the URL “edit list” to “reorder”

– Refinement panel: avoid editing the XML in the dialog box, copy-paste it in an editor like notepad++, before copy-paste back to SharePoint, use the “unwrap effect” in notepad++ so that code goes back into a 1 line format.

Matthew showed a nice custom search result page for his customers scope showing custom refinement, a Bing map next to each person and links to the presence (Lync) information, change the phone number column to a hyperlink if you have Skype or IP phone. All his code will be available on his blog after the conference.

Tips:
– use Best Bets for important content. (central admin, search keywords)
– create a search keyword with some “bad” words so that you can redirect the result to a special article / text explains the company code of conduct.

Matthew showed us a search Center entirely customised that he called “Bingo” in reference to Bing and his dog 😉 and really looks like Bing with pretty search field and dynamic backgrounds. Proving that you can do a very advanced search interface that doesn’t even feel like SharePoint.

– Matt says the question he likes to ask clients most is “why?.. like a 4 years old”. Because too often customers want something but did not really evaluate the reason behind. For instance a department may want a list of contact alphabetically but why would they? “Well that’s how we always did”. Challenging the why sometimes helps them realise better of way of delivering information, may be through search.

– By inserting a people search core results web part to a home page, adding “responsibilities:”SharePoint” ” on the “fixed query” field of that web part setting will show the list of people having responsibility in SharePoint in the company. This way Matt showed how to display a list of item on a page by using search without being in search Center.

– create a list of the last documents uploaded by a user:
Drop the Search Core Results web part to a page. Use the fixed keyword query field and type exactly what to be retrieved, for instance the contenttype:SalesDocuments, sort the search web part by modified date and show only the last 5 documents.
The great advantage comes if sales people do not upload documents at the right location, it will still show on that page.

Bing and REST services :
Once you have a bing maps developer account. You can send an address and additional parameters such as size of maps and options to dev.virtualearth.net/rest…
Bing will return the image of the map at that location..
In Matt’s example he has a page with a search results of the latest pictures uploaded to a farm, an iFilter extracted the longitude and latitude, then jquery extracts the data from the search results and input them in the bing map on that same page.

Tip: use iFilter view tool from iFilterShop free download. This allows you to see the content of a file as the iFilter will see it, ie. all properties.

– How to add a new property to search results (for instanc coming from a new iFilter):
In central admin the new metadata crawled by the iFilter needs to be mapped to a managed property in “enterprise search service application”, re-crawl the search index, and add the extra columns to the search results web part XML.

Final point from Matt to information worker who wants to improve search : “make friend with IT”, you NEED someone in IT (it pros) who is going to help you to do all that pre-work of adding iFilter, indexing etc..

Resources:
Basic search Center editing : http://bit.ly/pCHMaW
Get the iFilterview: iFilterShop.com/downloads/ifilterView.zip

_____
SharePoint query content web part By Lori Gowin.
Although I have used this web part for years, I am always amazed that Microsoft expects the power user to do this customisation, I believe they run away as soon as they see XSL code, so I am here to see if Lori can show power user a better way that I may have missed.

– Query content WP can query a whole site collection or narrow down to site or list under.
The only way to filter them is inside the web part settings, they cannot use connected web parts.
Filter keywords can be used : [me] and [today].
Main issue of a content query web part is that there is no paging option, so if only 5 items showing the additional are not accessible.
Lori edits the default CQWP to show all tasks items in her site collection and changes the format to group by site, and add Status instead of the Comments value in the Description field. this shows a little bit more data in your page, but the style is still not great, as we all have seen it.

Now let’s talk XSL.
Don’t modify the OOB style sheet tags, make a copy of an existing one and edit them
-ItemStyle.xsl is to design the item
-Header.xsl is to design the grouping
Now in 2010 the list of columns is updated in the web part settings automatically (as opposed to how it was in 2007, and I remember that well !)
ItemStyle.xml is the file where to edit the content of the query content,
Dont forget to publish it as major version to reflect changes to the page where the web part is.
This webpart does have a cache so it may take a few minutes for a item to show up.

________
Creating reports without a degree by Virgil Carroll @vcmonkey

Virgil is talking abut BI and why they are important, showing graphs in both google charts and SharePoint and then SSRS.

-Why visual BI are so important:

  • Raw data are often confusing
    Users have different level of understanding
    Reports provide too much info

-How to decide tables vs. graphs?
“Depends on what to accomplish”

-What’s tool to use?
Free charting tools
SharePoint chart web part
Excel
Visio
SQL reporting services
Performance point
– visual data is only as good as your data is.

GOOGLE CHART WEBPART
Easy way to look at data from the current site as well as other sites.
The webpart Virgil uses is actually the one you can download on AMREIN which I have used last month too and is really easy.
I didn’t know that the webpart can even be connected to a choice filter webpart as is.
Tip: typing in the chart title “/trace” will show the error details in the webpart.

SHAREPOINT CHART WEBPART
Only available in the enterprise licence of SharePoint 2010.
Webpart can connect to another webpart easily.
Customisation of the chart allows to add anything field as a link, tooltip text etc.quite a lot of chart types, templates of colours are provided.
_________
Arriving to the end of the day, I resisted joining my colleague at the business track since they were finishing the day by drinking champagne, instead I am sitting at the Visio Services by Jennifer Mason.
I have seen Visio services examples before and implemented a short one myself but am always keen to know more business cases of using this more as I actually haven’t seen a client using it fully yet.

Visio is part of the insights components of SharePoint.
Insights includes: excel, Visio services, chart webpart, status , performance point.

Example 1 of using Visio services in SharePoint: use Visio sces webpart and use interactivity of links to change Visio pages when clicked.
User creating the file needs to have visio premium, as the file needs to be saved as a Visio web format.

2nd example of using it: have 2 connected webpart ps on a pag including a Visio services WP and change the selected shape on the Visio when an item is selected in the SharePoint view.
WP has connection option such as “get shapes to highlight from..”

3rd example is the reverse effect: when user clicks a diagram in Visio we can filter list webparts on the page. For instance showing documents that are related to the selected phase.
Each click will refresh the whole page. To avoid refresh the page , seek third part solution or custom code.
“the value of Visio services in 2010 is the webparts connections”

4th example: have a few shapes connected to SharePoint list ad display it on the page.
5th example : connect webpart and preview the Visio file in the SharePoint list, when clicked it shows in the Visio webpart (using send URL of Visio)

That’s it for my 3 days report in the International Sharepoint Conference.
Previous post are easily found searching for #isclondon on twitter, this blog and Matt Hughes’ blog.
Am finishing my day with Q&A with the IT-Pros experts panel, which a question came that made a long debate: ” how can business and IT pros break the bridge between them so that IT don’t decide changes without business approval”, a large subject.

20120425-163303.jpg

More ISCLondon updates and Minority report in SharePoint

April 24, 2012 1 comment

Today is the second day of the International Sharepoint Conference in London where something like 80% of the Speakers are from the US.
I have been asked if I could blog live on the event by Matt Hugues (@mattmoo2) on his blog and we are a few doing this, so you can read a good coverage at EngageInSharepoint from myself and others.

Despite the many technical and business related sessions I attended I picked a good subject to finish the day and for once I will talk a bit about it here as well as on EngageInSharepoint cause it’s not something we usually see: SharePoint content on a via an XBox KINECT.

The pics below speak for themselves, you can see Dan McPherson opening document libraries and images of his SharePoint site, using a very METRO interface that we are now getting more familiar to see on Windows mobile phones. Although a very early proof of concept what was interesting is the interest it generated in the room. A few life examples being picked by the audience where this could be very beneficial to access documents when fingers cannot do it via keyboard or mouse.

So what’s next? Go and download the SDK on Codeplex and start coding for KINECT !
Minority report was actually accessing Sharepoint documents !:-)

20120424-171603.jpg 20120424-171618.jpg

Full cover of the day at http://engageinsharepoint.co.uk

Categories: SharePoint Tags: , ,

Live blogging at International Sharepoint Conference

April 23, 2012 2 comments

[Edited 03/05/12]

This week I am blogging for the organiser Matt Hugues of the International Sharepoint Conference in London s find me there .

Categories: SharePoint Tags: ,
Design a site like this with WordPress.com
Get started