views:

744

answers:

1

I am trying to run the sample "HelloWorld" Azure application in the Development Fabric on my Windows 7 development machine. It compiles successfully, I can see it start up as the "Windows Azure Simulation Environment" appears in the status bar and when I bring up the DF UI I can see that a HelloWorld_WebRole is running but I get the following errror message in my browser:

Server Error in Application "ROLE SITE"

Internet Information Services 7.5

Error Summary
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

Detailed Error Information
Module: StaticFileModule
Notification: ExecuteRequestHandler
Handler: StaticFile
Error: Code 0x80070032
Requested URL: http://127.0.0.1:5100/Default.aspx
Physical Path: C:\Projects\Azure-samples-cs\HelloWorld\HelloWorld\bin\Debug\HelloWorld.csx\roles\HelloWorld_WebRole\approot\Default.aspx
Logon Method: Anonymous
Logon User: Anonymous

The error message goes on to say that the most likely cause is that:

The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

+3  A: 

Ok, I reproduced your exact error ... by disabling Asp.net on my machine.

Make sure you have Asp.Net enabled: 1. Start button 2. Control Panel 3. Turn Windows features on or off 4. Under Internet Information Services/World Wide Web Services/Application Development Features 5. Check ASP.Net 6. Click OK

Try Hello World again, it should work.

Jason Haley
Jason, I checked that and ASP.NET is already checked.
dbush
It sounds like the problem is with IIS. Do you have any other websites on your machine to check that IIS is working correctly? If not you can do the following pretty quickly to test the config and permissions: 1. Open VS.Net 2. Create New Web application 3. In solution explorer, right click on project heading choose properties 4. On the Web tab, choose the "Use Local IIS Web Server" option 5. Click the "Create Virtual Directory" button 6. Save and hit F5If that loads in the browser without error with a url of http://localhost/<projectname>/ then your IIS config and perms seems ok
Jason Haley
This initially wasn't working for me, I was getting an error about permissions which I didn't copy down unfortunately. I then stumbled over this command to re-register ASP.NET: "C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i".I ran the command and rebooted and this seems to have cleared the problem.Thanks for your help, Jason.
dbush