ASP.NET Identity: Authorize attribute with roles doesn't work on Azure
问题 I just published my new ASP.NET MVC web site with Identity and OWIN authorization on Azure. Front-end works great, but got a problem with back-end. I use [Authorize] attribute with my admin controllers to check if user has a required role to access it, like this: [Authorize(Roles = "Admin")] On localhost even when using remote Azure SQL database it works fine. But on Azure, any controller with authorize attribute with roles loading several minutes and then throws: A network-related or