Page 1 of 1

page loaded twice

Posted: Tue Dec 14, 2004 3:44 pm
by 8576968
Hi!

Whenever I include a WebChart into my page, the page is loaded twice.
Meaning the Load Event of the Page occurs twice and therefore the
Page_Load function is called twice.
My Page_Load function and functions that are called by this contain a
lot of complicated operations and a double call of this function means
loss of speed - which I am desperately trying to improve.

When I leave out the WebChart or set its visibility to false, the
Page_Load is only called once as it should be.
Even in a Page that only contains a WebChart, the error occurs.
And even if I call that page seperately, with copying the SessionId and
stuff, the load function is called double.

If I move this Page with only the WebChart to another directory, the
error does not occur, even if the Global.asax.* files are there.
That's why I can't give a link to an error file.

I upgraded to 1.1.1769.19457, but still loaded double.

Has anybody got any clue, what the problem could be?

Thanks in advance
Werner

Posted: Wed Dec 15, 2004 12:39 am
by Pep
Hi Werner,

how can I reproduce the problem ? Can you post an example into the steema.public.attachments newsgroup ?
Does this also happens with the example included in the TeeChart for Net installation ?

Posted: Thu Dec 16, 2004 10:02 am
by 8576968
Hi!

I thought I have found what makes the difference.

Two days ago I experienced the following:
If <identity impersonate="true" /> is set in the web.config and a WebChart is included in the page Page_Load is called twice.

As soon as I removed the line, it worked.

Today I can't reproduce the error, strange isn't it?

Maybe it had to do something with changing the web.config or so?

Could you try with the above entry in web.config? Maybe you can reproduce the error still.

What I did was:
Open a new project. Add a new webchart to it.
Then add this line to the web.config.

Maybe it has something to do with WIN XP SP2. This "offers" some kind of strange behaviour as it seems.

Nice regards
Werner