Wednesday, December 12, 2007

MOSS SP1 Fix List

Avoiding the temptation to be the millionth blogger to say that SP1 has been released I thought id take a different tack and link to the list of issues that SP1 resolves. Also the WSS 3.0 SP1 Fix List can be found here

Hands up for volunteers to go through the lists and check them off ;-)

Tuesday, December 04, 2007

Removing 'This Site' from the Search Control

I was recently asked to remove the 'This Site' scope from the Search scopes drop down in the header of my custom master pages, and as I wasn’t quite sure how or why it got there it sounded like it would provide a nice challenge for the afternoon.



Firstly the reason why they are there; this turned out to be due to the fact we were simply using the Search delegate control normally included on OOTB master pages/page layouts, which looks roughly along the lines of...

< asp:contentplaceholder id="PlaceHolderSearchArea" runat="server">
< sharepoint:delegatecontrol runat="server" controlid="SmallSearchInputBox">
< /sharepoint:delegatecontrol>
< /asp:contentplaceholder>

By default this control includes contextual scopes ('This Site'/'This List') as well as the custom scopes that you have defined for your site collection.

It looked a little light weight and puny so i swapped it out with the much bigger tougher looking;


< spswc:searchboxex id="SmallSearchBox" 
runat="server"
registerstyles="false"
textboxwidth="160"
usesitedefaults="true"
dropdownmode="ShowDD"
suppresswebpartchrome="true">
< /spswc:searchboxex>

The property that we need to look at here is the DropDownMode property, by setting its value to 'ShowDD_NoContextual' we successfully get rid of the 'This Site' contextual scopes.


Job done...



Or so I thought...


What I didn’t count on was my List view pages (AllItems.aspx) doing whatever the hell it pleases and ignoring the change I’d made to my master page. When I went to view the list I was given not only a ‘This Site’ contextual scope but for extra value a ‘This List’ contextual scope.




Some digging around lead me to discover that for some rather strange reason MS have made the ViewPage.aspx template (located at %12hive%\Template\Pages) explicitly overwrite the Search placeholder with the simple search control detailed at the beginning of this post. I’m baffled as to why given that the Form.aspx template located in the same place doesn’t do the overwrite!


As the majority of OOTB lists use this ViewPage.aspx to create its default AllItems.aspx it puts one in quite the little predicament.

I'd love to hear suggestions on how to get around this without simply modifying the OOTB ViewPage (naughty, naughty) or writing another JS hack. ;-)

Saturday, December 01, 2007

Removing 'Alert Me'

I hunted around for ages trying to find out how to remove this little sucker, it turned out to be a permission level within the site collection.

Site Settings > Modify All Site Settings > Advanced Permissions > Settings > Permissions Levels >

Select the ‘Read’ permission level then unselect the ‘Create Alerts’ option.

This will stop all users with the 'Read' permission (usually all authenticated in a typical intranet deployment) from being able to create alerts, although users with the contribute, full control etc permissions will still be able.

Alternatively you can disable the create alerts feature altogether from central admin by following these steps…

Central Admin > Application Management > User Permissions for Web Application

Unselect the ‘Create Alerts’ option.

Monday, November 12, 2007

Sydney SharePoint User Group November

This months user group sees AvePoint present some considerations when implementing disaster recovery within your organisation and how their award winning backup and recovery solutions targeted at the Microsoft SharePoint Platform can help.

Date: Tuesday, 20th November 2007
Start time : 17.30
End time: 20.00
Venue: Unique World, Level 14, 24 Campbell St Sydney

Also a reminder that this is the final session for the year, as we dont hold a December session.

Tuesday, October 16, 2007

Sydney SharePoint User Group October

This months user group will feature an interactive session with Microsoft SilverLight Evangelist Michael Kordahi. Michael will present demonstrations on this new technology and explore how it can be incorporated into your SharePoint environment. Following that there will be an open floor to probe Michael further on the technology and fire him ideas and questions.

Additionally we will have a short 'real world' SharePoint presentation where one of the user group members will present on their experience using WSS for a public facing site.

Date: Tuesday, 16 October 2007
Start time : 17.30
End time: 20.00
Venue: Unique World, Level 14, 24 Campbell St Sydney

Sydney SharePoint User Group : New Site

We now have a new digital home for the Sydney SharePoint User group -http://www.sharepointusers.org.au/sydney

