How to set web.config file to show full error message

前端 未结 3 1970
小鲜肉
小鲜肉 2020-11-28 21:38

I deployed my MVC-3 application on windows Azure. But now when I am requesting it through staging url it shows me (Sorry, an error occurred while proces

3条回答
  •  借酒劲吻你
    2020-11-28 21:51

    If you're using ASP.NET MVC you might also need to remove the HandleErrorAttribute from the Global.asax.cs file:

    public static void RegisterGlobalFilters(GlobalFilterCollection filters)
    {
        filters.Add(new HandleErrorAttribute());
    }
    

提交回复
热议问题