I am trying to create a Bitmap using:
bitmap = new Bitmap(@"Movies\View\Images\missing_person.bmp");
However, I am receiving a System.ArgumentException error.
The file I'm calling the above code from is located in:
MyProj\DisplaySideBarCommand.cs
The images are in:
MyProj\Movies\View\Images\missing_person.bmp
I also tried using:
bitmap = new Bitmap(@"..\Movies\View\Images\missing_person.bmp");
but received the same error.
ArgumentExceptionseems strange. TheBitmapconstructor should throw aFileNotFoundExceptionif the file can't be found.Path.GetFullPath(@"..\Movies\View\Images\missing_person.bmp"). That should show you what path it is actually trying to access.