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. Visual Basic
  4. The process cannot access the file " " because it is being used by another process.

The process cannot access the file " " because it is being used by another process.

Scheduled Pinned Locked Moved Visual Basic
oracledata-structuresdebugginghelpquestion
5 Posts 2 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.
  • M Offline
    M Offline
    MagicGirL83
    wrote on last edited by
    #1

    The process cannot access the file "\\cvspwcora010\d$\oracle\Admin\log\oramon_marsprod.log" because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.IOException: The process cannot access the file "\\cvspwcora010\d$\oracle\Admin\log\oramon_marsprod.log" because it is being used by another process. Source Error: Line 27: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Line 28: Dim myFileReader As System.IO.StreamReader Line 29: myFileReader = System.IO.File.OpenText("\\cvspwcora010\d$\oracle\Admin\log\oramon_marsprod.log") Line 30: Dim myString As String Line 31: myString = myFileReader.ReadToEnd hi.. any idea why this happens? thanks

    C 1 Reply Last reply
    0
    • M MagicGirL83

      The process cannot access the file "\\cvspwcora010\d$\oracle\Admin\log\oramon_marsprod.log" because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.IOException: The process cannot access the file "\\cvspwcora010\d$\oracle\Admin\log\oramon_marsprod.log" because it is being used by another process. Source Error: Line 27: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Line 28: Dim myFileReader As System.IO.StreamReader Line 29: myFileReader = System.IO.File.OpenText("\\cvspwcora010\d$\oracle\Admin\log\oramon_marsprod.log") Line 30: Dim myString As String Line 31: myString = myFileReader.ReadToEnd hi.. any idea why this happens? thanks

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

      Yeah, you're trying to open a text file that is already open by another process. It's possible that this has been caused by a rogue process from a previous debug attempt - happens to me from time to time, and I close the project and reopen, in VS. Not that I go around writing to text files in my web apps, of course..... Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

      M 1 Reply Last reply
      0
      • C Christian Graus

        Yeah, you're trying to open a text file that is already open by another process. It's possible that this has been caused by a rogue process from a previous debug attempt - happens to me from time to time, and I close the project and reopen, in VS. Not that I go around writing to text files in my web apps, of course..... Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

        M Offline
        M Offline
        MagicGirL83
        wrote on last edited by
        #3

        yeah.. but how can i possibly access the file? a separate process is also accessing the text file

        C 1 Reply Last reply
        0
        • M MagicGirL83

          yeah.. but how can i possibly access the file? a separate process is also accessing the text file

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

          Then you're screwed. It just doesn't work. I dunno if you can open it if you specify read only access, but I don't think so. It may be possible under Linux. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

          M 1 Reply Last reply
          0
          • C Christian Graus

            Then you're screwed. It just doesn't work. I dunno if you can open it if you specify read only access, but I don't think so. It may be possible under Linux. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

            M Offline
            M Offline
            MagicGirL83
            wrote on last edited by
            #5

            oh i see.. :( thanks for the help anyway... regards, leny :)

            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