troubleshooting Question

weird error

Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden asked on
ASP.NET.NET Programming
5 Comments2 Solutions194 ViewsLast Modified:

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>

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>

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?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros