I am developing a website which is for my group of people and we provide certain services and conduct some programs and anyone can visit the website to see what is the latest info, contact us etc., So now I have added a folder in the solution named Admin and in that folder Admin.aspx page is present and based on the login info the page can be accessed and in that page any updates to the website like adding image to the gallery, programs for next month etc., can be done.
Now I have added a login.aspx page in the solution and I have added asp:login control to that page. I found an option named Administer Website in the same and I have provided all the configurations required like adding user, providing roles > [as there is only one role i.e. admin] etc., My website does not require any login but since I keep on need to update it I need some admins to login and insert data into database.
Now in that Administer Website tool in the Provider will appear as shown below:
and when I click on the Link Test it will display the below error:
and as per the instructions given in the error message I have configured my database by using aspnet_regsql.exe wizard with same database and connectionstring. But still I am getting that error. Can anyone Help me on this.
My webconfig file is as below:
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
<add key="Error" value="Page Error" />
</appSettings>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=F:\Studies\III MCA\VI SEM\Practice\MCB\App_Data\MCB.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<trace enabled="true" mostRecent="true" />
<customErrors defaultRedirect="" />
<authentication mode="Forms" />
<roleManager enabled="true">
</providers>
</roleManager>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<membership defaultProvider="AspNetSqlMembershipProvider"/>
<pages><controls><add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /></controls></pages>
</system.web>
I am using VS2012 express for web. Please help me if anyone knows what changes I have to make.
**
Edited Now I am using Asp.Net Universal Provider but still I am getting the same error message. Really this one's causing me headache.. :(
First of all you are using legacy ASP.Net Membership Provider.
Here is the new ASP.NET Universal Providers.
Then, you need to configure Membership Provider (see in the Scott Hanselman's article).