Set default webpage for website on Microsoft Windows Azure

I recently set up a website on

But when I go to the url http:/
it doesn’t load.

But when I go to http:/ it loads.

What I want is that
if a user goes to http:/ it loads with the home.aspx content or get redirected to http:/

This doesn’t work

       <clear />
       <add value="Default.aspx" />

Sorry here’s the actual link which works fine, but when you go to HTTP error 404, The resource cannot be found is displayed.

Can anyone help??


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

According to this blog post:

             <add value="Default.aspx"/>                      

Should Work. Or you could Type to Url map it. To do that check out

Method 2

If you are using MVC or Web API, add the following line in RegisterRoutes():


This solved my problem. Hope it helps you.

Method 3

If you app is a MVC application, it looks for the default controller instead of default pages.

So you must map a route in RouteConfig. In my case,I wanted to load the site with an index.html page, so I did:

RouteConfig.cs file:

 public static void RegisterRoutes(RouteCollection routes)

            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Home", action = "Index", id =    UrlParameter.Optional }

And in my HomeController, Index Action, write this code:
public ActionResult Index()
        return Redirect("/index.html");

This works fine in Azure with a Shared Site. I hope this will help you.

Method 4

Do you have a typo?

You have:

<add value="Default.aspx" />

But you said that your “home page” that works is /home.aspx.

If you want for /home.aspx to be displayed when the user goes to http:/, then I can think of several ways for you to accomplish that.

Since you have Default.aspx as your defaultDocument, you can rename home.aspx to Default.aspx and when someone goes to http:/ the contents of Default.aspx will be displayed.

If you need to keep home.aspx named as home.aspx for some reason, then as you requested if you want for http:/ to redirect to /home.aspx then create a file called Default.aspx in the root directory and edit it to contain Response.Redirect("home.aspx", false);. A complete example for this type of page is available at


Try adding enabled="true" to your defaultDocument XML tag. See the example below from

      <defaultDocument enabled="true">
            <add value="home.html" />

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x