I am using .Net Core 3.1 Framework in WPF Application. I have a button event in which I am trying to redirect to Instagram url on click. but its giving me the following erro
You have to change you code per follows
var targetURL = "https://www.instagram.com/xyz/";
var psi = new ProcessStartInfo
{
FileName = targetURL,
UseShellExecute = true
};
Process.Start(psi);
UseShellExecute property is set to false
in .NET Core by default, to open https://
link you have to set it to true
, because it isn't an executable file