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
  1. Home
  2. Web Development
  3. ASP.NET
  4. not able to delete image

not able to delete image

Scheduled Pinned Locked Moved ASP.NET
sysadminquestion
6 Posts 4 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.
  • T Offline
    T Offline
    trilokharry
    wrote on last edited by
    #1

    Hi on click on save button: I uploaded 4 images in temp folder in application and used in attachment while sending mail from temp folder. because on live server it was not possible to recognize from file upload control. now after finishing email sending process I want to delete these all images but while deleting by coding exception is coming like "this file is being used by another process". so how can I end process that is responsible to hold these images. thanks

    You get the best out of others when you give the best of yourself.

    M P 2 Replies Last reply
    0
    • T trilokharry

      Hi on click on save button: I uploaded 4 images in temp folder in application and used in attachment while sending mail from temp folder. because on live server it was not possible to recognize from file upload control. now after finishing email sending process I want to delete these all images but while deleting by coding exception is coming like "this file is being used by another process". so how can I end process that is responsible to hold these images. thanks

      You get the best out of others when you give the best of yourself.

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      trilokharry wrote:

      so how can I end process that is responsible to hold these images.

      Could you post youe code snippet where you do this operation... It would help people to locate where the problem is.

      Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      T 1 Reply Last reply
      0
      • M Manas Bhardwaj

        trilokharry wrote:

        so how can I end process that is responsible to hold these images.

        Could you post youe code snippet where you do this operation... It would help people to locate where the problem is.

        Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        T Offline
        T Offline
        trilokharry
        wrote on last edited by
        #3

        { //save button event SendMail();//sending mail with attachment Delete();//deliting images }

        You get the best out of others when you give the best of yourself.

        M C 2 Replies Last reply
        0
        • T trilokharry

          { //save button event SendMail();//sending mail with attachment Delete();//deliting images }

          You get the best out of others when you give the best of yourself.

          M Offline
          M Offline
          Manas Bhardwaj
          wrote on last edited by
          #4

          trilokharry wrote:

          SendMail();//sending mail with attachment Delete();//deliting images

          This is just a function call. Would you mind posting the actual function.

          Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          1 Reply Last reply
          0
          • T trilokharry

            { //save button event SendMail();//sending mail with attachment Delete();//deliting images }

            You get the best out of others when you give the best of yourself.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            trilokharry wrote:

            SendMail();//sending mail with attachment Delete();//deliting images

            I'm sorry, but this is hilarious. Despite your inability to post the actual code, I have a guess. You try to delete right away, instead of in response to a message that mail was sent, are you sending asynchronously ? I think the images are still in use because the mail is still sending.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            1 Reply Last reply
            0
            • T trilokharry

              Hi on click on save button: I uploaded 4 images in temp folder in application and used in attachment while sending mail from temp folder. because on live server it was not possible to recognize from file upload control. now after finishing email sending process I want to delete these all images but while deleting by coding exception is coming like "this file is being used by another process". so how can I end process that is responsible to hold these images. thanks

              You get the best out of others when you give the best of yourself.

              P Offline
              P Offline
              praveen c byzan com
              wrote on last edited by
              #6

              hi, you cant delete image untill youe mail is not sent. praveen.

              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