Making use of the SharePoint Community Kit we now have a WSS3.0 site up and running to bring our members all the neccessary information for user group events, presentations and other community news. This is the first stage of making the user group site a more interactive experience for our members so visit the Discussion Board and post your comments, feedback and suggestions.

Also be sure to visit the site and subscribe to the Events RSS Feed to have Event details drop into your favourite RSS Reader.

Tuesday, September 25, 2007

Tip: Customising Content Query Web Part XSL

There has been a plethora of articles on customising the XSL of a content query web part, some even from Microsoft ;)

I wont run over the step by step process but just add to this wealth of information a little tip on making the XSL a little easier to manage and support.

As we have learnt the XSL used to render the output is split into 3 files;
ContentQueryMain.xsl
ItemStyle.xsl
Header.xsl

All three of these files will exist in the '\Style Library\XSL Style Sheets\' library of a site created using the Publishing template.

Instead of modifying these files it is possible to create your own custom XSL style sheets for each and tell your CQWP to use these by specifying the properties as follows;

HeaderXslLink = "/Style Library/XSL Style Sheets/customHeader.xsl"
ItemXslLink = "/Style Library/XSL Style Sheets/customItem.xsl"
MainXslLink ="/Style Library/XSL Style Sheets/customMain.xsl"

Tuesday, September 18, 2007

Event: OZ-IA/2007

This coming weekend (22nd/23rd Septemer) is the Oz-IA/2007 conference in Sydney, specfically geared towards Information Architecture and UX. The conference promises two days of sessions, comprising of technical workshops, case studies and interactive workshops on all things IA.

Being in the information management arena i take a very keen interest in this subject so will be attending in the hope of learning lots of great stuff about IA/UX and how i can apply these techniques, methods etc when defining and delivering SharePoint solutions.

Heres an idea of the topics/presentations being covered;

Further information on presentations here: http://www.oz-ia.org/2007/program/sessions

Visit the website for further details and to register : http://www.oz-ia.org/2007/

See you there!

technorati tags:, , , , , , , ,

Tuesday, September 11, 2007

Sydney SharePoint User Group September

We have a very exciting presentation at this months Sydney SharePoint User Group; MVP Kathy Hughes will be revisting the presentation she gave at this years TechEd on branding and customising MOSS sites.

TechEd in Rearview: Branding and Customizing Microsoft Office SharePoint 2007 (MOSS) Sites

With the release of Microsoft Office SharePoint Server (MOSS) 2007, building and deploying a robust content-centric site has become quick and efficient.

And, with each site deployment comes the need to alter the site look and feel. In this session we review components of the user interface and their interworking relationships that ultimately create the rendered page. For the majority of the session, you will learn how to brand a site and customise the user interface through use of master pages, CSS, and page layouts. In addition, we touch on interface customisation of site navigation and branding site administrator screens. By the end of this session, you will see a site that is completely branded and easily stands apart from the out-of-the-box look and feel of SharePoint.

Date: Tuesday, 18 September 2007   
Start time : 17.30   
End time: 20.00   
Venue: Unique World, Level 14, 24 Campbell St Sydney

Further details and registration information are available at http://sps.uniqueworld.net/sydney

technorati tags:, , , , , , , ,

Monday, September 10, 2007

Stefan Goßner : Content Migration API - 4 Part series

Bookmarking this 4 part series on Content Deployment and Migration which goes into great detail on using the Content Deployment API to acheive importing and exporting of Site Collections, Lists, Document Libraries List Items etc.

Part 1

Part 2

Part 3

Part 4

Blogged with Flock

Tuesday, August 21, 2007

Sydney SharePoint User Group August

This months Sydney SharePoint user group sees a double team from LivePoint with Brad Saide presenting on the Business Data Catalogue and Han Duong hosting a discussion on Customising SharePoint Themes.

Following on from this Jey from K2 will be showcasing their BPM Product K2 'blackpearl'.

For more information see http://sps.uniqueworld.net/Sydney/default.aspx

technorati tags:, , , , , , , ,

Blogged with Flock

Wednesday, August 15, 2007

Debugging in SharePoint

A recent project required us getting a good understanding of existing code and sorting out some bugs that we're occuring. In order to get a handle on what was occuring we had to setup debugging and add some expectation to the 'Unexpected Errors'!

The first step is to enable debugging in the web applications web.config by making the following changes;

<SafeMode MaxControls="200" CallStack="false" ...> <!-- Becomes -->
<SafeMode MaxControls="200" CallStack="true" ...>

