Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8693481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:33:09+00:00 2026-06-13T00:33:09+00:00

I’ve created a ASP.Net MVC 4 web site that has several custom routes which

  • 0

I’ve created a ASP.Net MVC 4 web site that has several custom routes which are registered in the ~/App_Start/RouteConfig file.

public class RouteConfig
{
    public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        routes.MapRoute(
            name: "Empty",
            url: "",
            defaults: new { controller = "Home", action = "Index", id = 0 }
        );

        routes.MapRoute(
            name: "Session",
            url: "{id}",
            defaults: new { controller = "Home", action = "Index" }
        );

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

This site is working great outside of Azure and even works in the Azure emulator, but when I move it up to Azure, it’s acting like there are no routes. For instance, when I try to navigate to the root of the web site I get an error stating:

403 - Forbidden: Access is denied.

You do not have permission to view this directory or page using the credentials that you supplied.

This made me think that the route simply wasn’t working so I tried going to a another page like http://myapp.cloudapp.net/1234 (which should send 1234 into the home controller’s index action. But that action gives me a 404 error.

I’ve checked my configuration against and new ASP.Net MVC 4 Azure project and they appear to be the same. I’ve also read through this which gave some pointers but ultimately didn’t help.

Any advice on how to troubleshoot this?

Update

This is a WebRole project and is using .Net 4.0 (I already down converted from 4.5).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:33:10+00:00Added an answer on June 13, 2026 at 12:33 am

    Have you tried setting a default page as per this article http://www.sunilhaste.com/2011/04/403-forbidden-access-is-denied-error.html

    1. After you have uploaded your Web Role to Azure, you try to access the application and suddenly you get “403-Forbidden, Access denied”
      error.
    2. You are able access a page by providing it’s complete url ex :- http://xyz.cloudapp.net/Pages/Home.aspx.
    3. You don’t have a default.aspx page present at the root level of your website. Solution :- The first thing that you should do is, to
      check whether you have added below tag to the web.config file inside
      system.webserver tag or not.

       <add value="Pages/Home.aspx"/>
    

    I also had had a similar issue and mine was fixed by setting the role to be 2008 R2. Someone in comments to the linked article says

    change OS CONFIGURATION from MS SERVER 2008 SP2 to MS SERVER 2008 R2

    Also see the following Asp.net and Azure – Can't no longer show my web application suggests checking you have <modules runAllManagedModulesForAllRequests="true" />

    Also I assume you are making sure that MVC4 files are being deployed to Azure. Have your RDP’d to the machine and checked event log etc?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I have an array which has BIG numbers and small numbers in it. I
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.