Fixing issues with IIS Express 8 after installing Windows Azure SDK 1.7

June 24, 2012

11 comments

If you are having problems using IIS Express 8 to host local Azure deployments after installing the Windows Azure SDK 1.7, you should probably continue reading this…

One of the new features of the Azure SDK 1.7 is the support for running local emulator with IIS Express 8 instead of the full IIS. This is supported for both Windows 7 and Windows 8.

At first when I tried this feature it simply didn’t wok. I previously had IIS Express 7.5 on my machine, and after installing the new SDK, I created a new web role, and when trying to run it locally, IIS Express did not fire up, and the browser opened showing it is unable to locate the requested address.

I then uninstalled the SDK, followed by uninstalling IIS Express. After making sure I don’t have any IIS Express “leftovers” in my machine, I reinstalled the Azure 1.7 SDK, making sure it also installed the new version of IIS Express.

Next, I opened the previously created project, and this time when I tried to run it, the following message appeared:

“The Windows Azure Emulator could not start the web server. The properties for this project specify that it should run on IIS Express, but no compatible version of IIS Express was found. To run this project, either install IIS Express 8 or higher, or change the ‘Use web server’ property for this project to ‘Local IIS web server’. See output window for more information.”

Since IIS Express 8 was successfully installed and it did work (VS 2010 SP1 was able to run web sites on it), it was time for the big guns – using reflector to find out what csrun.exe does. It seems that one of the first things csrun does is to create a COM object called Microsoft.IIS.VersionManager to check which version of IIS is installed on the machine. After opening the registry and finding the key, I discovered that I don’t have permission to read the key. Eureka!

Following this forum thread, I was able to add permissions to the key. After setting the permissions, I returned to Visual Studio, and this time I had no problem getting the emulator to use IIS Express 8 to host my web site. Problem solved!

Note: If you need to look for the registry key, it is located under HKEY_LOCAL_MACHINE\Software\Microsoft\Classes\Microsoft.IIS.VersionManager (make sure you also check permission on the second key, Microsoft.IIS.VersionManager.1)

Until the next bug…

kick it on DotNetKicks.com Shout it

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

11 comments

  1. icon designSeptember 14, 2012 ב 10:20 am

    I think, what is it — a false way. And from it it is necessary to turn off.

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  2. icon designSeptember 14, 2012 ב 12:15 pm

    Excuse, not in that section…..

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  3. icon designSeptember 15, 2012 ב 4:05 am

    It agree, a remarkable piece

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  4. icon designSeptember 15, 2012 ב 7:03 am

    I congratulate, you were visited with a remarkable idea

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  5. icon designSeptember 15, 2012 ב 10:43 am

    It is remarkable, it is the valuable answer

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  6. icon designSeptember 15, 2012 ב 11:52 am

    Excellent variant

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  7. icon designSeptember 15, 2012 ב 1:00 pm

    It is grateful for the help in this question how I can thank you?

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  8. icon designSeptember 15, 2012 ב 2:06 pm

    What remarkable phrase

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  9. icon designSeptember 15, 2012 ב 5:08 pm

    In my opinion you are not right. I am assured. I can defend the position. Write to me in PM.

    P.S. Please review our icons for Windows and windows12icons.

    Reply
  10. yoyonoobNovember 15, 2012 ב 5:50 pm

    שלום , קוראים לי יוהןומצא פורום זהוחבריה ממש נחמדים !

    Reply