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
455 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 p
• 1,960 points

Related Questions In Azure

0 votes
2 answers

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

Create an Azure Storage account ("hot file" ...READ MORE

answered Jun 4 in Azure by René
163 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,100 points
404 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,100 points
1,276 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 p
• 1,960 points
143 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 p
• 1,960 points
198 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
• 50,980 points
470 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
• 50,980 points
6,085 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 p
• 1,960 points
998 views
0 votes
2 answers