G
Goran Djuranovic
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.DirectoryInfo di = new System.IO.DirectoryInfo("\\\\MyServer\\MyFolder\\MySubFolder1\\MySubFolder2\\MySubFolder3\\MySubFolder4\\");
System.IO.FileInfo[] fi = new System.IO.FileInfo[500];
fi = di.GetFiles();
foreach (System.IO.FileInfo f in fi)
{
Response.Write(f.FullName + "<br>");
// Console.WriteLine(f.FullName);
}
Goran Djuranovic
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.DirectoryInfo di = new System.IO.DirectoryInfo("\\\\MyServer\\MyFolder\\MySubFolder1\\MySubFolder2\\MySubFolder3\\MySubFolder4\\");
System.IO.FileInfo[] fi = new System.IO.FileInfo[500];
fi = di.GetFiles();
foreach (System.IO.FileInfo f in fi)
{
Response.Write(f.FullName + "<br>");
// Console.WriteLine(f.FullName);
}
Goran Djuranovic