MSBuild bug (kinda...)

At the start of this year my buildscripts ran into some serious trouble all of a sudden. And the day after this ugly error showed its horrible face when I compiled the code:

"Error emitting 'System.Reflection.AssemblyVersionAttribute' attribute -- 'The version specified '1.6.70102.1' is invalid"

What now? I know that nobody was here and changed code during the New Years Eve, and certainly not the day after, if you know what I mean.

It proves to be a flaw (nicer way of saying bug) in the assembly version handling of MSBuild, or actually the versioning of assemblies in Windows:

The version numbers consist of four parts MAJOR.MINOR.BUILD.REVISION. These are all WORDS (16-bit) and not DWORD (32-bit). That means that it can hold numbers up to ca 65000.

A very common practice is to have the BUILD-part of the number set to a date. And since dates are converted like...

Read More

Loose as a goose

Yesterday I had (got?) my first ever massage. I must confess that I’ve had some preconceived thoughts about people taking massage - but I was wrong. I’ll take it all back.

The massage in itself was not too pleasant, it even hurted for a while, but afterwards the whole body (i mean the whole, the soles of my feet for instance) felt so good. I was completely relaxed in ever limb and it was only with the strongest will I managed to take me from the locker rooms to the bus home.

This will most certainly be done more times - at least I hope so.

Read More

Finally - Gaming for non-math-freaks!

Microsoft has just released a game-development studio which looks very nice. And finally even I has do some game-development. A real cool feature (except the real easy programming model) is that the games that you create can be run on Xbox 360.

This will be a cool way to introduce programming for young people or just highlight some concepts in traditional (i.e. “boring” programming) via gaming. I know I’ll try anyway.

Here is the link http://msdn.microsoft.com/directx/XNA/default.aspx. Thanks Håkan for the tip

Read More

Hectict week to an end

Last week was a real burnout, of a start for this year. Something booked for each day last week, which is to much, for me anyway. And yesterday me and Elin was in charge of the meeting at our Salvation army corps.

That was a lot of stuff to hold in your head and to plan - I will never complain on a officer again. They have a lot of things to plan just for each Sunday. We also felt a great uncertainty the days before the meeting also. If that is something they go through each week I hope they know how to cope with it.

Anyway - that week is over now and a much more normal week has started. And it starts with us going to Sturebadet for some Spa tonight. This is a “cheerer-uper” I got from Avega this autumn for some presentations and...

Read More

Bug in Visual Studio 2005

Just started to do some serious development with Windows Forms in Visual Studio 2005. A bug showed it’s ugly face. Here is how it goes:

In your windows application project you create some usercontrols. They appear in the toolbox for you to use in all your forms. Everbody is happy!

But when you put your windows applilcation project into a solution folder this doesn’t work anymore… This is confirmed by Microsoft and not corrected with Visual Studio 2005 SP1.

There are some suggestions for workarounds and the one that I tried was to add toolbox items by referencing the output of my windows application. But then I got another problem, a warning something like: “The type [usercontrol] in ‘[my output]’ conflicts with the imported type [usercontrol] in ‘[my output]’”

So - the solution to this problem was to suppress this warning (0436) in the application configuration (Properties->Build-tab->Errors...

Read More

Salvo Audio - is this for real?

Got a great tip yesterday about Salvo Audio yesterday.

What a site! It contains tons of Salvation Army Brass band music, free as it seems! So if you ever wondered how it sounds, or if you are looking for <span id=”SPELLING_ERROR_0” classCD’s that is hard to find - take a look here.

Great tip, Andreas! And keep a lookout for the Vasa Band (of Sweden) we try to upload some stuff there.

Read More

Edit web.config in nice GUI

Yesterday was really intense! A complete day chasing a bug through the code and around servers. Felt so good to find it after about 7 hours of searching for me and a colleague.

When we ran around the servers and checked configurations I found a dialog box in IIS 6.0 that I never saw before. I realize that this probably is embarrassing to yield but I do it anyway.

There is a possibility to see and change the values of the web.config file from IIS in a much nicer GUI than the usual “Visual” Notepad. You can also change a lot of other configurations from this dialog.

  1. Right click your site or virtual directory and do Properties
  2. Choose the ASP.NET-tab
  3. Choose Edit-configuration
  4. Now the web.config for your application is opened and displayed (fancy that!), with possibility change the values.

This is a much nicer presentation of all the...

Read More

Futureforce of VasaCorps

Yesterday we finally had a long awaited meeting with the FutureForce for the Vasa Corps, my Salvation Army Church.

I am so privilliged to be part of that group. They are some very nice and clever people and great things really happen when we get togheter. Like yesterday I thought I knew what was going to come out of the meeting but in the end something completely different but still very good came out instead.

That felt so good - just think if I had known what we should decided before the meeting. That would have been so boring.

Read More

Let's go!

Today is the first “real” day of the year here in Sweden. A lot of public holidays and weekends is to an end and to be frankly it’s quite nice. Now it is back to normal with all people in the office and no more half days.

I good old Marcus-style the first week is quite hectic also with engagements all days of the week, save Friday. Most of them (all when i think of it) will be fun and good to do.

So - I hope that you also will have a good start on the new year!

Read More