I have trouble opening a photo (with whatever Windows associated program) in my WPF app. The code:
try
{
Process.Start(@"D:\temp\demo.jpg");
}
catch (Exception ex)
{
Debug.Write(ex.ToString());
}
Produces an exception of: "Failed to convert resource into object." 100% of the time. Inner exception: null Hresult: -2146233079
I have made sure the file and an association exists Also tried both options of "StartInfo.UseShellExecute"
Any Ideas?