Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Application_End x folders manipulation

Application_End x folders manipulation

Scheduled Pinned Locked Moved ASP.NET
helpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joaoPaulo
    wrote on last edited by
    #1

    hey.. (sorry about my english..) just note the following "bad situation" we create, dynamically, subfolders in web shared directory (i mean, inside the physical directory of virtual directory), this happen in user logon process.. thus far all fine... BUT, always when same subfolder has been (dynamically) deleted,.. hmm.. the web application ends. calling the "Application_End" handler from Global.asax we have a workaround for this situations??, can we avoid/omit that "aplication fall"?? some body already read about avoid creation or exclusion of subfolders located beneath our virtual directory? thanks for any help! joaoPaulo blitzkrieg bop!!

    E 1 Reply Last reply
    0
    • J joaoPaulo

      hey.. (sorry about my english..) just note the following "bad situation" we create, dynamically, subfolders in web shared directory (i mean, inside the physical directory of virtual directory), this happen in user logon process.. thus far all fine... BUT, always when same subfolder has been (dynamically) deleted,.. hmm.. the web application ends. calling the "Application_End" handler from Global.asax we have a workaround for this situations??, can we avoid/omit that "aplication fall"?? some body already read about avoid creation or exclusion of subfolders located beneath our virtual directory? thanks for any help! joaoPaulo blitzkrieg bop!!

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      Hi there, Still not get ur idea.. :( You are creating dynamically folder, and are they deleted automatically when application_end fired, right? << >>:rose:

      J 1 Reply Last reply
      0
      • E enjoycrack

        Hi there, Still not get ur idea.. :( You are creating dynamically folder, and are they deleted automatically when application_end fired, right? << >>:rose:

        J Offline
        J Offline
        joaoPaulo
        wrote on last edited by
        #3

        hi, well, in a specific request i need to call the Directory.Delete() method, this make the application terminate.. i'm using the aspnet 2.0.. chears joaoPaulo brazil blitzkrieg bop!!

        E 1 Reply Last reply
        0
        • J joaoPaulo

          hi, well, in a specific request i need to call the Directory.Delete() method, this make the application terminate.. i'm using the aspnet 2.0.. chears joaoPaulo brazil blitzkrieg bop!!

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          hmm...it sounds strange :confused: :confused: is the file deleted after calling that function? is any other clues u think that it might cause this issue...??? I cannot guess anymore...;P << >>

          J 1 Reply Last reply
          0
          • E enjoycrack

            hmm...it sounds strange :confused: :confused: is the file deleted after calling that function? is any other clues u think that it might cause this issue...??? I cannot guess anymore...;P << >>

            J Offline
            J Offline
            joaoPaulo
            wrote on last edited by
            #5

            its easy to simulate:;P put that code on page_Load of an default.aspx (using aspnet 2.0 with VS 2005), and then put a breakpoint on GlobalAsax.Application_End, nothing to much, rigth? using System.IO; ... protected void Page_Load(object sender, EventArgs e) { Directory.CreateDirectory(Server.MapPath("teste_maluco")); Directory.Delete(Server.MapPath("teste_maluco"), true); } But always happen, tell me if im wrong.. or tell me what's wrong in that code.. i try put some log and then run as release.. always hits on Application_End handler.. if you do that test in your aspnet 1.1 with VS 2003, this run just fine, without bugs... one more time, sorry about my english and thanks for your attention joaoPauloMelo brazil blitzkrieg bop!!

            E M 2 Replies Last reply
            0
            • J joaoPaulo

              its easy to simulate:;P put that code on page_Load of an default.aspx (using aspnet 2.0 with VS 2005), and then put a breakpoint on GlobalAsax.Application_End, nothing to much, rigth? using System.IO; ... protected void Page_Load(object sender, EventArgs e) { Directory.CreateDirectory(Server.MapPath("teste_maluco")); Directory.Delete(Server.MapPath("teste_maluco"), true); } But always happen, tell me if im wrong.. or tell me what's wrong in that code.. i try put some log and then run as release.. always hits on Application_End handler.. if you do that test in your aspnet 1.1 with VS 2003, this run just fine, without bugs... one more time, sorry about my english and thanks for your attention joaoPauloMelo brazil blitzkrieg bop!!

              E Offline
              E Offline
              enjoycrack
              wrote on last edited by
              #6

              ok, I'll try and let u know later. Becoz now I have no VS 2k5 installed ;P << >>

              1 Reply Last reply
              0
              • J joaoPaulo

                its easy to simulate:;P put that code on page_Load of an default.aspx (using aspnet 2.0 with VS 2005), and then put a breakpoint on GlobalAsax.Application_End, nothing to much, rigth? using System.IO; ... protected void Page_Load(object sender, EventArgs e) { Directory.CreateDirectory(Server.MapPath("teste_maluco")); Directory.Delete(Server.MapPath("teste_maluco"), true); } But always happen, tell me if im wrong.. or tell me what's wrong in that code.. i try put some log and then run as release.. always hits on Application_End handler.. if you do that test in your aspnet 1.1 with VS 2003, this run just fine, without bugs... one more time, sorry about my english and thanks for your attention joaoPauloMelo brazil blitzkrieg bop!!

                M Offline
                M Offline
                minhpc_bk
                wrote on last edited by
                #7

                Hi there, You can have a look at the ShutdownReason[^] property in the Application_End event handler to see why the application terminates. It seems to me that in the ASP.NET 2.0, the current AppDomain is automatically recycled when a directory in the application boundary is deleted.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups