Asp.net and Azure - Can't no longer show my we

2019-08-28 06:52发布

问题:

After I updated my azure project last night I can't see my pages any more i only get the 403 - Forbidden: Access is denied.

I am using asp.net mvc - and it has been runing well for the past two weeks, but it seems like the routing is no longer working.

If i go directly to a page, it works, but because of security, it redicrets to cloudapp.net/login? - which gives the error 404 - File or directory not found.

How do enable the routing again? It works fine on my local computer with the azure emulator.

回答1:

What did you change? If you are using any kind of source control, check the changes on web.config file along with global.asax.cs file. The routing module is automatically loaded for .NET Framework 4.0 project. There is a small chance that someone accidently changed the target framework version of the project. Other possible crash of losing the routes is the Routes registration with the RouteTable in the Application_Start event handler from the Global.asax.