Asp.net和Azure的 - 不能再显示Web应用程序 [英] Asp.net and Azure - Can't no longer show my web application

查看:123
本文介绍了Asp.net和Azure的 - 不能再显示Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨晚更新了我的Azure项目之后,我看不到我的网页更多,我只拿到403 - 禁止:拒绝访问

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.

我使用asp.net的MVC - 它已经很好乳宁在过去两个星期,但它似乎是路由不再工作。

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.

如果我直接去到一个页面,它的工作原理,但由于安全性,它redicrets到cloudapp.net/login~~V? - 这提供了错误404 - 未找到文件或目录

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.

推荐答案

你是怎么改变?如果您在使用任何一种源头控制,检查Web.config文件中的变化与的Global.asax.cs文件一起。路由模块会自动加载用于.NET Framework 4.0的项目。有一个小的机会,有人无意中改变了项目的目标框架版本。失去了路线的其他可能的崩溃是从Global.asax中的Application_Start事件处理程序的路由登记的RouteTable。

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.

这篇关于Asp.net和Azure的 - 不能再显示Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