The data source '' only supports a single view named 'DefaultView'

I am trying the LinqDataSource out and ran into the error message: “The data source ‘’ only supports a single view named ‘DefaultView’”, when i had configured my datasource and tried to use it from a DropDownBox.

After some frustration and hair pulling (as always) i found the reason; i had set the DataMember on the datasource. This was not needed since my datasource specified only one “table”. And now - as i am writing this i understand that that’s what the error message is trying to tell me.

So - to get around the “The data source ‘’ only supports a single view named ‘DefaultView’” - error message simply remove the DataMember value where you are using the datasource.

Read More

LINQ is a wonderful thing

I have been playing around a little bit with LINQ. I think they are onto something here. I really like it - especially the way that LINQ stays the same regardless of the things you are handling (SQL, XML or objects so far…).

Here are some really good introduction videos to LINQ over SQL:

My only concern is how this will work in a fully fledge architecture… That is when the code is not sitting on the database directly. Fascinating how Microsoft always starts out in that corner, when most architectures are more complex than that. Why not putting together an example of an architecture using LINQ.

Finally - after testdriving Visual Studio 2008 the review can be only one: Microsoft has improved on the already best development environment. I love it!

Read More

2008 - what a year to look forward to!

So - here we are at the beginning of a new year. Prepare your fingers of writing 08, 2008 and so on, i know that it will take me a month or so to get use to it.

Here are a of the things i look forward to in 2008:

  • Of course - becoming a father. No - nothing yet. But soon!
  • Recording a CD with my band, the Vasa Band. The band has been working so hard for a long time now. It will be great to record it for real. Also i will be playing a solo on the CD which is a first for me. I will be playing my favorite solo in the Salvation Army literature “Journey into peace” by William Himes. That will also be great
  • Becoming a Sergent Major at the Vasa Corps. For the first time i really feel that a role...
Read More

2007 - coming to an end

So - the end of 2007 is closing in and it is time to do some retrospectives. I always find it fun to look back and see what have happened during the last year. Here are some highlights (or important stuff) that happened in my life during 2007.

  • We are going to have a baby! And it’s soon - January 2008
  • Moved to a bigger apartment
  • Became a certified SCRUM-master and got to run several SCRUM-projects
  • I was involved in building my best application to date - with a great bunch of people
  • The Vasa corps Band of the Salvation army has really come to a renaissance. We have a wonderful fellowship, we are doing thing for the right reason and the band plays quite good also
  • I was in the group the made the “Vasakårens Jul”-concert at...
Read More

Marcus list of how to get problem in a system developement project

From time to time i hear myself saying; “That’s a good way to get problems in the project/in the application/in the maintenance phase”.

So i thought I’ll start a list so that i can prove (for me) that i have “said it already, a long, long time ago”. Of course this is mostly for fun but i have seen these items in many projects and many times.

So here you are; How to get problems:

  • Integrate with Office - i have done this is a lot of applications. Eventually it will work and it can be nice - but it is always problems. A lot of them and hard to find.
  • Mix technologies in the same application - that is let .NET-applications call COM-components. If you mix old an new then the total “goodness” of the application will not be better than the old technology - if that even.
  • ...
Read More

O holy night

Yes i know that this is old and cheesy but i can’t help myself. It’s Christmas time and she is doing a very good performance, in her style. This is before she started to wailing every song to death.

Extra kudos to the very good gospel choir in the background. They really look like they are enjoying themselves.

Here you go, O holy night, with Maria Carey.

Read More

Displaying XML in WebBrowser control

This is one of those “how can this be hard stuff”, and after checking the Net i couldn’t find anything much about how to do it.

The case is as follow; say that you have some XML that you want to display to the user. What better way than to use the nice format used by Internet Explorer itself. So you use the WebBrowser control in Visual Studio 2005 and simply pour the XML into the DocumentText-property… But hey - where are my tags? Where is the formatting?

So how do you display XML in the WebBrowser then? Well the simplest way is to save the XML-file to disk and simply start it with Process.Start. This might also be quite enough for some solutions.

But if you need to do this over and over you want to work with the XML-file in memory. In order to get the nice formatting...

Read More


The last couple of days i have been home sick. The first time in at least five years.

It is so boring - every time i get to much on my hands i always fall into thinking that it would be so nice to be home a couple of days. But when you are you’re not feeling well and nothing is fun to get started with. So you end up with boredom.

Well - i am back now - still not feeling well but it was just to boring to bare it… I’ve seen all the series and watch all my DVD’s that was appealing. I was missing my code ;)

Read More

Weekend report - part 2

The second part of the weekend - Saturday and Sunday, i spent with the Windcorp Brass Band. It can without any doubt say that they are the best band in Sweden right now. Oh goodness - the play well.

And they are all very nice people also. I felt right at home. Thank you guys!

With the risk of being self-admiring now (brrr - hope not) i also love the feeling of going in to present a very good concert (and band) to a full hall. I didn’t feel at all nervous although the hall was filled with 600 persons waiting to be entertained. But then again i always have my little trick - i bring God with me on the stage. Otherwise i would be very, very nervous. Try a prayer the next time you have to do something scary - he has never let me down.


Read More