Monthly Archives: June 2008

Software Meme

I was tagged by Scott – here we go:

How old were you when you started programming?

I was probably 11 or 12.   I had a Commodore Vic 20  :-)

What was your first language?


What was the first real program you wrote?

I wrote a program on my Vic20 to generate Dungeon and Dragons characters.

What was your first professional programming gig?

I build an ASP web site for the University of Minnesota Law School

What’s the most fun you’ve ever had…programming?

Hmm – this is pretty hard.  I think the most fun I’ve ever was last fall I got hired to prototype something and what I ended up doing totally exceeded the expectations of the people who asked me to build it.  It was fun making it work and then fun seeing the reactions.

I choose to tag no one (stopping the meme from my part of the tree ;-)).


Silverlight calling Workflow Services

One question I was asked during my web cast yesterday about calling WCF services from Silverlight is if the service could be a workflow service.  I said – “Of course” – not knowing that it was a little more complex than that :)

That said – here is a sample. (535.08 KB)

Unfortunately I don’t have time to go into the details right now – working on another project at the moment. The key to making it work is setting the instanceid context to null on the server when the “last” operation is called – in this case the operation implemented inside of the eventhandler which causes this state-machine workflow to move to the completed state (so that the client can then start a new workflow).

I hope to find an more elegant and automatic solution – but this works for now (Hope you are listening Jason from the webcast – this ones for you ;-))

Multi-named web sites and WCF

Glav posts about a problem I’ve also had recently – that Matt helped me figure out how to solve.

The exception is (repeated here for seach purposes):

This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection.
Parameter name: item

The way to solve this problem is to setup multiple web sites in IIS (rather than having one site that has multiple Host entries) – and point all the websites to the same directory.

Hope this helps someone.