Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > If I create a page, then it's compiled upon first request, where cani find the compiled code??

Reply
Thread Tools

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

 
 
lander
Guest
Posts: n/a
 
      03-05-2008
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.
 
Reply With Quote
 
 
 
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      03-05-2008
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>\Tempo rary 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


 
Reply With Quote
 
 
 
 
lander
Guest
Posts: n/a
 
      03-05-2008
On 3月5日, 下午1时16分, Michael Nemtsev [MVP] <(E-Mail Removed)> wrote:
> 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>\Tempo rary 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


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 ?
 
Reply With Quote
 
Michael Nemtsev [MVP]
Guest
Posts: n/a
 
      03-05-2008
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>


 
Reply With Quote
 
lander
Guest
Posts: n/a
 
      03-05-2008
On 3月5日, 下午8时46分, Michael Nemtsev [MVP] <(E-Mail Removed)> wrote:
> 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>


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!
 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      03-05-2008
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)


"lander" wrote:

> On 3鏈5鏃, 涓嬪崍1鏃16鍒, Michael Nemtsev [MVP] <(E-Mail Removed)> wrote:
> > 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>\Tempo rary 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

>
> 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 ?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cani i safely delete stuff in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files Tony Girgenti ASP .Net 3 02-18-2007 03:50 PM
WebPart events not triggered upon first logon Paal Berggreen ASP .Net 5 06-13-2006 05:47 PM
Help. SessionID is x then y then x then y BodiKlamph@gmail.com ASP General 0 09-03-2005 03:02 PM
Having a checkbox column and the grid disabled upon first load generated wierd behavior when Postback occurs. glorfindel ASP .Net Datagrid Control 1 02-19-2005 09:44 AM
Where canI sell a brand new Windows XP Pro other than E-bay fourstriper Computer Support 1 08-14-2004 12:11 AM



Advertisments