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. General Programming
  3. C#
  4. Restrict to create the temp files

Restrict to create the temp files

Scheduled Pinned Locked Moved C#
csharpasp-netquestion
4 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.
  • P Offline
    P Offline
    Pankaj Saha
    wrote on last edited by
    #1

    Hi I have an asp.net application. whenever i compile or run my application it's create extra .temp files, then i have to delete that files again and again. Would you please tell me the reason why it is creating this file and how can i restrict this.

    Pankaj

    Y I 2 Replies Last reply
    0
    • P Pankaj Saha

      Hi I have an asp.net application. whenever i compile or run my application it's create extra .temp files, then i have to delete that files again and again. Would you please tell me the reason why it is creating this file and how can i restrict this.

      Pankaj

      Y Offline
      Y Offline
      Yitzchok Dev
      wrote on last edited by
      #2

      asp.net has to compile your code to run it (creating dll of your files) and then it can run the app you can try to pre compile your app this might help Please tell me if I am wrong

      1 Reply Last reply
      0
      • P Pankaj Saha

        Hi I have an asp.net application. whenever i compile or run my application it's create extra .temp files, then i have to delete that files again and again. Would you please tell me the reason why it is creating this file and how can i restrict this.

        Pankaj

        I Offline
        I Offline
        I explore code
        wrote on last edited by
        #3

        basically temp files are created in C:\Windows\Temp and it contains file inforamtion about all the web pages that the browser opens, well i am anot very sure whether you can really restrict this from happening. One way out is to go to Tools->Internet Options and go to Temporary Internet Files and delete all temp files from there or write a simple code in ur web app to delete those files on the exit of the application automatically.

        P 1 Reply Last reply
        0
        • I I explore code

          basically temp files are created in C:\Windows\Temp and it contains file inforamtion about all the web pages that the browser opens, well i am anot very sure whether you can really restrict this from happening. One way out is to go to Tools->Internet Options and go to Temporary Internet Files and delete all temp files from there or write a simple code in ur web app to delete those files on the exit of the application automatically.

          P Offline
          P Offline
          Pankaj Saha
          wrote on last edited by
          #4

          actually when i compile the application it's create the temp files and add into the solution.

          Pankaj

          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