要从.NET应用程序打开URL,许多站点(包括StackOverflow)都引用了这个示例:
Process.Start("http://www.google.com/");
Run Code Online (Sandbox Code Playgroud)
在Windows 8上,如果Internet Explorer是默认浏览器,则此方法有效.但是,如果Google Chrome是默认设置,则会失败并显示:
Unhandled Exception: System.ComponentModel.Win32Exception: Class not registered
Run Code Online (Sandbox Code Playgroud)
这是否表明此方法不再是在Windows上打开URL的正确方法?有哪些替代品?直接启动Internet Explorer更安全吗?