<customErrors mode="On" /> <!-- Becomes -->
<customErrors mode="Off" />

<compilation batch="false" debug="false"> <!-- Becomes -->
<compilation batch="true" debug="true">

Kudos to Renaut Comte on this tip.

There is also a Killer post from Vince Rothwell with a whole bunch of tips for debugging SharePoint exceptions.

And of course, with features being the new black, there has been a feature created that you can simply install and activate on your server and see it surface in the Site Actions menu. "The feature provisions a simple page, which executes the System.Diagnostics.Debugger.Launch statement, causing an exception to be thrown and the debugger to be auto-attached." Very Cool!

Head on over to the SharePoint Team blog for more information on this;
http://blogs.msdn.com/sharepoint/archive/2007/04/10/debugger-feature-for-sharepoint.aspx

The feature is part of a bigger SharePoint 2007 Features pack available on CodePlex

technorati tags:, , ,

Blogged with Flock

Wednesday, August 01, 2007

Request a Hotfix web form

Im sure many of us have had to request a hotfix at some stage ;-) now its even easier than making a call to the product support line - you can request it using a web form!

https://support.microsoft.com/contactus2/emailcontact.aspx?scid=sw;en;1410&WS=hotfix

Simply provide a few details such as the country/region, KB article number and a hotfix will be emailed to the email address provided.


technorati tags:,

Blogged with Flock

Wednesday, June 20, 2007

RSS Web Part Error

I was receiving the following error in my logs after id deployed a RSS Web Part at a client site:

RssWebPart: Exception handed to HandleRuntimeException System.Net.WebException: Unable to connect to the remote server

Id seen a similiar problem to this resolved before but couldn't find the information so thought I would post for future reference

Adding the following to the system.net node at the bottom of my web.config sorted error right out;

<defaultProxy>
    <proxy
       usesystemdefault="false"
       proxyaddress="http://proxyaddress:port"
       bypassonlocal="true"
      />
</defaultProxy>


technorati tags:, , , , ,

Blogged with Flock

Thursday, May 24, 2007

MOSS 2007 RTM bug : Content Deployment : Strange Characters : Revisited

Another content deployment post revisited. This problem, as i mentioned in my previous post, was confirmed as a bug with MOSS 2007 RTM and due to be fixed in SP1.

Peter Hoplar, however, continued his hunt for the encoding problem and has written a 2 part post in great detail;

'Hunting the encoding problem in content deployment' - Part1 and Part2

Content Deployment Problem : Violation of PRIMARY KEY constraint : Revisited

In a previous article i blogged on how to get around a 'Violation of PRIMARY KEY constraint' error that i had cropping up in a Content Deployment Routine. This unfortunately doesn't mean that you won't see the error again! I've had this error return so some further research lead me to comments posted on Ton Stegman's content deployment blog by Ryan Steeno.

To summarise Ryans comments, after some extensive tracing (understatement) he ascertained that having the versioning settings of any of the Site Collection Libraries (Images/Documents/Style) set to Allow Multiple Only seemed to resolve the issue.

Note : There are also reports of this error using the stsadm utility import/export operations which Peter Holpar has managed to resolve.

Wednesday, May 02, 2007

MOSS 2007 RTM bug : Content Deployment : Strange Characters

I've been experiencing some problems with strange characters appearing in deployed content pages on a WCM site.

So far i've found that if my RichHTML field contains a '&nbsp;' (in the HTML code view) once it has been deployed to my target server it gets rendered as an Â.

I've also noticed that the apostrophe and quote marks pasted in from word result in ’ and “ (begin quote) / ” (end quote) once the content deployment job has run.

Microsoft have confirmed that this is a bug with MOSS2007 RTM and have promised a fix in SP1.

In the meantime, this can be worked around by a bit of fiddling in the source content. Open up the page in edit mode and using the RichHTML editor replace word pasted apostrophes and speech marks.

technorati tags:, , , , , , , , ,

Blogged with Flock

Tuesday, May 01, 2007

SPS 2003 Upgrade to MOSS 2007 : /_layouts/mngsubwebs.aspx

I've come across a permission problem which has tripped me up after what i thought was a successful upgrade from an SPS2003 site to MOSS 2007.

In my old SPS2003 site every site (approx 50) uses a 'Links' web part at the top of the landing page that contains a link to '/_layouts/1033/mngsubwebs.aspx'. If i browse my old SPS2003 site with just read access then no problem. However, i try the same links on the upgraded MOSS 2007 site using a read only account and im confronted with 'Access Denied' messages.

