|
Simon Binaryjam Profile |
|
|
WSS3 – ItemAdded – deadlocked on lock
Simon Binaryjam I’ve been having a problem with an app I wrote. It works great, 99% of the time, but sometimes the ItemAdded event appears not to fire.
Now this is using a list with over 20,000 entries in it and its growing all the time. An associated list that references this list as a lookup has over 144,000 entries in it.
The event firing problem is becoming more frequent now as more users start using the system, there are at least 20 occurances in that 20,000 items, so it has to be fixed.
Managed [read]. Posted: Fri, Feb 12th '10 |
WSS Problem with Provisioning
Simon Binaryjam Been having a problem with SiteProvisioningProvider. Well I haven’t but apparently it causes problems down the line if things are not done in a specific order.
A nice man at microsoft diagnosed the problem and came up with the code you should run to ensure your not messing up the Web.
Here is a posting of the proposed solution to the bug we found (I don’t care if they don’t think its a bug, not sure if they do or don’t but I do!)
http://blogs.msdn.com/joerg_sinemus/archiv [read]. Posted: Tue, Nov 24th '09 |
WSS, Workflow, Who Actually approved this ?
Simon Binaryjam So I like many have a workflow that takes requests for Sites with a bunch of details for costing etc. Then when approved those Sites are created and permissions allocated.
What we did not have was a record of who actually approved the sites. Whilst this info is in the workflow history after a while that information gets purged, leaving us with Sites that were approved but by whom we know not.
So this is a simple case of changing the workflow and recording all of the approvers in the SPWeb pr [read]. Posted: Thu, Nov 5th '09 |
Sharepoint and ResX and a little tool
Simon Binaryjam I am doing lots of work in Sharepoint that requires resource files in english and german.
With a variety of developers before me different styles of editing the foreign language files emerged.
We have the default, leave it blank and it will switch to the nuetral file method. This leads to problems for the translator, if not Techie, they have to copy the keys and could introduce spelling errors (if you work like this provide a copy of the nuetral file and rename it).
The foreign file has the [read]. Posted: Wed, Oct 14th '09 |
WSS and PowerShell 2
Simon Binaryjam If you were one of the two people who read my last post on WSS and PowerShell I updated it a bit and it’s worth checking out the changes.
I thought this time I would just point out some of the very simple statements in PowerShell that differ from your usual C# so that you can quickly make a transition from one to another.
One of the first things any programmer might need to do in a script is conditions so here is a PowerShell condition and how it differs to c#
if ($i -eq 10)
{
write "It's [read]. Posted: Fri, Jul 31st '09 |
WSS3 Event Receivers
Simon Binaryjam I’ve been doing some work with List Item Event Receivers and thought I’d share my experiences.
First there are a bunch of events that can be raised, I won’t list all but here are some of the good ones
ItemAdding / ItemAdded ItemUpdating / ItemUpdated
There are also specific ways of dealing with the data in each of these events, those that are "ing" events then the changes have not been applied yet so you get the change values from the AfterProperties passed in, t [read]. Posted: Thu, Jul 23rd '09 |
WSS and PowerShell
Simon Binaryjam The more I do with SharePoint the more and more I an finding a use for PowerShell. I am using WSS as an application platform and using lists etc as a datasource. Provising what you want is not huge amounts of referential integrity and transactional control etc it works pretty well.
But when things go wrong, often the only way to quickly get in a fix something in a structured, repeatable and documented manner is PowerShell. Hell and its fun too.
So as a Sharepointy person what do you [read]. Posted: Thu, Jul 23rd '09 |
WSS 3 - Site Provisioning / List Security
Simon Binaryjam I’ve been having some more fun with Site Provisioning. I have a requirement that in my Prov code I need to alter groups. For most of my work I’ve been altering RoleAssignments in SPWebs with no trouble, however I came to do the same with a list as in an SPWeb.
Now I’m not sure if you can do security in the ONET but for my requirements I have $Resources that need concatenating together to form the group names (don’t ask). Which it can’t do so it has [read]. Posted: Mon, Jul 13th '09 |
WSS - Solutions
Simon Binaryjam Just a silly one.
I’ve decided to call the WSP solution packages for WSS, Wasps.
It really appeals to me that I can send our support department a bunch of wasps.
Technorati Tags: wss3,moss,sharepoint [read]. Posted: Wed, Jul 8th '09 |
WSS - ONET
Simon Binaryjam Whilst messing with a product some contractor of ours did for us (SURJIT I’m talking about you). I discovered a lovely piece of code.
The SiteDef had some SiteProvisioning code, it read an XML file to do additional processes as part of the site provisioning, rather handy in some cases.
But I did notice a few oddities.
In SiteProv he was creating lists. Also He was copying files from the file system into Lists. Some users just don’t have access to this part of the fi [read]. Posted: Wed, Jul 8th '09 |
WSS 3.0 - My {insert problem here} don’t work
Simon Binaryjam There’s some special secret code they don’t tell you about whenever something doesn’t work.
You change a list or a web or something and nothings happens.
It’s called the Update() method. Sshhhhh don’t tell anyone.
Technorati Tags: sharepoint,wss3,moss [read]. Posted: Mon, Jul 6th '09 |
Hands up if you hate STP’s
Simon Binaryjam Is it me ? Have I missed something ? Are STP’s the best thing on the planet for quickly creating SharePoint sites ?
Or is it as I believe the biggest pain in the backside for SharePoint developers to pick up someone else’s SharePoint project to make changes to the site definition pages only to discover they were hacked together in the interface saved as an STP and included in your project.
This is now the case for me on two of my inherited projects, I hate them. Now I kno [read]. Posted: Tue, Jun 30th '09 |
WSS 3 – AssemblyVersion - Gotcha
Simon Binaryjam Well what a great gotcha I had today. I have a WSS application you know custom list templates, event receivers web parts, everything you can think of except workflow.
So I have an upgrade for this, its a new dll and feature files. I use a build server that can automatically update the AssemblyVersion and automatically edit the dwp aspx ascx files etc to set the version number of the build, its very slick.
Forgetting one thing. SharePoint has never liked Version numbers. So I ap [read]. Posted: Thu, Jun 4th '09 |
SPUtility.SendEmail Function truncates text
Simon Binaryjam It would appear that
SPUtility.SendEmail function truncates the body of the email. I’m having this problem and so is someone else (here).
Not much more to add here, if anyone knows why or knows of a setting, love to here it
(please don’t post a workaround solution using .Net objects we can all figure that one out for ourselves thanks.)
Word of the day.
Damn.
Technorati Tags: sharepoint,wss [read]. Posted: Tue, Feb 10th '09 |
WSS - CAML and XSD schemas
Simon Binaryjam If you developing List Schemas drop what your doing and go and install this.
CAML.NET.Intellisense
It is an expanded wss.xsd file containing a lot of descriptions and possible default values. When coding in Visual Studio using this will alter the schema defs and give you uber intellisense on your schema files.
If you already use wss.xsd in Visual Studio you will need to remove your reference.
Now if you forgot how you did that then the usual way I found of configuring it was to goto
C:\Program F [read]. Posted: Tue, Feb 10th '09 |
WSS - ListView / Schema.xml and Embedding Javascript
Simon Binaryjam Many of you out there in SharePoint land will from time to time have the need to edit a list definitions schema.xml file to create your custom list. You may also have need to edit the List View in that schema file to create a different kind of view, one not possible to create by the SharePoint UI.
I have had need to do this recently. I needed a List View that highlighted expired items or tickets in my list. It needed to make them go red.
Now you might think that’s easy enough create a c [read]. Posted: Mon, Feb 9th '09 |
WSS SharePoint and Powershell
Simon Binaryjam This is just a quick note to ask the question
Are you using Powershell when developing your WSS application ?
Cos if your not your missing a trick.
When I build a SharePoint App that comes complete with data, for example you have a list definition and in the Elements file it pre-populates all your Admin Users and their details. Thing is if you using multiple deployment platforms for testing etc, Dev,Uat, Live for example then those values may not be the same on all platforms.
So do you have 3 [read]. Posted: Fri, Feb 6th '09 |
Custom Forms in WSS
Simon Binaryjam This isn’t going to be an essay or guide on how to do this, it’s just I’ve been doing this and had the following problem.
I have custom forms as the default ones don’t cut it, they don’t cut it cos of hierarchical dependencies in dropdown lists. Now I don’t have the time to do lots of ajax or try to fight to get some ajax framework approved by, whoever, to use in my product. So I’m using good old fashioned postbacks.
But postbacks on large fo [read]. Posted: Fri, Jan 30th '09 |
Songsmith
Simon Binaryjam In case you have not heard, Microsoft Research have come up with some song writing software. It’s called Songsmith.
The idea behind it is that you make up a tune in your head then sing it into songsmith. First you pick a music style and then a tempo and then sing away. Once recorded the software will analyse your song and the notes you sang,( hopefully you sang them in tune I don’t think it cleverly pitch shifts your voice, but I may be wrong ) and then it wil [read]. Posted: Thu, Jan 29th '09 |
Being Human
Simon Binaryjam Last night with tons of advertising and announcements (I don’t think), the first series of Being Human snuck its way onto the schedules.
Well done BBC for finally getting there with this series.
I’d love to tell you how good or bad it was but due to the marvelous media campaign I missed it, I stumbled across it half way through the episode where I managed to see all the characters and the new actors playing two of them.
Like I say I missed it so I wonder how the new actors wil [read]. Posted: Tue, Jan 27th '09 |
Blue Monday
Simon Binaryjam Other than a chest infection, which was quite bad and making me very sick monday morning, enough to take a day sick and the last resort book a doctors appointment, I thought it’s not that bad, after all I have a job at the moment, I don’t spend what I don’t have (usually) so I’m not in huge credit card debt, I get paid early in the month too. So not much to worry about at all.
Till I got out of bed. I phoned work to let them know I was sick and also off to the [read]. Posted: Tue, Jan 20th '09 |
SPQuery DateTime query and the Time ignored
Simon Binaryjam The U2U CAML Editor is great but it does mean you don’t take the time to learn CAML properly, eh-hum!
My queries were going very wrong and I couldn’t figure out why, so I pasted them into the CAML query tool and tested it and noticed it didn’t matter what time I set in my query it was ignored. The CAML editor doesn’t have an option to include time values, so I could not tell what was needed to make it work.
I found this blog post http://ucsharp.wordpress.com/2007/10 [read]. Posted: Thu, Dec 11th '08 |
WSS3, Workflow Hint
Simon Binaryjam When exploring workflow you might want to create a bit of code and have it execute and fire of the debugger to investigate all the properties your expecting are there.
Hint. In your Execute Code block where you write the code to check stuff out, its worthwhile placing this BEFORE any timeout events you have in your workflow, here I am sitting waiting for the next 60 minutes before my event fires.
In fact I’m finding that a call to Debugger.Break() doesn’t start the debugg [read]. Posted: Wed, Dec 10th '08 |
Using a ListViewWebPart for Search Results
Simon Binaryjam I have had to try and create a Search page that displays its result set in the style of a ListViewWebPart. This has proven quite tricky.
After a lot of Searching I found various articles on using SPQuery and then the List.RenderAsHtml(Query) to achieve this. However I found a rather large problem with this method, whilst it queries what I want it to the resulting HTML looks nice but does not do any kind of paging also whilst the sort and filter drop downs appear at the top of t [read]. Posted: Fri, Dec 5th '08 |
Ajax DeepZoom
Simon Binaryjam MS Live Labs have been playing with deepzoom, and for those without silverlight installed, you naughty people, you can now create a deepzoom image that can be navigated in Javascript, cool eh ? They call it Ajax DeepZoom
The link to the post detailing this explains pretty much what I just did then you can go and embed the Image. Now its a little tricker than they explain so here is some more details.
Now there are two ways to go here
1. Create your own deepzoom file in the composer and [read]. Posted: Tue, Nov 25th '08 |
Focus on that Bug - TFS
Simon Binaryjam One problem I find since I started using TFS is I don’t focus on one bug, I often solve several at a time sometimes interconnected sometimes not, often down to which one I feel like fixing as that, for me, yields better results. However its not always the best way, especially when working with others. Most of the time I don’t play with others so it works for me.
But I have to train myself to use this thing (TFS) better and part of that is pick a bug/task and stick to it.
[read]. Posted: Fri, Nov 21st '08 |
You SLACK B’tards - WSS Team
Simon Binaryjam I’ve been scratching my head this morning. I have some list templates as part of my feature that I have defined and I don’t want anyone to be able to create them again once the ListInstance is there.
So as part of my manifest file I have the following.
Yet the damn thing keeps showing up on the create lists page and it shouldn’t. Well according to the wss.xsd schema file this is a valid attribute and value yet it doesn’t work.
In the documentation its a val [read]. Posted: Wed, Nov 19th '08 |
Handy WSS / MOSS Debugging hint
Simon Binaryjam I’ve just had a chat with a colleague who was struggling to make one of our installers work. Which reminded me of the WSS course with Todd Bleeker I was on regarding debugging and quickly trying to debug or attach to something and Studio just isn’t playing.
When you know your going to have to debug some code repeatedly then there is a handy bit of code you can put into your webpart or control receiver event to force debugging to happen here.
Type in the code
System.Diagnostic [read]. Posted: Thu, Nov 6th '08 |
WSS 3 / MOSS Creating Views in CAML (List Definition)
Simon Binaryjam I have been creating custom Lists in CAML for deployment by features. As you do. I found out a few things that might be of help when you are creating them yourselves.
I am Assuming that you now how to create a list template and know what goes in a schema.xml to a point.
Concentrating solely on views here I found out this.
If you have a List View WebPArt you need one of these types of views, if you don’t LVWP don’t work.
….
Careful of BaseViewIDs being the sa [read]. Posted: Thu, Nov 6th '08 |
My SPQuery doesn’t work
Simon Binaryjam I had my first tortuous experience with SPQuery today and found out a few things. Now this isn’t a full explanation of SPQuery, I suggest Ted’s book for that.
Using the handy U2U CAML builder helps you build correct CAML, so start there. So here is an example query I created.
CS0000001 [read]. Posted: Thu, Oct 23rd '08 |
WSS3 - ControlTemplates, Won’t load ?
Simon Binaryjam Whilst developing an app for wss3/moss I had some trouble and I thought I’d share it.
One of the great things about new sharepoint is Delegate controls. If in your masterpage or other page you have a SharepointDelegateControl in there you can plonk your own replacement version in there. There are essentially placeholders for you to use for branding.
Now when I develop for wss I separate everything into various folders and name them appropriately usually in a namespace Style.
e. [read]. Posted: Thu, Oct 23rd '08 |
New Camera / Windows Live Gallery / Silverlight / PhotoSynth.
Simon Binaryjam I got a new camera, its a Canon EOS 400D (EOS Digital Rebel XTi). So I’ve been having a play. I’m no David Bailey by any means so I’ve been experimenting with it and things I do know something about. Tech.
First Windows Live Gallery. This is now my preferred photo management software. I pull photos off cameras with this and let it organise the folders. I use it for tagging my photos and viewing them quickly or using the search function and tags to locate [read]. Posted: Wed, Sep 3rd '08 |
KES?
Simon Binaryjam Today is sunday and the view in the picture is my street from the car when I just got home from swimming with J. What the picture doesn’t show because stupid camera phones are too slow is the bird of prey.
Our street is full of house martin nests in the eaves of the roofs. What I think is a kestrel seems to have got wind of this and I watched one pull a house martin right out of the air then claw it into the tarmac where it sat for a few minutes on the pavement corner right in front o [read]. Posted: Sun, Jul 27th '08 |
Sharepoint – WSS 3 / Moss
Simon Binaryjam Having recently attended a developer course in Wss3 development I intend to update many of the old 2003 web parts and techniques I had previously developed. However I have a backlog of stuff to clear at work and no environment to build them on as yet. When I get time and VPC sorted I will get round to it.
So anyone interested in sharepoint might want to subscribe to the sharepoint category of this blog (or not), rather than read the trite and silverlight and sap and other stuff. [read]. Posted: Tue, Jul 15th '08 |
Cats
Simon Binaryjam Cat went under the knife again, more teeth out. She’s fine and apparently has kidney and liver function far in excess of a cat of her advanced years (16) and will most likely live a lot longer.
The cats are part of the family so despite no pet insurance I keep paying for the treatments. I can’t “youth” my cats.
Now she’s home and getting better, I’m glad and fuss her endlessly. However it makes me think why the hell did I get cats in the first place.
I got [read]. Posted: Tue, Jul 1st '08 |
Best Silverlight Demo so far
Simon Binaryjam Whilst there have been some excellent demos out there and Im thinking Hard Rock here, this is undoubtedly the best so far and demonstrates what Silverlight will be fantastic for
http://www.mscui.net/PatientJourneyDemonstrator/
This is RIA at its best.
Technorati Tags: Silverlight Demo [read]. Posted: Thu, May 8th '08 |
Some Tools a .NET developer should not be without
Simon Binaryjam Recently I had the joy of trying to work with some Web Services from a 3rd party system not written in .NET. In this age of full understanding of XML and Interoperability and Basic Profile 1.1 compliance this was of course completely easy.
NOT!!!!
This was a complete pain in the neck. I had problems at every turn. Our existing .NET web service that provides a similar service, soon to be retired though, was written in .NET 1.1. So I just wanted to modify it rather than do an upgrade. The rem [read]. Posted: Fri, May 2nd '08 |
Mozy Update
Simon Binaryjam I’ve been running with Mozy now for quite a while. I had big intentions of testing it logged in as various users and not logged in etc etc and seeing how it works in different scenarios.
Well I haven’t had time for any of that. But then I have had no trouble with Mozy since installing it that would have made me make the effort.
It just sits there. So long as I leave the machine on now and again it will back-up the changes. I made some initial tests of downloading and comparing fi [read]. Posted: Tue, Apr 22nd '08 |
New WordPress
Simon Binaryjam Well I finally got round to upgrading to the latest and greatest version of Wordpress. This is just a note to let those who know, know that Fantastico upgrade worked fantastico and I never had to mess with it at all, even with a custom theme.
Lovely.
Once again I like A Small Orange as hosters. Bu then I am easily pleased lately.
[read]. Posted: Sat, Apr 19th '08 |
UK Photography
Simon Binaryjam A little story popped up on the BBC news site today entitled, “Excuse me sir“.
It’s about the number of people being pulled up by the police for taking photo’s in public places.
I’d like to take this time to point out to any UK reader, you are entitled to take photos in public of pretty much anything. Including other people. There are no privacy laws applicable for public places. You may find schools and enclosed kids playgrounds have rules about taking photos, s [read]. Posted: Thu, Apr 17th '08 |
Eco Kettle - Review
Simon Binaryjam A while ago we got an ecoKettle. It’s won awards for energy savings awards, but is it any good ?
It’s really simple to use. You don’t need instructions to figure it out just plug it in fill it up and go.
It’s larger than a normal kettle, as it has to store more water than a normal kettle, you can fill both reservoirs if you want before starting a boil cycle. The idea being that you fill one side and release what you need into the other as and when you want a cuppa, ide [read]. Posted: Wed, Mar 12th '08 |
Earth Hour
Simon Binaryjam Whilst I’m of the opinion that green things are generally good, like saving energy, there are some things that really don’t make much sense to me.
This is one of then http://www.earthhour.org/about. A bunch of cities are going to turn off the lights for an hour including many businesses, here’s a quote
On 31 March 2007, 2.2 million people and 2100 Sydney businesses turned off their lights for one hour - Earth Hour. This massive collective effort reduced Sydney’s energy [read]. Posted: Tue, Mar 11th '08 |
DeepZoom / PhotoZoom
Simon Binaryjam Straight of the back of the deepzoom announcement capabilities of Silverlight to comes photozoom.
PhotoZoom is a site created by mslivelabs and incorporates the DeepZoom technology. Don’t expect a full blown flickr site here, this is a demo obviously, but it demos beautifully the possibilities of DZ on a photo site.
So if you don’t know what DZ is or have seen PZ then pop along to my album I created here. Use the Mouse Wheel to zoom and left mouse to grab and move the canvas.
ht [read]. Posted: Tue, Mar 11th '08 |
IE8 Ajax Navigation - Integration with the browser
Simon Binaryjam One of the things that’s being touted as an improvement to IE8 is the integration with the navigation of the browser in AJAX. One example is your looking at a map and zoom in then you press the back button and it goes back to the previous page. In IE 8 you can get it to go back to the previous zoom.
One of the great things about AJAX apps, one of the things I was asked for by customers was get rid of that damn back button. The great thing about AJAX was the removal of the back button. [read]. Posted: Mon, Mar 10th '08 |
TEsting IE 8
Simon Binaryjam WebSlice Test
I’ve installed this on my dev box at home and god everything has slowed to a crawl.
Still there looks like some intersting features built in like web slices.
I’m gonna try and make this post one of them. [read]. Posted: Sat, Mar 8th '08 |