0

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.

4
  • Shameless self-plug: I've written a similar library for dealing with long paths, maybe you want to give it a try, to see whether it brings the same error. Commented Nov 24, 2015 at 12:06
  • 1
    I'll have a look at it. The problem is that I used delimon lots of time in the past without any problem, and I got this error only on that specific project. I do not know why it happens. Commented Nov 24, 2015 at 13:06
  • 1
    Sounds like a specific issue with that library. Probably best to contact the author. Commented Nov 24, 2015 at 14:59
  • Actually there are comments in TechNet page by people having the very same problem and no answer. I've substituted the library with very little effort with this library (github.com/peteraritchie/LongPath) and it seems to work well until now. Commented Nov 25, 2015 at 9:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.