The workaround i came up with was to change the link to :

'/_layouts/viewlsts.aspx?ShowSites=1'

The shows a similar view.

technorati tags:, , , ,

Blogged with Flock

Friday, April 27, 2007

Team-Based Development in Microsoft Office SharePoint Server 2007

A few months back a colleague of mine, Ivan Wilson, posted on  trying to work out the best approach to developing on MOSS 2007. It didn't really spark much debate but i've just come across an excellent MSDN article by Eric Charran that discusses team based development.

technorati tags:, , ,

Blogged with Flock

Thursday, April 26, 2007

InfoPath Form Error : Reference to undeclared entity 'nbsp'

I was getting the following error message logged in the event viewer when users were trying to submit a browser enabled InfoPath Form via email;

Exception Message: Reference to undeclared entity 'nbsp'

I found the solution here;

http://support.microsoft.com/kb/931426/en-us


technorati tags:, , ,

Blogged with Flock

Tuesday, April 24, 2007

Content Deployment Problem : Violation of PRIMARY KEY constraint

I had a content deployment job that had been successfully exceuting the deployment of changed content for many weeks until i started getting this error show up;

-------------------------

Publishing:Content deployment job failed. Error: 'System.Data.SqlClient.SqlException:Violation of PRIMARY KEY constraint 'PK__#ExportObjects____459C5949'. Cannotinsert duplicate key in object 'dbo.#ExportObjects'.

The statementhas been terminated.
   atSystem.Data.SqlClient.SqlConnection.OnError(SqlException exception, BooleanbreakConnection)
   atSystem.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception,Boolean breakConnection)
   atSystem.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObjectstateObj)
   atSystem.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommandcmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReaderds, RunBehavior runBehavior, String resetOptionsString)
   atSystem.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehaviorcmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   atSystem.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResultresult)
   atSystem.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result,String methodName, Boolean sendToPipe)
   atSystem.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   atMicrosoft.SharePoint.Utilities.SqlSession.ExecuteNonQuery(SqlCommand command)
   atMicrosoft.SharePoint.Deployment.SPExport.CalculateObjectDependencies(BooleanlinksOnly)
   atMicrosoft.SharePoint.Deployment.SPExport.FollowLinks()
   atMicrosoft.SharePoint.Deployment.SPExport.CalculateObjectsToExport()
   at Microsoft.SharePoint.Deployment.SPExport.Run()
   atMicrosoft.SharePoint.Publishing.Administration.ContentDeploymentJob.DoServerToServer()
   atMicrosoft.SharePoint.Publishing.Administration.ContentDeploymentJob.ExecuteJob()
   atMicrosoft.SharePoint.Publishing.Administration.ContentDeploymentJob.Run(BooleanrunAsynchronously)
   atMicrosoft.SharePoint.Publishing.Administration.ContentDeploymentJobDefinition.Execute(GuidtargetInstanceId)'

 For moreinformation, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

-------------------------

To resolve this i took the following steps;

1. Log onto the source server and goto Operations > Content Deployment Paths & Jobs.

2. Delete the path that holds my changed content job

3. Restart the Timer Service

4. Recreate the path and job.

To resolve this i took the following steps;

1. Log onto the source server and goto Operations > Content Deployment Paths & Jobs.

2. Delete the path that holds my changed content job

3. Restart the Timer Service

4. Recreate the path and job.

technorati tags:, , , , ,

Blogged with Flock

Tuesday, April 10, 2007

Komatsu WCM site live!

The projet which has consumed many of my hours over the past few months has finally gone live! Its been a fantastic learning experience and journey into the world of web content management with MOSS, so well done to all involved at Unique World.

http://www.komatsu.com.au

Now, where do i get me one of those big yellow diggers!?

technorati tags:, , , , , ,

Blogged with Flock

Thursday, April 05, 2007

M. I. A.

Ok ok, so the gusto expressed in my introductory posts didn't really eventuate and the observant amongst us will note that a post hasn't been made since; over 6months ago! I'd  previously excused myself with the usual 'too busy', 'not enough time' blogging excuses but after chats with a couple of my Unique World stablemates, Gayan Peiris and Ishai Sagi, i realised i was approaching blogging from the wrong angle. The advice they departed was to 'blog for yourself'! So with that said im sorry to me for not blogging sooner!

So here goes... my SharePoint blog... take 2!

technorati tags:, ,

Blogged with Flock