.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to make complete login system?

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net

Does anyone have a tutorial on creating a complete login system (MSSQL database for storing Usernames/Passwords and user roles, sessions, cookies...)?

View Complete Post

More Related Resource Links

System.Data.SqlClient.SqlException: Login failed for user . Reason: The account is disable


Hi All,

Thank you for advance.

I created a widows service for mail schedule with c#.net and sql server 2005 and it is working fine for past one year.

now sometimes i am getting the "System.Data.SqlClient.SqlException: Login failed for user '<UserName>'. Reason: The account is disabled." error.

then i restarted the windows service manually and working.

what is the problem in my sql server connection and how to fix that issue?

How can i restrict the user to login only from the system which he registered from the Computer.

Hi,I am Kartheek. ASP.Net Web developer. I got one requirement regarding security.In my website, if one user registered from a computer, we have to allow  that user to be able to access the site from that computer only. If he try to login from another system even in LAN, we have to deny the access.Please help me with this. Thanks in advance,Kartheek Challagundla.kartheekchk86@gmail.com

Error: 18456, Severity: 14, State: 16 Login failed for user 'NT AUTHORITY\SYSTEM'

Hi,   can someone help me with this error. Error: 18456, Severity: 14, State: 16 Login failed for user 'NT AUTHORITY\SYSTEM' [CLIENT:<local machine>] I've found several Threads but not with the NT AUTHORITY\SYSTEM.   Thanks for help.   Jens

login failed for user nt authority/system

Please help on This error, I'm Using sql 2005 , windows authentication Event viewer,application: source :mssgl server,id 18456,servirty 14 state 16, logine failed for use "nt Athority/system,client: local machine , this error i'm gatting frequently Regards Asif

need a simple login page cus my hosting provider system wont allow me to have more than one database

I dont really write html code too well  but I manged to get my web site developed and deployed using the built in features such as drag n drop, master page and user account authentication that make web developing almost a codeless experience. However; my hosting provider system wont allow me to have more than one database, this causes problems becasue when I developed my web app using vb2010 web developer (asp.net v2) I used the built in web config tool to manage users for my site, now after I deployed to my domain it all worked ok with the exeption of the login page, when I tried to log in the system threw a error message saying "database not found." or a page of "gobble-dee-gook" that says the same thing When I contacted support (my hosting provider) they said i have to create a table of users in my database file via 2008 sql server, thats ok I can do that, but my real problem is I dont know how to write appropriate code to reference the table. So heres my problem:  I just want to have some kind of login page with a couple of txtboxes and a click button that maybe using the VB code behind or html checks the input variables "username" "password" against something that is hard coded into vb a string variable or a constant and then branches to Mainmenu.aspx if successfull. I just need it real simple, no fancy stuff just a login s

SQL Error with Login: Login failed for user 'NT AUTHORITY\SYSTEM'. [CLIENT: ]

<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-m

Purpose of "NT AUTHORITY\SYSTEM" login in SQL Server 2005

Hi All Does anybody know what the "NT AUTHORITY\SYSTEM" login create during a SQL Server 2005 instillation is used for? Does this login pose a security risk, and can it be removed safely?  It seems to me as if it is similar to the "Bultin\Administrator" login which we remove from our production servers? Regards Stevo

Insufficient system resources exist to complete the requested service


Hi All,

I am trying to read file stream on network path & getting the error Insufficient system resources exist to complete the requested service

binaryReader =

New BinaryReader(fileStream)


Dim binaryFileContent As Byte() = binaryReader.ReadBytes(CInt(fileStream.Length))

Can any one help out how to resolve this issue.

How to make linq Object Serializable... 'System.Data.EnumerableRowCollection is not marked as Seriz


Dear All,

Is it possible to make the linq object as serializable. I need to pass the serialized Data as parameter to the Remoting Method.

My LinQ Query is as follows

 Dim LinqQuery = From R In dsEdit.Tables(0) _

                    Where R.Field(Of Integer)("ID") < 400 _

                    Select R


The Definition of ZipObject is as follows.



  Public Function ZipObject(ByVal obj As Object) As Byte()

        Dim ms

make stored procedure for login



i want to make a stored procedure for login page. my riquirement is  when we enter user name wrong it displau message only username is wrong and same viceversa for password.

when both are entered wrong it display both wrong,

how i write this procedure? i am not able to do this plase help me...

please help me.....

how to make login control allow users to login by either username or email address


how to make login control allow users to login by either username or email address 

Setup a login account for system backup, but now allow accessing data


Dear All,

     My problem seem quite contradiction. Not sure it's possible to do. My question is we used a symmatic software to backup our SQL databases. It require an admin right SQL user account to perform it. However some of database is quite sensitive e.g HR data. I don't want to let the IT staff to make use of this privilege to read the data. Is there any solution on this?

Best Rdgs


stsadm change in 2010? login as system account problem


I have installed SharePoint 2010 beta 2 on a HP Blade in a Domain Environment. SQL Server 2008 SP1 CU2 is on a seperate Blade. Installation and configuration went ok. Everything runs under my Domain-Admin Account (SQL, Farm, ...)

The first few sites went smooth, after a while i noticed that not my Domain-Admin Account was written in the top-right corner, but "System Account". I remembered that problem from MOSS 2007 and tried stsadm updatefarmcredentials. Result after 30 seconds of waiting:
Value cannot be null.
Parameter name: farm

To be exactly i tried: stsadm -o updatefarmcredentials -userlogin XXX -userpassword XXX

There is definatly no typo and i tried varios different things like with "" and without "", with -identitytype and withou, and so on..

When i change the Farm-Account at the GUI, to a normal Account, i see my Domain-Admin Account in the top right corner again instead of System Account. When i change back, the same problem occurs.

Im pretty sure i resolved the issue in 07 with the command written above. Did the syntax change? Do i have to use Powershell? It looks like i have to specify the farm somehow (even thou there is only one farm consisting of one server on which im running the command)

Of course i'd be happy for any other solution to th

Login failed for user 'NT AUTHORITY\SYSTEM'. [CLIENT: ]



: 18456, Severity: 14, State: 16.
Login failed for user 'NT AUTHORITY\SYSTEM'. [CLIENT: <local machine>]

I am seeing this error in my SQL log and application event every min.

If I restart the mechine this problem could be resolved. Any inputs with out restarting the machine.


Complete SQL Solution

SQL Server Solutions: SQL Server 2000/2005 Related Free Snippets.

System Development Life Cycle

The Systems Development Life Cycle (SDLC) is a conceptual model used in project management that describes the stages involved in an information system development project from an initial feasibility study through maintenance of the completed application. Various SDLC methodologies have been developed to guide the processes involved including the waterfall model (the original SDLC method), rapid application development (RAD), joint application development (JAD), the fountain model and the spiral model. Mostly, several models are combined into some sort of hybrid methodology
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend