RangeValidaor throwing exception

anup_daware

Newcomer
Joined
Mar 13, 2006
Messages
24
Location
India
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.CompilerGlobalScopeAttribute()]
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
 
Is the project called RangeValidator? If so it looks like it is getting confused between the default namespace and the RangeValidator control. Try renaming the project / changing the default namespace and see if that fixes it.
 
Back
Top