Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 14th, 2003, 06:00 PM
Authorized User
 
Join Date: Jun 2003
Location: Sylmar, CA, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to gumgak
Default maximum number of prefixes?

i got the following message while running asp.net.
i've seen many errors but this is a strange error message.
does anyone have any idea what this means?


========================================
Server Error in '/' Application.


The number name 'System.Web.UI.WebControls' contains more than the maximum number of prefixes. The maximum is 3.

========================================
  #2 (permalink)  
Old July 14th, 2003, 06:02 PM
Authorized User
 
Join Date: Jun 2003
Location: Sylmar, CA, USA.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to gumgak
Default

Here is extra piece of the error message;

Stack Trace:


[SqlException: The number name 'System.Web.UI.WebControls' contains more than the maximum number of prefixes. The maximum is 3.]
System.Data.SqlClient.SqlCommand.ExecuteNonQ uery() +180
ASP.register2_aspx.Insert2(Object sender, EventArgs e) in register2.aspx:139
System.Web.UI.WebControls.Button.OnClick(Eve ntArgs e) +108
System.Web.UI.WebControls.Button.System.Web. UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostB ackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameVa lueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
  #3 (permalink)  
Old July 29th, 2003, 03:21 AM
Authorized User
 
Join Date: Jun 2003
Location: Quezon City, MM, Philippines.
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to planeswalk
Default

Hi,

Can you show us the code that generates this error?

Cheers!
Marlon
  #4 (permalink)  
Old July 30th, 2003, 10:00 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Bakerdaw
Default

Check your code. It looks like your query is including the text "System.Web.UI.WebControls", and rejecting it as having too many prefixes.
Show us the code that builds your SqlClient.SqlCommand

  #5 (permalink)  
Old July 31st, 2003, 05:30 PM
Authorized User
 
Join Date: Jul 2003
Location: Calgary, Alberta, Canada.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The thirdline of the error shows that the problem is in line 139 of Register2.aspx
"ASP.register2_aspx.Insert2(Object sender, EventArgs e) in register2.aspx:139"
I would check out this line for your problem.

If that does not help then post your code as planeswalk suggested above.

  #6 (permalink)  
Old February 13th, 2006, 09:56 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You're probably giving the name of your control to your query instead of the value of the control.

Use:

sql = "select ....." + ....;
and then put a watch on your sql string, you'll find your error quite quick.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of cursors exceeded. zaheerabbas.sk Oracle 1 July 4th, 2008 04:41 AM
Maximum Number of Controls on a Page? Aaron Edwards ASP.NET 2.0 Basics 0 March 3rd, 2007 06:07 PM
Maximum Number of Controls? Aaron Edwards Visual Studio 2005 0 March 3rd, 2007 06:04 PM
record number maximum Jorge SQL Server 2000 3 December 3rd, 2004 12:00 PM
find maximum number Abhinav_jain_mca SQL Server 2000 4 September 28th, 2004 08:13 AM



All times are GMT -4. The time now is 09:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.