VS2015, Win10, C # WPF program.
If you click on a file that the program can “read” and select the item “Open with ...” in the context menu, the file starts to be associated with this program, but nothing happens (even the program does not start). If, after association, double-click to open the file, it opens as it should through the program.
I read that when "Open with ..." the path to the program is searched in the registry, I checked it in the registry. Why can't I open the file with this command right away?
Is there any way to debug this script?
UPD: I decided to make a conclusion in the text file of the argument that is passed to the program. The file is created and the correct path to the file being opened is written to it. So the program still runs, but not until the end.
MessageBoxat the beginning of the program’s run, while it is hanging, attach the debugger and see where it falls. - VladD