31. January 2011 by Mads

Over the last few days I have been working on an online high score for the Windows Phone 7 game ‘plan bee’, which is done in XNA. (I guess this problem is also relevant for Silverlight applications). I had the service setup and all were good, data were flowing back and forth. To give the player a good experience when playing the game I of course started to test the game without internet connection, as this can happen on a mobile device like WP7 Smile

Then the game crashed right away and at first I just thought I forget to check for something and attached the debugger. The debugger showed me that an EndpointNotFound exception were thrown. I tried a lot of things and couldn’t figure out how I could avoid or catch this exception!

Angry developer

More...

11. September 2010 by Mads

Yesterday I were working on a ASP.NET project and needed to add a new Web User Control. I right clicked the project and went to Add New Item. I looked for the Web User Control, but couldn’t find it. I looked again, I asked a co-working, I search for “web” and “user control” and nothing were found.

I then started googling for the problem and found a simple post that told me exactly how to fix this.

Close all your instances of Visual Studio.
Open Visual Studio Command Prompt.
image

Type in the following and hit Enter.
devenv /installvstemplates
Wait for this to complete.
When it’s done, open VS2010 again and you should now have all your control templates again.

Happy coding!

28. June 2010 by Mads

Microsoft have just released the Visual Studio 2010 Productivity Power Tool Extensions which extent VS2010 with some features that make the use of it even better. If you haven’t already downloaded them – do it now!

More...