【问题标题】:Access is denied when trying to open an exe application from a website尝试从网站打开 exe 应用程序时访问被拒绝
【发布时间】:2013-09-12 12:20:12
【问题描述】:

在我的网站中,我尝试通过单击按钮打开一个 Windows 应用程序 (.exe)。但它显示“访问被拒绝”。

堆栈跟踪:

[Win32Exception (0x80004005): Access is denied]
   System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) +614
   System.Diagnostics.Process.Start() +56
   ghs.btnTry_Click(Object sender, EventArgs e) in c:\inetpub\vhosts\ddrivestudio.com\httpdocs\tanishq\ghs.aspx.cs:19
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

按钮点击事件:

    Process p = new Process();
    p.StartInfo.FileName = Request.MapPath("~/App/App1.exe");
    p.Start();

【问题讨论】:

  • 你能发布你的代码(button_click)吗?

标签: asp.net exe


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-12-22
  • 2012-07-26
  • 1970-01-01
相关资源
最近更新 更多