Troubleshooting Sharepoint

Not everything on a sharepoint project goes well Smile

Some links to resources that can help when you need to troubleshoot....

Scot Hillier has a great post on troubleshooting

Microsoft have a Sharepoint Best Practise Analyser

MSDN MOSS 2007 troubleshooting

Technet MOSS 2007 troubleshooting

Sharepoint Manager (great for exploring the configuration and seeing all those properties / settings not accessible in the browser)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Sharepoint and Accessibility

A common requirement when undertaking interface design for Sharepoint is to make the interface accessible (accessible meaning that users with visual or other impairment).

In the UK, the Disability Discrimination Act implicitly states that an intranet should be accessible to all employees, so even your private intranet should be capable of coping with user impairments.

The Sharepoint Team issued a statement a while back (pre release) about the accesibilty capabilites of Sharepoint

Customising the Sharepoint interface to make this work can be a real uphill task. The interface uses a lot of nested tables making relative font sizing difficult as noted by Diantha. The Sharepoint accessibility kit can be your friend here though.

An example of the kits usage is show below - a resizing tool to change absolute to relative sizing

 

But beware, this does not 'magically' fix your accessibility problems and you still need to consider the interface requirements early on.

The kit also includes a set of more accessible style sheets that can be applied

Another great resource for Sharepoint design, including accessibility is Heather Solomon

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

MOSS vs WSS

One of the questions we are most frequently asked by our clients is whether they should be using Windows Sharepoint Services (WSS) or Microsoft Office Sharepoint Server (MOSS).

The normal tradeoff is between licensing cost & functionality required.  In some scenarios the client can achieve their desired requirements through a combination of WSS and some customisation to deliver the components which would have come with MOSS.  In other scenarious the additional functionality delivered by MOSS clearly outweighs any additional licensing costs.

For those that don't know the difference, WSS is the foundation for MOSS and delivers a lot of the core functionality in Sharepoint such as team sites, document management, collaboration capabilities, search and so on...MOSS then adds an extra layer on top of WSS and provides a significant level of additional functionality.

The main areas that we find usuall 'sell' MOSS are:

  • Content Publishing
  • My Site Functionality
  • Extended Indexing and Search Capabilities
  • Content Targetting through Audiences
  • Ability to Integrate into Back End Applications
  • Infopath Forms Services

There is a more detailed comparison here or if you contact us we can send you a more detailed spreadsheet with detailed functional differences.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

CD Recording

I'm quite often asked while in casual conversation what I do outside of work (assuming I have spare time!)

For many years, I've played the Cornet & Trumpet. Most of this has been in brass bands, although I have played in orchestras, swing bands and other groups. Indeed for a while I played semi-professionally in theatre orchestras.

I now play for a local brass band - Langley Band. Aside from personal practise at home, I rehearse twice weekly & perform across the UK aprox. 20-30 times a year.

I've found a couple of photos 'in action' on the web, mostly from the Whit Friday Marches (made famous by the film 'Brassed Off'). look here

Below is the latest publicity photo, I'm far right (looking not so happy???)

This weekend (25 & 26 April) see a change from concerts as the band will be recording a new CD. So off to the venue for 12 hours of recording!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Text Editors

I'm in the process of rebuilding my laptop (Lenovo T60) and our new development machines. As part of the build, I've been looking at a replacement editor for our old friend, notepad. We have historically used notepad as the lightweight text editor to modfy files such as xml, web.config, .webpart or even xsl in the past, but while notepad has its uses, it also has the huge limitations (e.g line numbering, tabs, colour formatting) etc.

I've chosen Notepad++ and have to say I'm pretty impressed. It is prett lightweight, has all of the above features, plus more. Some of the key highlights I'd point out...

Colour formatting - you can choose the language (e.g. development language not locale) and have colour formatting.

So if we are editing SQL we get...

[code:tsql]

SELECT CISF_CLINICAL_SERVICES.Clinical_System_Code, CISF_CLINICAL_SERVICES.ABC_ServicePlan_Code,CISF_CLINICAL_SYSTEM.Clinical_Name
FROM CISF_CLINICAL_SERVICES
INNER JOIN CISF_CLINICAL_SYSTEM
ON CISF_CLINICAL_SERVICES.Clinical_System_Code = CISF_CLINICAL_SYSTEM.Clinical_System_Code
WHERE CISF_CLINICAL_SERVICES.Team_Code = '1'

[/code]

If c# we get...

[code:c#]

 public DataSet GetWSSFilesFromFolder(string WebName, string FolderURL, string MetaData)
        {
            bool metaData = Convert.ToBoolean(MetaData);
            //assumes that the  SPSite URL is defined in web.config
            string spSiteUrl = ConfigurationManager.AppSettings["Novotronix.WSS.DocumentService.SPSiteUrl"];
  } 

[/code]

The application also has a number of add-ins available, a great one being able to compare two files. This is great when looking at differences in suorce code from Source Safe

For me, the syntax highlighting saves having to load Visual Studio to get legible code if you just want to view / copy etc.

An alternative could TextPad (which Dave would prefer :) )

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Pictures from Sharepoint Conference in Seattle

