Friday, 15 May 2015

c# - Unable to connect to SQL Server database in asp.net Web Site Administration Tool -



c# - Unable to connect to SQL Server database in asp.net Web Site Administration Tool -

when on security tab on web site administration tool, error:

there problem selected info store. can caused invalid server name or credentials, or insufficient permission. can caused role manager feature not beingness enabled. click button below redirected page can take new info store.

the next message may help in diagnosing problem: unable connect sql server database.

here connectionstrings part in web.config file:

<connectionstrings> <add name="defaultconnection" connectionstring="data source=(localdb)\v11.0;attachdbfilename=|datadirectory|\verkoop.mdf;integrated security=true" providername="system.data.sqlclient" /> <add name="bestellingdbcontext" providername="system.data.sqlclient" connectionstring="data source=(localdb)\v11.0;attachdbfilename=|datadirectory|\verkoop.mdf;integrated security=true" /> </connectionstrings>

and here membership part:

<membership> <providers> <add connectionstringname="defaultconnection" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="false" requiresuniqueemail="false" maxinvalidpasswordattempts="5" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0" passwordattemptwindow="10" applicationname="/" name="defaultmembershipprovider" type="system.web.providers.defaultmembershipprovider, system.web.providers, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" /> </providers> </membership>

i've been searching net solution hours now, can't find anything. can please help? thanks!

edit

rolemanager tag:

<rolemanager> <providers> <add connectionstringname="defaultconnection" applicationname="/" name="defaultroleprovider" type="system.web.providers.defaultroleprovider, system.web.providers, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" /> </providers> </rolemanager>

it can caused role manager feature not beingness enabled.

error message said rolemanager not enabled. please enable , test again.

<rolemanager defaultprovider="defaultroleprovider" enabled="true"> <providers> ... </providers> </rolemanager>

c# asp.net sql-server asp.net-mvc-4

No comments:

Post a Comment