Subscribe via RSS
30Nov/155

ASP.NET 4.5 has not been registered on the Web Server

As a .net Developer, I have Visual Studio installed and this (usually) includes its own little version of IIS Express. This is all configured out of the box on install and just works.

After upgrading to Windows 10, I started getting this error:

ASP.NET 4.5 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.5 in order for your site to run correctly.

The usual trick is to go to command prompt, find your .NET Framework directory (somewhere near C:\Windows\Microsoft.NET\Framework\v4.0.30319) and then run aspnet_regiis there.

Unfortunately, on Windows 10, this doesn't work. It'll respond with:

Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.0).
This option is not supported on this version of the operating system.  Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog,  the Server Manager management tool, or the dism.exe command line tool.  For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.0).

This all makes sense... you instead need to hit the start button, type "programs and features" into the search and then hit the first result that appears.

Once in the Programs and Features window, hit the "Turn Windows Features on or off" in the left pane.

Now scroll down through the tree and find:

  • Internet Information Services
    • World Wide Web Services
      • Application Development Features

...and then check all the relevant features you require. I chose .NET 3.5 and 4.6.

Let it do its work and then you should be back to happy-development-land in VS before you know it. If not, then it could actually be a bug in Visual Studio. Please check the following patches for your version of VS: VS2010, VS2012 or VS2013.

If you could only see .NET 4.6 (or have just updated to it...)

Then you need to patch Visual Studio as per the instructions here. Seems that upgrading to 4.6 won't let Visual Studio correctly see that 4.5 is installed.

5Nov/153

iTunes store displays black screen

iTunes displaying nothing? Or just the top banner and a black screen? When you move the mouse around the black, do the play/pause icons magically appear?

It turns out that in the latest version of iTunes (12.3.1.12) if you stretch the window past 2048 pixels wide, then it fails miserably. Note that I can currently only test this on Windows 7 64-Bit.

My desktop happens to be 2560 pixels wide (interesting that this doesn't happen on Retina displays!?) and i get this...

itunes-2560-wide

I quickly switched the window over to my other monitor at 1600 pixels wide, worked fine. Hah. So then I tried to shrink the window on my main monitor... here's 2055 pixels...

itunes-2055-wide

... and then coming under the 2048 threshold... tada! ....

itunes-2039-wide

2039 pixels, works fine... how annoying. Hopefully this helps someone else stuck in the same situation.

Bieber is cool, right?