Still haven't got round to summarising what was an excellent Sharepoint conference in Seattle last month.  Will hopefully post a bit more about that soon and how some of the sessions benefitted the Sharepoint & Infopath projects we are currently working on.

For now I'll just post some of the pictures from the trip.  Food & drink seem to feature heavily - it was hard work honest!  Oh and you might just be able to make out Bill Gates in the distance on his keynote presentation - unfortunately I was limited by my camera phone.

Cue gratuitous use of Silverlight picture gallery... 

[silverlightslideshow:Seattle]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Novotronix look for an ASP.net developer to join team

Good News!

Due to an increase in workload with our corporate client base our Sharepoint & Infopath team are looking to recruit a new ASP.net developer. 

You'll get to work on some exciting projects with some of the largest companies in the UK & if you're the sort of person who will thrive in a young, energetic growing company then send us your CV via the contact page on the menu to the left.

Naturally we would expect you to be technically competent in ASP.net (particularly C#), XML, XSLT, CSS and HTML.  Any Sharepoint and/or Infopath knowledge/experience would also be beneficial. 

This is open to any candidate looking for a full-time position based in our head office in Wolverhampton.  We are not looking to recruit for this position via an agency so please respect this and do not contact us if you are indeed an agency (this wastes our time & yours!)

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

WebServices and InfoPath

I'm a big fan of using WebServices to take the code and logic away from InfoPath.

Although you can use managed code inside an InfoPath Project, for me it makes sense to use simple button / control rules (that can be defined in the InfoPath designer) and use a WebService to do the hard work.

As an example, we needed recently to be able to check for Sharepoint document libraries and optionally create them from within InfoPath.

We created a WebService to do this. The service could run on the Sharepoint server, and hene use the Sharepoint Object Model. This gave us a relatively simple service...

(note the following code has been simplified for the blog purpose)

[code:c#]

public string CheckWSSFolder(string WebName, string ParentFolder, string FolderName, bool CreateFolder)
        {
            string returnMessage = string.Empty;

            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite("http://serverurl"))
                {
                    site.AllowUnsafeUpdates = true;
                    using (SPWeb targetWeb = site.AllWebs[WebName])
                    {
                        targetWeb.AllowUnsafeUpdates = true;
                        if (! CreateFolder)
                        {
                            try
                            {
                                SPFolder rootFolder = targetWeb.GetFolder(ParentFolder);
                                SPFolder targetFolder = rootFolder.SubFolders[FolderName];
                                returnMessage = "Folder Exists";
                            }
                            catch (System.Exception err)
                            {
                                returnMessage = "Folder Not Found " + err.ToString();
                            }

                        }
                        else
                        {
                            try
                            {
                                SPFolder rootFolder = targetWeb.GetFolder(ParentFolder);
                                rootFolder.SubFolders.Add(FolderName);
                                returnMessage = "Folder Created";

                            }
                            catch (System.Exception err)
                            {
                                returnMessage = "Folder Not Created: " + err.ToString();
                            }
                        }
                        targetWeb.AllowUnsafeUpdates = false;
                    }
                    site.AllowUnsafeUpdates = false;
                }
            }
            );
            return returnMessage;
        }

[/code]

Using this example, we could then create InfoPath data connections to consume this service. The connection type can be a simple 'read' service and the button / control rules can set the service input parameters...

Button Rules (xpath removed for simplicity)

Rule1
Set a Fields Value, Field = WebName, value = "the SPWeb Name"
Set a Fields Value, Field = FolderURL, value = "Folder URL or SubFolder URL (e.g. folder/subfoler)
Set a Fields Value, Field = CreateFolder, value = false

Rule2
Query using a Data Connection, connection = "Web service connection"

Rule3
Set a Fields Value, Field = my:Fields/my:FeedbackNode, value = message returned from webservice

Within the example above, two things to note:

a) We are using RunWithElevatedPrivileges to let the service run with full privilages

b) The AllowSafeUpdates = true had to be set to allow folder creation, then revoked at the end of the service.

Of course, the service can be used now by any InfoPath or other project.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

ASP.net starter kits

For anybody involved in ASP.net based software development you may have noticed a suite of resources available on www.asp.net called starter kits.  I wonder though how many people have actually delved into these (I know many software companies who weren't aware of them)?

As the name suggests these starter kits are great starting point for a number of type of projects whether they are content managed websites, community websites, blogs, classified websites and so on.  We've used these as the basis for a number of developments - for example, a website that we recently developed for a property agency called Property Clever utilised the classifieds starter kit.  We did have to undertake quite a bit of customisation but I think we could reasonably estimate that the kit saved us in the region of a 3rd of the overall development timescale.  And I don't care to imagine how much time we've saved by utilising and customising the DotNetNuke CMS starter kit.

On other projects we have used components from these starter kits e.g. content manager web parts, e-commerce modules and so on.

Who says open source & Microsoft are mutually exclusive! 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

SourceSafe with Visual Studio 2008

A problem I recently encountered, I couldn't open any projects from Visual SourceSafe after installing Visual Studio 2008.

The answer - there is an update to VSS2005 that needs to be applied. The update fixes a number of other minor bugs also.

Download from http://support.microsoft.com/kb/943847

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

 

Dilbert of the day