Monday, June 29, 2009

Secure Metadata in WCF

I've set up a service to be hosted in IIS using wsHttpBinding and want the mex endpoint to be secure as well. I got the following error:

Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.

There is no way I can have anonymous access enabled in IIS so what do you do?

Short answer: don't use mexHttpsBinding (or mexHttpBinding for that matter).

I've already got a wsHttpBinding and associated binding configuration, so I've just modified the existing mex endpoint.

From:

<endpoint address="mex" binding="mexHttpsBinding" name="mexHttps"
contract="IMetadataExchange" />

To:

<endpoint address="mex" binding="wsHttpBinding" bindingConfiguration="wsSecureBinding" name="mexHttps" contract="IMetadataExchange" />


This assumes you already have a bindingConfiguration called wsSecureBinding.

Friday, June 12, 2009

Convert VS2005 to VS2005 changes xml namespace of typed dataset

A warning for anyone who is converting a solution from Visual Studio 2005 to Visual Studio 2008 - the conversion wizard may change the xml namespace of your strongly typed datasets. 

I've just had a scenario where an upgraded project failed to perform the typedDS.ReadXml() method. The xml fragment to be loaded had the namespace specified and hence since the ds namespace was changed no longer loaded the xml. This resulted in an empty dataset. After some digging I found that the namespace in the typedDS.Designer.cs file had been changed as part of the conversion.

Cheers.

Friday, December 19, 2008

Payment Required

Living in the UK still provides a few surprises even after being here for 18mths now. I'm used to have to pay for parking... everywhere you go, but I wasn't prepared when I had to pay to pump up the tyres of my car. I went to a different garage since I refused to be charged. There also you had to pay. I asked a taxi driver who had just finished using the pump if there was anywhere that you didn't have to pay. Nope, you pay everywhere. Wow. It was only 20p, but it all adds up.

Wednesday, June 25, 2008

100km of dirt for charity

A few weeks ago I did a 100K mountain bike ride. It was a great challenge (took me about 7 hours) & I enjoyed it. So much so I've decided to do another one. But this time I'm going to raise some money for charity. My chosen charity is HOPE worldwide. Would you like to sponsor me? Please do. I'll be doing the ride on the 6th July in Wales. It’s a tough course and worth the effort to raise money for a charity. 2800m total climbing (about the same as going up and down Snowdon three times in a day).

