Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2004, 01:12 PM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sarah-WCHM
Default Ch. 17 -- Login & Authorization

For the Wrox United website, I've run into the below error when attempting to log in -- it seems to be a problem with login.aspx. Any help would be appreciated!

===

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: No value given for one or more required parameters.

Source Error:


Line 55: dbConnection.Open();
Line 56: System.Data.IDataReader dataReader;
Line 57: dataReader = dbCommand.ExecuteReader(System.Data.CommandBehavio r.CloseConnection);
Line 58:
Line 59: return dataReader;


Source File: C:\BegASPNET11\WroxUnited\admin\login.aspx Line: 57

Stack Trace:


[OleDbException (0x80040e10): No value given for one or more required parameters.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextE rrorHandling(Int32 hr) +41
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextF orSingleResult(tagDBPARAMS dbParams, Object& executeResult) +122
   System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object& executeResult) +92
   System.Data.OleDb.OleDbCommand.ExecuteCommand(Comm andBehavior behavior, Object& executeResult) +65
   System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method) +112
   System.Data.OleDb.OleDbCommand.ExecuteReader(Comma ndBehavior behavior) +69
   System.Data.OleDb.OleDbCommand.System.Data.IDbComm and.ExecuteReader(CommandBehavior behavior) +5
   ASP.login_aspx.Players() in C:\BegASPNET11\WroxUnited\admin\login.aspx:57
   ASP.login_aspx.LoginBtn_Click(Object Sender, EventArgs e) in C:\BegASPNET11\WroxUnited\admin\login.aspx:11
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +83
   System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1277




 
Old September 22nd, 2004, 01:58 PM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

Sarah:

Are you using the VB version of the book? Then possibly the problem is that login.aspx is missing from the download? If you check and see that you don't actually have a login.aspx, you can get it from the C# book version download at:
http://www.wrox.com/WileyCDA/WroxTit...load_code.html

then just modify it for VB. I'm working on getting the VB version verified and added to the download.

If this isn't the problem, please let us know.



Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Jim's Book of the week: ASP.NET 2.0 Beta Preview
 
Old September 22nd, 2004, 03:24 PM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sarah-WCHM
Default

I'm using the C# version of the book, unfortunately, so that isn't the problem. I'm wondering--is there a problem with the code itself? My code matches the downloaded code so could it be in one of the associated files?






Similar Threads
Thread Thread Starter Forum Replies Last Post
login through jmeter authorization. labudug BOOK: Expert One-on-One J2EE Design and Development 3 November 16th, 2013 09:54 AM
error in ch 17 on running both fils no17 Beginning PHP 0 May 10th, 2008 02:15 AM
Ch 17 - Sender Object not working? deanC4 BOOK: Beginning ASP.NET 2.0 and Databases 1 April 18th, 2007 01:25 PM
IStateManager.TrackViewState() Ch 17 EdKroket BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 0 January 25th, 2007 07:10 AM
Ch. 17 & 19 Apache instead of IIS Kevin Tough VB.NET 2002/2003 Basics 0 October 3rd, 2005 01:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.