【问题标题】:“No Application is associated with specified file for this operation”“没有应用程序与此操作的指定文件关联”
【发布时间】:2014-10-01 11:33:09
【问题描述】:

我正在使用 Process 从我的窗口应用程序(.net 3.5 框架,C#)打开一个网站(比如说 www.google.com)。启动方法。它在所有机器上工作正常,但在单台机器上显示错误“No Application is associated with specified file for this operation”。

【问题讨论】:

  • 那台机器上会发生什么?网站不显示?还是孔应用程序不起作用?检查该机器上是否设置了标准浏览器。
  • 你是怎么解决这个问题的?

标签: c# asp.net .net windows browser


【解决方案1】:
Process process = new Process();

process.StartInfo = new ProcessStartInfo("https://www.google.lk", string.Empty);
process.StartInfo.Verb = string.Empty;

process.Start();

上面的代码完全满足你的要求。

【讨论】:

  • 没有一行评论来解释这是做什么的?
猜你喜欢
  • 1970-01-01
  • 2014-01-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-02-07
  • 1970-01-01
  • 1970-01-01
  • 2013-11-06
相关资源
最近更新 更多