HOPE worldwide are an international charity who I've fundraised for before in Australia. Over here in the UK they do work with the homeless and drug addicts. The homeless project is called 2-step. And it's a very simple, basically HOPE finds homeless people who want to get off the streets (believe me, not all do, which does seem a little bizarre to me, but that's what some choose) & then finds them a place to live, puts up the deposit and gets them started with the basics - clothes, linen, food etc, whatever they need. HOPE pays the rent and helps them to claim the benefits they're entitled to. The UK does have a great welfare system, but unfortunately it is dependent on having an address, and so once you're homeless it can be a very difficult cycle to get out of. Once in accommodation, these people can then make the necessary claims, get work etc, and so become self sufficient.

The charity website is at http://hopeworldwide.org.uk/ if you're interested have a look and you'll see some info about the other work that is carried out in the UK.

Please sponsor me, it is a worthwhile cause and I'll be riding very hard!

I have set up a justgiving webpage where you can sponsor me http://www.justgiving.com/scottwakefield




Saturday, May 03, 2008

SharePoint 2007 Wiki Features (not)

GrabBag<T>: SharePoint 2007 Wiki - not a fan

The other great news is that iframes are not supported in SharePoint 2007 Wikis. I had the cheek to put an iframe of a TWiki page into a SharePoint wiki page (using the HTML view). It stripped out the iframe tags (and left behind the alt text).

Thursday, April 17, 2008

Hotmail and Firefox

I still use my old hotmail address for signing up to websites about the place, plus its still linked to my live ID/windows Passport. I usually sign into mail.live.com using IE but since IE had crashed and wouldn't work I opted to use Firefox. The reason I don't normally do this is when you view hotmail in Firefox it only shows the old layout. Well today I was pleasently surprised to find that the new hotmail layout now works in Firefox as well. This is great news. Now all I need is for Microsoft to allow Firefox users around all the different microsoft web sites and I'll never have to use IE again. :)

Wednesday, April 09, 2008

Scrum and Prince2: working together?

At the London Scrum Gathering, in the OpenSpace, I started a discussion about Scrum and Prince2. This post is the results of that discussion.

Credits to Julian Harris and Nigel Baker who did a lot of the talking.

Ways to use Scrum and Prince2 together:


Scrum and Prince2


1. Royalty-free (i.e. no Prince)
Fairly self explanatory - don't use Prince2 at all. Using Scrum only, completely unimpeded by artefacts of Prince2, is the most efficient way of operating.

2. Barnacle / Anchor
Use Scrum but still use some of the "stabilisers" from Prince2 such as Risk Log, Issue Log, Highlight Reports. Helpful for organisations that are still new to Scrum and want some additional assurance. Using the stabilisers still comes at a cost though and these should be included as Sprint Backlog items to illustrate to the Product Owner how much effort they are costing.

3. Work Packet/Package
Scrum is only used for the delivery of a work package (i.e. a Prince2 work package). The work package may equate to one or many sprints, but Scrum is just used to execute the work package, the rest of the project management is done in the Prince2 method. It is also known as an "incremental death march", i.e. all your really doing is breaking up the different phases of the project into "increments", including an increment for design, but essentially still a detailed plan leading to a precise date that is likely to be inaccurate (more on precision and accuracy later).

4. Interface to Prince2
You are using Scrum internally but to outside organisations/departments you are providing a Prince2 wrapper, facade or interface. All an outside organisation will see is the Prince2 wrapper you are providing. Some people also call this "stealth mode" and it is a way that some organisations adopt Scrum from the bottom up (i.e. without management knowing about it).


The main difference between 3. and 4. is that 4. is actually using Scrum, with a bunch of other things that you have to do as well, whereas 3. is not even remotely Scrum. Methods 2. and 4. are similar, but method 2. uses much less of Prince2 than 4. Ideally as you mature as an agile team/organisation you will progress from 3./4. to 2. to 1.

Accuracy vs precision in project management
For a detailed explanation of accuracy vs precision there is a good write up of the target analogy on wikipedia. It relates to project management in that more controlled approaches, in particular gantt charts, are precise but most times quite inaccurate. Scrum on the other hand is more accurate since it is based on evidence (burn down) and history tends to repeat itself. So if it took a team 2 weeks to do 50 units of work, it will likely also take them another 2 weeks to do another 50 units of work.

Is there a place for Prince2?
Yes. Most definitely. Prince2 works quite well in controlled environments - well defined, lower complexity work. After all, the word PRINCE comes from PRojects IN Controlled Environments. For example moving an office from one building to another. Prince2 can scale down quite easily as well and is good for smaller teams or shorter time scales. If however there is a high level of complexity or an uncontrollable environment then you need a project management strategy that can cope with the complexity. Usually software development contains an amount of creativity in documenting the requirements and another amount for converting these requirements into working software. With 2 amounts of creativity and interpretation there is a huge amount of complexity - "I didn't mean it to do it like that, but rather this way instead".

The best analogy of Scrum is one I've heard from Martin Kearns about mountain hiking. Each peak is the end of a sprint or the start of a new sprint. From up on the peak you can see the other peaks and get an overall view of where you are going, you can see the next peak and get a good general plan on how to get there (product backlog planning/revising). During the sprint, i.e. through the valley, you can only see what is directly in front of you, but you can see in detail what action you should take. You can't see logs, boulders, crocodiles... that are blocking your way and that you will need to go around when on the peak, but you can when its right in front of you (adjusting sprint backlog items).Below is an interesting article on Agile and waterfall projects working together in the same organisation. It doesn't address the same issues in this blog but is still quite helpful.

http://www.agilejournal.com/articles/articles/moving-to-agile%3a-to-dos-for-your-pointy-haired-boss.html




Technorati : , ,