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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -