我用VS2005做的网站,VB语言,需要调用系统计算器,代码如下:
        Dim ReturnValue As Integer
        ReturnValue = Shell("Calc.EXE", 1)
        AppActivate(ReturnValue)
在VS2005中调试,是正常的,可是我把网站架到IIS上的时候,再调用计算器,一直出现:
未找到进程“{0}”。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ArgumentException: 未找到进程“{0}”。源错误: 
行 60:         Dim ReturnValue As Integer
行 61:         ReturnValue = Shell("Calc.EXE", 1)
行 62:         AppActivate(ReturnValue)
行 63:     End Sub
行 64: 
 源文件: F:\网站\index.aspx.vb    行: 62 堆栈跟踪: 
[ArgumentException: 未找到进程“{0}”。]
   Microsoft.VisualBasic.Interaction.AppActivateHelper(IntPtr hwndApp) +358
   Microsoft.VisualBasic.Interaction.AppActivate(Int32 ProcessId) +234
   users_top_Top.LinkButton1_Click(Object sender, EventArgs e) in F:\网站\index.aspx.vb:62
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +104
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +172
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5612 
请各位高手帮忙解惑...谢谢....