473,804 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[B]Login Failure Error[/B]

33 New Member
Hi All,


I am facing a problem from many days. and need to help me. i am a local machine user. I am developing a site in which login page is as start page. and there is sql server as database. so i am writing this code:-

using system data.sqlclient;


sqlconnection objcon= new ("Connection string");
sqlcommand objcom= new ("select * from tab_login where username= '"+txtusername. text+"' and password = '"+txtpassword. text+"'",objcon )
objcon.open();
sqldatareader dr = executedataread er();
if(dr.read())
{
Response.redire ct("next page.aspx");
}
else
{
lblmessage.text = "Invalid Username or Password ";
}

so now when i am running this application then it is successfully build but when i put username and password then it shows the error message which is " Login failure",

So i want to know that where i am doing wrong. If i am writing <identity impersonate="tr ue" /> in web.config file. then also it is giving error in web.config file.


So any body can suggest me how to handle this error.


Kuldeep singh sethi
Nov 23 '06 #1
0 861

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5695
by: Jim Peter | last post by:
Hello , this is my first posting in this group. I am running SQL server 2000 on my windows 2000 server box. I use it for my Siebel database. When ever I launch Query Analyzer and chose SQL Server Authentication I get the error message below: Login failure "SA" Not associated with a trusted SQL server connection.
1
9269
by: dbwmn2001 | last post by:
I have a SAP Server running SQL2000 on Windows 2003. Recently I migrated the server from a NT4 Domain to a AD Domain using ADMT (with SID Migration for users) and everything seems ok. Now, after one month, I have to shut down the old NT4 domain and before doing it I have to replace the old logins in SQL with the correspondent users in the new domain. I applied a script which returned Error 15401: Windows NT user or group NEWDOM\User not...
0
2480
by: kevincw01 | last post by:
There doesnt seem to be a reliable support channel for libgmail so i figured this group might have some people who could help. I have the latest version(from cvs) of libgmail.py, lgconstants.py and mkconstants.py with python version 2.3.3. gmailfs fails with a login error. I also tried a test login script and it fails on logon also. I double-checked my username/passwords as well trying to actually login from the web and with two...
5
2639
by: calaha | last post by:
Hi all, I have been working with this since last night, and can't quite figure out why it's not working. I have a simple login box form that is set to be my startup form in my Access app (upon successful authentication, it opens the Switchboard). All it does is get the username and password, pull up a recordeset of the usernames and sets the UserId to be used throughout the session. The table Userlist is a SQL 2000 linked table. I can...
0
1089
by: Karl Lang | last post by:
Hi I'm trying to edit pages from inside Visual Studio 2002 on a remote server Windows 2000 using FrontPage extensions. Its been working fine for quite a few weeks but since a problem with the power supplier to the machine which caused it crash I've been getting a strange problem. I can be editing pages and saving them back to the server without a problem when for no apparent reason I get the following login prompt: "This operation...
12
6584
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I have added the new user to the database and have given the user access to the database for the app. But everytime I try and login using this users ID, I always get the error: Login failed for user Christian.Gaut If I login using my userid and...
2
3779
by: Shakun | last post by:
Hi All, This is my 1st posting to this group. Can any1 help me with the "Remember Me" which is there in a login form. Im pasting the code below. Im not able to set a cookie.. Thanks, Shakun Vohra
0
2359
by: samboychip | last post by:
Hi, can anyone please shed some lights on me how to get websieve authenticate with cyrus? Currently I have postfix and cyrus install in freebsd, but I m not able to login thru websieve. The error from webiseve is Login Error There was an error in loging you in to the server. Please click HERE and try again. System Error: IMAP::Admin : try NO Login failed:
0
913
by: kuldeep singh sethi | last post by:
Hi All, I am facing a problem from many days. and need to help me. i am a local machine user. I am developing a site in which login page is as start page. and there is sql server as database. so i am writing this code:- using system data.sqlclient; sqlconnection objcon= new ("Connection string"); sqlcommand objcom= new ("select * from tab_login where username= '"+txtusername.text+"' and password = '"+txtpassword.text+"'",objcon)
0
1086
by: sh | last post by:
I have a web service that logs into a database and retrieves information. Everything works fine if the login is successful. However if the login is unsuccessful, I can't get the web service to let go of the error and get a good login again. The scenario is as follows: The user sends a request to the web service. The web service tries to log in, fails and returns an error to the user.
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.