locked
ASP.NET Configuration - Security error RRS feed

  • Question

  • User-1101529841 posted

    Hi,

    I created new webpage in ASP.NET and c# then tried to go to ASP.NET Configuration, when clicked the security link i get the following error:

    "There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. 

    The following message may help in diagnosing the problem: Unable to connect to SQL Server database."

    if I click "choose data store", i get:

    Use this page to configure how Web site management data such as membership is stored. You can use a single provider for all the management data for your site or you can specify a different provider for each feature. 

    Your application is currently configured to use the provider: AspNetSqlProvider

    I find out how to run (aspnet_regsql.exe utility ) but on the last page it says:

    "You should now configure the provider for membership, profiles,
    role, personalization and SQL Web event provider
    to relect the changes you made in this wizard."

    I am guessing this is done in web.config, how to do that and what to do?

    Thursday, January 7, 2016 7:14 AM

Answers

  • User614698185 posted

    Hi ramiwahdan,

    Be sure to "clear" first, there are default settings in machine.config level, like below:

    <roleManager ...>
           <providers>
             <clear/>
     <add ...
    
     <membership ...>
           <providers>
             <clear/>
     <add ...

    Best Regards,

    Candice Zhou

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 8, 2016 6:49 AM