Saturday, October 30, 2010

Chrome is not displaying XML

One of the reasons I don't use Chrome for development is that it renders XML in the browser instead of simply displaying it as raw XML. Originally an XML file will be displayed like this (or maybe rather, not displayed);

But now I just found a solution at StackExchange (developed and run by StackOverflow) and the XML Tree Chrome Extension is available at the Google chrome extensions web site.

Simply click the "Install" button and it gets installed:

After installation my XML renders beautifully:

Many thanks to Josh Moont.

VS2010 registry capture utility keeps crashing!

My final problem before my projects would rebuild on my new Windows 7 machine was that I kept getting this message:

The text in this dialog says:
Microsoft (R) Visual Studio registry capture utility has stopped working.
After searching the web for a while I found the solution in StackOverflow, where the answer refers to a workaround at Microsoft Connect.

Anyways, here is the workaround procedure to use to fix this problem (this is actually a Windows 7 problem?!):
  1. Locate regcap.exe here: C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\Deployment
  2. Right click and select properties.
  3. Select Compatibility tab
  4. Check box to Run this program in compatibility mode.
  5. Select Windows Vista SP2 in the OS drop-down and Run as Administrator.
  6. Click Ok and Recompile.
This solved the problem for me and now my batch of projects build in VS2010 on my new Windows 7 machine.

VS2010 keeps cancelling the importing of my key files

When I built some of my VS2010 projects, which were strongly signed, on my new Windows 7 machine, I kept getting this error:

The text goes something like this:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1970,9): error MSB3325: Cannot import the following key file: MyStrongNameKey.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key container name: VS_KEY_A17E1D1A20966ADB
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1970,9): error MSB3321: Importing key file "MyStrongNameKey.pfx" was canceled.
So, to solve this I simply went into the properties of the project, selected the "Signing" tab and browsed for the pfx file:

Once found, I selected it and provided the password to the private key of the file:

Once reloaded, the project would easily rebuild.

VS2010 elevated to load local Web Apps

I just thought I would share with you a couple of things I had to go through to get Visual Studio 2010 to build a couple of my projects on a new Windows 7 machine.

1) Firstly there was the problem with getting Visual Studio elevated in order to load my Web Application projects, deployed on the local IIS. I kept getting this error...

...and the error message in the Console dialog was this:
MyWebProject.csproj : error : The Web Application Project MyWebProject is configured to use IIS. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account.
Of course I could simply right-click my "Microsoft Visual Studio 2010" short-cut and select "Run as administrator" but that is not something I want to do everytime I open up VS2010 and it will not work on solution files.

My solution is to tell Windows ALWAYS to run devenv.exe in an elevated state. This we do with a right-click on the "Microsoft Visual Studio 2010" short-cut and go into properties:

In there, we enter the "Compatibility" tab and select "Change settings for all users" (if you need to) and then check "Run this program as administrator" under "Privilege level":
And that is it!

2) When that was done, there was the problem with the endless UAC dialog.

So, we abandon the UAC notifications. This is easily done using the UAC Settings dialog accessible in the Control Panel. We move the lever down to "Never notify"...

...and then we have that one sorted.

Wednesday, July 7, 2010

My SoapExtension is receiving the AfterSerialize message twice!

Today I asked a question about SoapExtension on StackOverflow.

I'm writing about this here because StackOverflow is one of my all-time favorite websites and I want everyone to use it. So my question is here at StackOverflow and of course I got this brilliant answer just a couple of hours later.

Before I asked my question at StackOverflow, I had searched the web using Google, Bing and others but with no luck to start with. But then I found someone else that was having a similar problem and that person had found the solution. The solution was locked away at, but those guys want my creditcard before they help. That number is not available.

StackOverflow was the obvious site to place my question and, alas, I have my solution.

Great site!

Saturday, May 15, 2010

Ellen mín slær í gegn!

Ellen mín sló í dag öll met og náði betri árangri en nokkur íslendingur sem keppt hefur í Stora Daldansen í Mora í Svíþjóð.

Sjáið hér hvað listdansskólinn skrifar um árangurinn. Hér er svo hvað sagði í fréttum þegar Ellen komst á pall í Svíþjóð.

Sunday, February 21, 2010

Vesturgata 3 til leigu !

Jæja, nú er íbúðin að Vesturgötu 3 komin á leigumarkaðinn. Svo ef þú ert á leiðinni til Reykjavíkur í stuttan eða lengri tíma þá skoðaðu endilega vefinn okkar og sjáðu hvort þú hafir ekki áhuga á að gista þar í stað þess að fara á hótel.

Ég skrifaði síðan mína fyrstu Blogger síðu um íbúðina. Þessa Blogger síðu má sjá hér.

Wednesday, February 17, 2010

Ellen er á leiðinni á Stora Daldansen í Svíþjóð í Maí

Ellen Margrét, dóttir mín, tók þátt í undankeppni fyrir "Stora Daldansen", sem er keppni í klassískum balletsólóum og er haldin er í Svíþjóð í Maí á hverju ári. Það er Félag Íslenskra Listdansara (FÍLD) sem heldur undankeppnina á hverju ári. Af þeim 25 keppendum sem tóku þátt þá lenti Ellen mín í öðru sæti á eftir Karli Hjaltasyni sem er með henni í hóp í Listdanskóla Íslands, en einungis 1 stig af 100 var á milli þeirra. Aðrir keppendur sem lentu í 3-5 sæti voru líka allir úr Listdanskóla Íslands og er skólinn greinilega með frábæra kennslu.

Til hamingju með afmælið vina.

Wednesday, February 10, 2010

David Platt in Iceland again !

The .NET professor, David Platt from Harvard University, was back in Iceland in February 2010. This time he was here with his lecture on Programming Microsoft Prism, the Composite Application Library. Mirosoft Prism is a name they have given to the Composite Application Guidance for WPF (or CAG for WPF).

Last time he was here, a year ago, I went to the university to watch him do his talks on Why Software Sucks, WPF for Good and not for Evil and finally Know Thy User: Instrumenting The User Experience. These were good talks and I would have liked to go this time as well. But no luck, busy, busy, busy. Next time I hope.

Monday, January 18, 2010

MCTS Exam 70-432 Microsoft SQL Server 2008 - Implementation and Maintenance

After 3 weeks of studying I finally did the SQL exam and now that is behind me. It was not an exam I wanted to take it was an exam I had to take so that Rue de Net would keep it's status with Microsoft and be able to continue to sell Dynamics NAV.

I started by reading Mike Hoteks Self-Paced Training Kit quite slowly, then I read it again, this time faster and this time I wrote down comments. Both times I did all the exam questions at the end of each chapter. When I was finished I did a few of the practice tests from the companion CD included with the book. All of these exams indicated that I needed 80% to pass, no matter how many I did I never passed - I failed all of them! I started to worry that Mike's book would not be enough for me. Anyways, it was too late so I just went...

I was very stressed when I went to take the exam but when I started the exam it started by telling me I only needed to get 70%, good news. I ended up with a score of 820 - I must have been quite lucky. Anyway I passed and it turned out that Mike's book was enough.