1
Vote

Unable to get file size,create datetime and last access datetime

description

Hi All,

Unable to retrieve the File size, file create date time and file last access date time from this dll. All the times I am getting arithmetic exception? please help me.

Now I identified the root cause,

I am using below snippet to get file size and date time .

try
        {
            ZetaLongPaths.ZlpFileInfo obj = new ZetaLongPaths.ZlpFileInfo(@"\\192.163.3.3\share\111111111111111111122222222222222222222222333333333333333333333334444444444444444444455555555555555555555555666666666666666666666666777777777777777777777778888888888888888888999999999999999999999999999999999999999999999999\1111111111.txt");

            var t1 = obj.LastWriteTime;
            var t2 = Convert.ToInt64(Math.Round(((double)(new ZetaLongPaths.ZlpFileInfo(@"\\192.163.3.3\share\111111111111111111122222222222222222222222333333333333333333333334444444444444444444455555555555555555555555666666666666666666666666777777777777777777777778888888888888888888999999999999999999999999999999999999999999999999\aaa.jpeg").Length) / 1024), 0, MidpointRounding.AwayFromZero));
        }
        catch (Exception ex)
        {

        }
============================================================

__The above snippet works fine when I hosted on IIS by making application pool with Enable 32-bit option as true.

The same snippet is throwing arithmetic exception when I hosted on IIS by making application pool with Enable 32-bit option as False.

Does it mean "ZetalongPath" dll doesn't support on IIS with 64-bit machine and application pool with Enable 32-bit option as False.?__

comments