There is a Windows Forms that has worked on the client’s machine for a couple of years. Then the Imaging application (Drevnyuchaya image viewer) was installed on that machine and the .tif format files were associated with it. Now, when the application processes .tif files, an error occurs.
The specified file is not associated with any application to perform this operation.
The application code is:
ProcessStartInfo info = new ProcessStartInfo(); info.Arguments = "\"Universal Document Converter\""; info.Verb = "Printto"; info.FileName = file_name; info.UseShellExecute = true; info.WindowStyle = ProcessWindowStyle.Hidden; Process p = new Process(); p.StartInfo = info; p.Start(); //На этой строчке вылетает ошибка p.WaitForExit(); p.Close(); p.Dispose(); I checked in the Панели управления -> Программы по умолчанию -> Сопоставление типов файлов или протоколов конкретным программам , there were no .tif and .tiff files at all. I added them to that list and associated them with the standard Windows viewer. But the error occurred as it appears. Uninstalling the Imaging program did not help either. What else can you do?
PS I can not roll back the system, unfortunately.
file_namevariable, do you think the program should be indicated to run, is it installed on the PC? - sp7HKEY_CLASSES_ROOT\.tifandHKEY_CLASSES_ROOT\.tifffrom the test machine (on which the application runs) to the problematic machine. Did not help. I do not know other keys, tell me? - user200141file_namelies the file being opened, in this case the imagetif. But since it is worth launching from under the shellinfo.UseShellExecute = true;, the picture should open in the associated application by default. But instead, an error pops up. - user200141