我在服务器A的IIS设置了一个虚拟目录(download),虚拟目录实际指向的路径是另一台服务器B,我的asp.net程序在A中。现在我想在download虚拟目录下用asp.net程序子目录,可是创建一直未成功。请问有何解决办法?谢谢!我的代码是这样写的
string folderPath = "../download/"+txbSoftTypeName.Text.Trim();
folderPath = Server.MapPath(folderPath);
Directory.CreateDirectory(folderPath);

解决方案 »

  1.   

    不如 不要用server.mappath方法 直接用 ../ 点到那个目录
      

  2.   

    应该是没权限,iis用户的权限很少
      

  3.   

    顶一下,有解决办法吗?
    我把download文件设置为共享,还是没办法!
      

  4.   

    to hanlichou() ( ) 
    :使用映射硬盘,我试了一下不行
      

  5.   

    use impersonation, but beware of the double hop issueHow to implement impersonation in an ASP.NET application
    http://support.microsoft.com/?id=306158Concerning the credentials double hop issue 
    http://blogs.msdn.com/nunos/archive/2004/03/12/88468.aspxHow to configure an ASP.NET application for a delegation scenario
    http://support.microsoft.com/default.aspx?scid=kb;en-us;810572
      

  6.   

    考虑将两台服务器做成服务器集群
    需要Windows 2000 Advanced Server
    具体怎么做,Google上搜一下,很多的