Hi, Paul.
re:
!I am not sure what the CAS policy is
CAS is the Code Access Security configuration
General info:
http://msdn.microsoft.com/en-us/library/930b76w0.aspx
If you create any custom Code Access Security permissions, per the instructions at:
http://msdn.microsoft.com/en-us/library/yctbsyf4.aspx
....as soon as the custom permissions are implemented, the AppDomain will unload/restart,
causing the loss of session variables, unless you don't use in-process state management,
i.e., unless you use SQL Server or State Server to manage state in your application.
re:
!also not quite sure what listing i means?
Whenever you change any configurable reason for an Application Pool to recycle,
that will cause an automatic Application Pool recycle, with the same events
described above occurring.
You can configure Application Pools with the IIS Manager.
Open the IIS Manager, scroll down on the left panel to "Application Pools",
right click the desired Application Pool, select "Properties" and configure to your needs.
Be careful and know what you are doing before changing that stuff, though.
You can seriously harm your Application and server's performance if you misconfigure an App Pool.
More info on Application Pool specific configuration parameters:
http://www.microsoft.com/technet/pro...f894a0cfe.mspx
An extremely good tutorial on Ensuring Application Availability :
http://www.microsoft.com/technet/pro...f894a0cfe.mspx
On this last page, open the fly-ou menu on the left,
and make sure you read through every single page.
It will be one of the best investments you can make in regard to learning
how to configure your applications for top availability and performance.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================
"Paul" <Pa**@discussions.microsoft.comwrote in message news:32**********************************@microsof t.com...
thanks for the additional information, still not sure what is causing it but
I wrote a small sample program and I am able to upload files to the root
directory ok, but when I upload to the bin directory it looses the session
variable, which corresponds to listing c provided. I am not sure what the
CAS policy is, also not quite sure what listing i means?
--
Paul G
Software engineer.
"Juan T. Llibre" wrote:
>An application domain will unload (causing loss of session variables
unless session state is maintained with State Server or SQL Server),
when any one of the following occurs:
a. Machine.Config, Web.Config or Global.asax are modified
b. The bin directory or any of its contents is/are modified
c. The App_Code directory contents changes
d. The number of re-compilations (aspx, ascx or asax) exceeds the limit specified by the
<compilation numRecompilesBeforeAppRestart=/setting in machine.config or web.config
(by default this is set to 15)
e. The physical path of the virtual directory is modified
f. The CAS policy is modified
g. A web service is restarted
h. (2.0 only) Application Sub-Directories are deleted
i. Any of a number of configurable App Pool recycling reasons occurs
This should cover most scenarios.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Paul" <Pa**@discussions.microsoft.comwrote in message news:3F**********************************@microsof t.com...
thanks for the information, wondering if this is something new in vs2005 and
if there is a way to shut it off, were you can upload to any other folder
(other than the bin) without loosing the current session variables?
--
Paul G
Software engineer.
"bruce barker" wrote:
if you upload to any folder other than appdata, then a recycle can be
triggered.
-- bruce (sqlwork.com)
"Paul" wrote:
Hi I have a web application vs2005 and it looks like a condition is causing
session veriables to be lost. This does not seem to be happening too often.
The web application allows uploading and deleting files on the server, but
not in the bin directory. I am not sure if this is related. Any idea what
might be causing this and how to fix it?
Thanks.
--
Paul G
Software engineer.