The process cannot access the file " " because it is being used by another process.
-
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
-
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
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
-
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
yeah.. but how can i possibly access the file? a separate process is also accessing the text file
-
yeah.. but how can i possibly access the file? a separate process is also accessing the text file
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
-
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
oh i see.. :( thanks for the help anyway... regards, leny :)