M
Morten Fagermoen
I want to open the current IIS log file in read-only mode. This file is held
by IIS but I still can open it in Notepad, but I have not been able (so far)
to read from it using my VB.NET program.
I have tried:
Dim fileReader As StreamReader
Try
fileReader = My.Computer.FileSystem.OpenTextFileReader(arguments(1) &
"\ex" & LogDate & ".log")
Catch ex As .....
And this throws an exception when the file is already in use by IIS.
What can I do to make this work?
Regards
Morten Fagermoen
by IIS but I still can open it in Notepad, but I have not been able (so far)
to read from it using my VB.NET program.
I have tried:
Dim fileReader As StreamReader
Try
fileReader = My.Computer.FileSystem.OpenTextFileReader(arguments(1) &
"\ex" & LogDate & ".log")
Catch ex As .....
And this throws an exception when the file is already in use by IIS.
What can I do to make this work?
Regards
Morten Fagermoen