问题
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
.
来源:https://stackoverflow.com/questions/33893164/overflowexception-with-delimon-directory-exists