按如下方法:
System.Diagnostics.ProcessStartInfo  Info  =  new  System.Diagnostics.ProcessStartInfo();
Info.FileName  =  "excelVB.exe";
//设置外部程序的启动参数(命令行参数)为test.txt
//设置外部程序工作目录为  C:\
Info.WorkingDirectory  =  this.MapPath("")+"\\" ;
//声明一个程序类
System.Diagnostics.Process  Proc ;
try
{
//
//启动外部程序
//
Proc  =  System.Diagnostics.Process.Start(Info);  //启动子进程
}
catch
{
this.Labelerror.Text="系统找不到指定的程序文件!";
return;
}
提示拒绝访问,用户没有权限,我按照帮助里的提示在Debugger Users组里加了ASPNET用户也不行.

解决方案 »

  1.   

    用户权限加 everyone 就可以!
    是不是win2003 ,哈哈!
      

  2.   

    帮助里面建议不能把everyone加进去,我用是win2000pro,哪位再支招。
      

  3.   

    把aspnet加到administrators组里去
    或在web.config里用摸拟帐号<Identity impersonate="true" User="administrator" Pwd="xxx"/>
      

  4.   

    呵呵 肯定 拒绝阿 除了everyone 其他好像 不行 你把这个exe文件放哪儿了? 最好放在一个专门建立的文件夹 用来 存放下载文件的 这个文件权限可以给足啊