We help IT Professionals succeed at work.
Get Started

weird asp.net error

jazzIIIlove asked
Last Modified: 2015-12-06

I have a .NET web application in which I end up with the following error:

Parser Error Message: The connection name 'ApplicationServices' was not found in the applications configuration or the connection string is empty.

Source Error: 

Line 57: 			<providers>
Line 58: 				<clear/>
Line 59: 				<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
Line 60: 			</providers>
Line 61: 		</membership>

Open in new window

Now the thing is that i have also a database in the application but i am not using the database for this type of login.
I "manually" add the following lines and the problem appeared:

<asp:login id="Login2" runat="server" style="width: 100%;">
        <div class="box">
            <div class="content">
                    Authentication Required</h1>
                <asp:textbox class="field" placeholder="uss" id="UserName" runat="server"></asp:textbox>
                <asp:requiredfieldvalidator id="UserNameRequired" runat="server" controltovalidate="UserName" errormessage="User Name is required." tooltip="User Name is required." validationgroup="Login1">*</asp:requiredfieldvalidator>
                <asp:textbox class="field" placeholder="paa" id="Password" runat="server" textmode="Password"></asp:textbox>
                <asp:requiredfieldvalidator id="PasswordRequired" runat="server" controltovalidate="Password" errormessage="Password is required." tooltip="Password is required." validationgroup="Login1">*</asp:requiredfieldvalidator>
                <asp:button class="btn" id="Submit" runat="server" commandname="Login" text="Log In" validationgroup="Login1" onclick="Submit_Click" ></asp:button>
                <asp:literal id="FailureText" runat="server" enableviewstate="False"></asp:literal></div>

Open in new window

Note that the username and password that is inputted by user above is "NOT" stored in database. I merely check the inputs against hard coded values.

Can you help me why I receive the above error?
Watch Question
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE