473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

RangeValidaor throwing exception

Hi Group,

In my application I am using "Range Validator", validator is set for a
textbox with range 1900 - 9999.
and I am also using "Validation Summary" problem is when I run the
application i get a run-time exception

Compiler Error Message: CS0234: The type or namespace name 'Global'
does not exist in the class or namespace
'System.Web.UI.WebControls.RangeValidator' (are you missing an assembly
reference?)
Source Error:

Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()]
Line 28: public class Global_asax : RangeValidator.Global {
Line 29:
Line 30: private static bool __initialized = false;

I am using ASP1.x

what could be the problem and whats the solution?

Regards,
Anup

Mar 16 '06 #1
2 1106
Hi,

can you post some code?
especially the aspx page, problems like this at runtime usually occur due
you fail to include the correct namespace in the page declaration
like this:
<% @Import Namespace="System.Collections" %>
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Anup" <an*********@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
Hi Group,

In my application I am using "Range Validator", validator is set for a
textbox with range 1900 - 9999.
and I am also using "Validation Summary" problem is when I run the
application i get a run-time exception

Compiler Error Message: CS0234: The type or namespace name 'Global'
does not exist in the class or namespace
'System.Web.UI.WebControls.RangeValidator' (are you missing an assembly
reference?)
Source Error:

Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScop eAttribute()]
Line 28: public class Global_asax : RangeValidator.Global {
Line 29:
Line 30: private static bool __initialized = false;

I am using ASP1.x

what could be the problem and whats the solution?

Regards,
Anup

Mar 17 '06 #2
Hi,
Thank you for ur valuable post, you are right this is problem related
to namespsces, I got the solution, actually I named my program
"RangeValidator" thus there was a conflict in namespaces.
It wa sreally a silly mistake :)

Thanks and Regards,
Anup

Mar 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Farooq Khan | last post by:
i'm writing a class library having following code snippet. i want this class to report an error (by throwing an Exception) to the application using this class library. the problem is that within...
40
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
5
by: Joris Zwaenepoel | last post by:
Hi all, I don't think a solution exists, but maybe there is some option in Visual Studio that I do not know about. When developping (or debugging), I like to set the "exceptions" option to...
43
by: Shehab Kamal | last post by:
Which approach is better: 1) Use a method that returns true/false (the method will log the exception that lead to false using log4net for example) OR 2) Use a method that returns void and throws...
7
by: Sek | last post by:
Hi Folks! I was pondering over a code and noticed that exception handlers were present in the private, protected as well as public methods. And, ofcourse, public methods were calling priv/prot...
5
by: Bry | last post by:
I've created a class that offers an enhanced way of handling fatal exceptions. The class allows the user to optionaly submit a http based anonymous error report to myself, and also records details...
24
by: Earl | last post by:
I have all of my data operations in a separate library, so I'm looking for what might be termed "best practices" on a return type from those classes. For example, let's say I send an update from...
1
by: usenet | last post by:
I wrote some sample code (see below) for nested exception throwing i.e. my catch blocks are throwing exceptions of their own (for simplicity I used standard exceptions). I am getting some...
3
by: Miro | last post by:
I cant seem to find an example on how to do something, ( vb2005.express ) i have a Try ListeningSerialPort.Open() TestText.Enabled = True Catch ex As Exception 'Debug.WriteLine(ex.Message)...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.