Hi All,
I have a problem in my page. i am using below code to read the content of a file.
in the page load method i am writing this code.
Dim sLine() As String = File.ReadAllLines(sLicenseFile)
it works fine when single user access the page.
But problem occurs when another user try to access the page then it kill the prosessing of first use.
any idea why this is happening.
and if i remove this line of code then application works fine. both the user can access the application at the same time.
what else i can do to read the file. i have tried 'Streamreader' also but the same problem.
Dim objSR As StreamReader = New StreamReader(sLicenseFile)
Dim sLine As String = objSR.ReadLine()
objSR.Close()
objSR = Nothing
please shed some light on it
Thanks
-john