asp.net mvc 5 - MVC 5 SQL Network Interfaces, error: 26 - Error, with [Authorize] -
i'm having trouble setting authorization in mvc 5. have brand new mvc 5 website individual user accounts , sql server database 5 aspnet... tables.
i can login locally, works fine on local server , can login production database local website when point local connection string @ production server can't login website on production server,
i following error:
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)
the error happens when use [authorize] on action have login, if remove [authorize] action , database work fine.
any ideas
edit
just clarity, sql server on 1 of arvixe servers, , website @ godaddy here connection string
<add name="mysiteentities" connectionstring="metadata = res://*/models.mysite.csdl|res://*/models.mysite.ssdl|res://*/models.mysite.msl; provider = system.data.sqlclient; provider connection string =' data source = xxxxx.arvixe.com; initial catalog = mysite; user id = xxxxxx; password = xxxxxxx'" providername="system.data.entityclient" />
i unable login godaddy string if use string on local computer can login.
i have number of websites set same configuration in mvc 4 work fine.
i had similar issue; however, wrongly assumed not using ef , sql server, telerik data access around oracle 11g. fixed me remove rolemanager module in config file, per article (http://blog.luppes.com/2013/12/08/mvc5-authentication-roles-failure/)
so, paraphrase link posterity, was:
<system.webserver> <modules> <remove name="rolemanager" /> </modules> </system.webserver>
Comments
Post a Comment