String[] WebServer1 = Directory.GetFiles(System.Configuration.ConfigurationManager.AppSettings["WebServer1"], "webapi_trace*.log");
String[] WebServer2 = Directory.GetFiles(System.Configuration.ConfigurationManager.AppSettings["WebServer2"], "webapi_trace*.log");
var files = WebServer1.Concat(WebServer2);
foreach (var f in files)
{
log = File.ReadAllText(f); //GETTING ERROR HERE
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY
As the message says the file is used by something else. The other app either needs to stop using it or allow it to be used in non-exclusive mode. If the other app is yours then you need to rewrite a section of that. If the other app is not from you then you can not read it no matter what you do.