捕捉到 System.ComponentModel.Win32Exception
Message="拒绝访问。"
Source="System"
ErrorCode=-2147467259
NativeErrorCode=5
StackTrace:
在 System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
在 System.Diagnostics.Process.Start()
在 Yqun.Client.StartAgent.LoginDialog.Upgrade()
InnerException:
Process p = new Process();
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = "ApplicationUpdate.exe";
info.Arguments = "\"" + ResponseContent+ "\"";
info.WorkingDirectory = Application.StartupPath;
p.StartInfo = info;
p.Start();
其中:ResponseContent为XML格式的字符串。但老报上面的那个错。请高手指教啊。谢谢。
Message="拒绝访问。"
Source="System"
ErrorCode=-2147467259
NativeErrorCode=5
StackTrace:
在 System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
在 System.Diagnostics.Process.Start()
在 Yqun.Client.StartAgent.LoginDialog.Upgrade()
InnerException:
Process p = new Process();
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = "ApplicationUpdate.exe";
info.Arguments = "\"" + ResponseContent+ "\"";
info.WorkingDirectory = Application.StartupPath;
p.StartInfo = info;
p.Start();
其中:ResponseContent为XML格式的字符串。但老报上面的那个错。请高手指教啊。谢谢。
解决方案 »
- IEnumerator和IEnumerable的区别???
- js为什么不能获得到下拉框选中的值,我以前可以,套入了母板就不可以了
- 求一正则表达式,判断密码必须是数字,字母大写,字母小写,特殊字符,这四种的必须包含三个
- winform 关闭窗体 刷新其他窗体
- 怎样实现DropDownlist选择查询项目,TextBox输入关键字进行模糊查询,用三层怎么实现
- try catch 结构为什么不能捕获异常?
- asp.net动态传值连接
- 如何添加Com.Objsys.Asn1.Runtime
- .net2003是否支持本地ACCESS数据库的读写?如读PDA上的*.cdb?
- 在beta版里有一个MailMessage类,正式版里在哪个名称空间里?
- 方法即成
- C# 属性与变量的区的区别?
Process p = new Process(); ProcessStartInfo info = new ProcessStartInfo();
info.StartInfo.FileName = "cmd.exe";
info.StartInfo.Arguments = "/c ApplicationUpdate.exe \"" + ResponseContent+ "\""; info.WorkingDirectory = Application.StartupPath;
p.StartInfo = info;
p.Start();
Process p = new Process(); ProcessStartInfo info = new ProcessStartInfo();
info.StartInfo.FileName = "cmd.exe";
info.StartInfo.Arguments = "/c ApplicationUpdate.exe \"" + ResponseContent+ "\""; info.WorkingDirectory = Application.StartupPath;
p.StartInfo = info;
p.Start();