Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What does this error mean?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00716419
Message ID:
00716672
Views:
13
Cathi,

I got it working - however there is a slight dilemna.

I added a test for
Debug.Assert(Page.IsValid == true);
between InitializeComponent() and base.onInit(e) in the OnInit() method of my web form.

As I hit this statement, in the debug window I see the error I mentioned before already set in Page.IsValid. Howver, Debug.Assert complains that
Page.IsValid cannot be called before validation has taken place. It should be queried in the event handler for a control with CausesValidation=true or after a call to Page.Validate
If that is the case, why am I seeing Page.IsValid to be in error? Or is this just the default state of Page before being validated?
TIA,
Doug
>In order to see trace output in an ASP.NET application, you need to turn on tracing, which is typically done at the application-level in the web.config file. The trace setting can be found within the trace element:
>
>
><trace enabled="false"
>requestLimit="10"
>pageOutput="false"
>traceMode="SortByTime"
>localOnly="true"
>
>
>To turn on tracing, set the enabled property to “true”. If the pageOutput property is set to “true”, the trace output is displayed at the bottom of each ASP.NET page. If it’s set to “false”, trace output is saved in a file named “trace.axd” found in your Web application’s root directory.
>
>>Cathi,
>>
>>I am setting up Debug.Assert(Page.IsValid == true); It is saying that I need a setting with within it - I'm not sure where these setting need to be - I was asking if they go in web.config.
>>
>>Unless there is an easier way to set Stack Trace on to debug my web project?
>>
>>Thanks Again,
>>Doug
>>>Doug,
>>>
>>>What configuration file are you referring to? I didn't see any reference to one in the error message you posted.
>>>
>>>>Cathi,
>>>>
>>>>Silly question - I am not seeing the configuration file they speak of - they are not talking about web.config, right?
>>>>
>>>>Thanx,
>>>>Doug
>>>>>I recommend using the Stack Trace to see if it gives you any more insight of the error. All you are seeing is that an error occured but no info about the source of the error.
>>>>>
>>>>>>All,
>>>>>>
>>>>>>I was debugging a web page page, and started walking the Page object. I scrolled down the listed variables and saw this next to the variable IsValid
>>>>>>
>>>>>>< error: an exception of type: {System.Web.HttpException} occurred >
>>>>>>
>>>>>>
>>>>>>What does it mean, what was it, how do I catch it and fix it?
>>>>>>
>>>>>>TIA,
>>>>>>Doug
Douglas Osborne
Don't spend your life just wishing - http://www.AllGiftRegistry.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform