App restarts, session disappears...

D

Domien Holthof

Hi,

I'm using a custom-made base class for all pages of a
site. However, when I make changes to that class and
replace the dll on the (web)server, the application often
restarts when a page is requested. When I request the page
a second time it usually goes well. This is quite a
burden, because every time a change to the base class is
made, I need to request all pages myself in order to make
everything working again.

An other anoying thing is that session data seems to get
lost when a page is changed and needs to be recompiled. Is
this normal? I tought that the asp.net worker process
would detect if a page was changed, recompiles it and
executes it. How can this operation cause to lose session
state? I always get the following stack trace:

at AdiosAdmin.AdminPage.Page_Init(Object sender, EventArgs
e) at System.Web.UI.Control.OnInit(EventArgs e) at
System.Web.UI.Control.InitRecursive(Control
namingContainer) at System.Web.UI.Page.ProcessRequestMain()

Any help would be appreciated, thanks a lot in advance.

Domien
 
A

Alvin Bruney

This appears to be correct. Changes to these files will cause the app to
restart. When the app does so, your original session is closed and a new one
started.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top