I have a text file where I write some errors. If the string file path is written in absolute method, string filePath = @"E:\server\publish\Exceptions.txt"; it works as expected. But if I use a relative path, the file isn't written. The way I use relative path: string filePath = @"../../Exceptions.txt";. What I'm doing wrong?