October 17, 2013

Microsoft Server 2008 - Check which .NET version is installed.

There are different ways to check what .NET version is installed exactly, ranging from scripts to command prompt. I think the easiest way is to take a quick look in the Registry Editor - regedit.

This can be done by:
  • Start > run > regedit
  • In the Registry Editor, browse to: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > NET Framework Setup > NDP > and depending on the version choose:
    • v3.0 > Setup > 1033 (ie 3.0.*)
    • v3.5 > 1033 (ie 3.5.*)
    • v4 > Full > 1003 (ie 4.5.*)
    • v4.0 > Client (ie 4.0.0.0)
  • In the right pane you will see a row named Version and a number under column Data. This value is the installed .NET verson.
Note. In the Application Pool .NET 4.5 will still be visible as .NET Framework v4.0.*. That is why the Regedit check gives more certainty.

Windows Server 2008 IIS 7 - A specified logon session does not exist .Exception: 0x80070520

Today I tried to import an SSL Certificate in .PFX format from RapidSSL/GeoTrust on my Windows Server 2008 with IIS7. Withing the Site Bindings I selected the certificate and suddenly there was an error:
A specified logon session does not exist. It may already have been terminated (Exception: 0x80070520)

What?! Well apparently the solution lies in the import step. I had to mark the .PFX file as exportable, which I didn't. Correct way to do this:
  • Within IIS7 click on Server > Server Certificates
  • Import... Select the Certificate File (.pfx), optional password and mark the Allow this certificate to be exported.
  • Now you can choose the certificate on Site > Bindings..
  • Select the 443 Binding > Edit OR Add a new 443 Binding
  • Select the SSL certificate and click OK. You are ready.