OverflowException with Delimon Directory.Exists

2019-09-10 10:33发布

问题:

I have a really strange error, with Delimon.Io library, I got an OverflowException when I call a Directory.Exists for an existing directory, ie.

Delimon.Win32.IO.Directory.Exists(@"c:\temp")

The error occours only if I issue the call in a specific service, no error if I run the same code in unit testing project.

What could be the project settings that makes this simple call fail? (Clearly calling a

System.IO.Directory.Exists("c:\\temp")

correctly returns true.