ASP.NET Identity: Authorize attribute with roles doesn't work on Azure -
i published new asp.net mvc web site identity , owin authorization on azure. front-end works great, got problem back-end. use [authorize] attribute admin controllers check if user has required role access it, this:
[authorize(roles = "admin")]
on localhost when using remote azure sql database works fine. on azure, controller authorize attribute roles loading several minutes , throws:
a network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: sql network interfaces, error: 26 - error locating server/instance specified)
authorize attribute without roles works fine.
adding code web.config fixes issue.
<system.webserver> <modules> <remove name="rolemanager" /> </modules> </system.webserver>
i know late have real answer you. thought i'd share anyway wasted few hours on myself.
info found this post
Comments
Post a Comment