How to set default Web page for a website on Microsoft Windows Azure?

0 votes

I have set up a website on azurewebsites.net. When I go to the url http:/website.azurewebsites.net/  - it doesn't load. But when I go to http:/website.azurewebsites.net/home.aspx - it loads.

I want that if a user goes to http:/website.azurewebsites.net/ - it loads with the home.aspx content or gets redirected to http:/website.azurewebsites.net/home.aspx

The following code doesn't work

 <system.webServer>
   <defaultDocument>
     <files>
       <clear />
       <add value="Default.aspx" />
     </files>
   </defaultDocument>
  </system.webServer>

Can anyone help??

Mar 27, 2019 in Azure by sabby
• 4,370 points
98 views

1 answer to this question.

0 votes

This blog post should resolve your issue: http://blogs.msdn.com/b/cesardelatorre/archive/2010/07/22/how-to-set-a-default-page-to-a-windows-azure-web-role-app-silverlight-asp-net-etc.aspx

Look at this section:

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

Or you could Type to url map it. That should work.

answered Mar 27, 2019 by Prerna
• 1,940 points

Related Questions In Azure

0 votes
1 answer

How to deploy a simple static micro site on Microsoft Azure?

Try steps told in this tutorial: https://www.microsoft.com/middleeast/azureboxes/cloud-hosting-for-a-static-website.aspx This is not ...READ MORE

answered Sep 3, 2018 in Azure by null_void
• 3,220 points
67 views
0 votes
1 answer

How do I upload a picture to Windows Azure Website?

Check out this example: @model List<string> ...READ MORE

answered Jun 27, 2019 in Azure by Perry
• 17,090 points
97 views
0 votes
1 answer

How to register new users for MVC4 website on Azure AD?

The application holds the permissions to read/write ...READ MORE

answered Jul 3, 2019 in Azure by Perry
• 17,090 points
1,172 views
0 votes
1 answer
0 votes
1 answer

Azure: Getting error in loading 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache'

The error is occurring because you are trying ...READ MORE

answered Mar 26, 2019 in Azure by Prerna
• 1,940 points
69 views
0 votes
1 answer

Want to upload a blob file with huge size to azure in as little time as possible.

Microsoft Azure Storage Explorer is one of the ...READ MORE

answered Mar 27, 2019 in Azure by Prerna
• 1,940 points
83 views
0 votes
3 answers

What is the job role of an Azure Developer?

Hi, Here are some job roles of an ...READ MORE

answered Jul 23, 2019 in Career Counselling by Gitika
• 26,030 points
207 views
0 votes
4 answers

What are the skill required for an Azure Developer?

Hi, The skills required for an Azure Developer ...READ MORE

answered Jul 23, 2019 in Career Counselling by Gitika
• 26,030 points
2,504 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

There may be an issue with the ...READ MORE

answered Mar 6, 2019 in Azure by Prerna
• 1,940 points
537 views
0 votes
2 answers