Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

If I create a page, then it's compiled upon first request, where can     i  find the compiled code??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lander - 05 Mar 2008 02:13 GMT
If I create a page, then it's compiled upon first request, where can
i  find the compiled code?

And another question, since aspnet_wp.exe is recycled sometimes, so
session would get lost and would global variable(static, or
application variable) get lost too??

Thanks very much.
Michael Nemtsev [MVP] - 05 Mar 2008 05:16 GMT
Hello lander,

l> If I create a page, then it's compiled upon first request, where can
l> i  find the compiled code?

c:\windows\microsoft.net\framework\<version>\Temporary ASP.NET files

l> And another question, since aspnet_wp.exe is recycled sometimes, so
l> session would get lost and would global variable(static, or
l> application variable) get lost too??

not the aspnet, but the IIS application pool too

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour 

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
lander - 05 Mar 2008 11:34 GMT
> Hello lander,
>
[quoted text clipped - 15 lines]
> "The greatest danger for most of us is not that our aim is too high and we
> miss it, but that it is too low and we reach it" (c) Michelangelo

As for the second question, do you mean aspnet and IIS both pool the
session&Global data? So when aspnet_wp.exe recycles,largely they won't
get lost ?
Michael Nemtsev [MVP] - 05 Mar 2008 12:46 GMT
Hello lander,

It depends where you store your sesson. If in InProc mode then your session
can't survive restart, because it was store in memory.
You need to use SQL Session mode to partly guarantee that your session will
be alive after restart

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour 

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

l> As for the second question, do you mean aspnet and IIS both pool the
l> session&Global data? So when aspnet_wp.exe recycles,largely they
l> won't get lost ?
l>
lander - 05 Mar 2008 13:59 GMT
> Hello lander,
>
[quoted text clipped - 14 lines]
> l> won't get lost ?
> l>

1,  if I choose InProc, is it stored in aspnet_wp.exe?
2,  if i store in state server, how often will it get lost? Or what it
mostly depends on in order to avoid getting lost?

Tom
Thanks!
bruce barker - 05 Mar 2008 16:34 GMT
when asp.net recycles, the appdomain is unloaded, so all .net statics (which
is what inproc session uses) are lost. if you use out of proc sessions, they
will not be lost by a recycle.

-- bruce (sqlwork.com)

> > Hello lander,
> >
[quoted text clipped - 19 lines]
> session&Global data? So when aspnet_wp.exe recycles,largely they won't
> get lost ?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.