Hi All,
The following code works fine in VB.NET (Windows app and Web app projects) when converted to VB.
It also works fine in C#, BUT only in Windows app project. All tested applications contain only this code on loading of the application (form).
Why does it not work in C# Web app project? Could this be a bug? I am using VS.NET 2003 EA
System.IO.Direc toryInfo di = new System.IO.Direc toryInfo("\\\\M yServer\\MyFold er\\MySubFolder 1\\MySubFolder2 \\MySubFolder3\ \MySubFolder4\\ ");
System.IO.FileI nfo[] fi = new System.IO.FileI nfo[500];
fi = di.GetFiles();
foreach (System.IO.File Info f in fi)
{
Response.Write( f.FullName + "<br>");
// Console.WriteLi ne(f.FullName);
}
Goran Djuranovic