http://www.xxx.com/13582235/是可以的,建立虚拟目录用下面的方法
protected void CrearteVirPath(string webName,string webPath)
{
if(webname=="")
return;
try
{
DirectoryEntry dirRoot0 = new DirectoryEntry("IIS://localhost/w3svc/1/root");
DirectoryEntry newVirDir0 = dirRoot0.Children.Find(webName, "IIsWebVirtualDir");
dirRoot0.Children.Remove(newVirDir0);
dirRoot0.CommitChanges();
}
catch
{}
DirectoryEntry dirRoot = new DirectoryEntry("IIS://localhost/w3svc/1/root");
DirectoryEntry newVirDir = dirRoot.Children.Add(webName, "IIsWebVirtualDir");
newVirDir.Invoke("AppCreate", true);
newVirDir.Properties["Path"][0] =webPath;
newVirDir.CommitChanges();
}

解决方案 »

  1.   

    找一本ASP.net书来,里面有
      

  2.   

    nstorm(网の风)这个有权限问题,只有管理组用户才可以执行以上代码,要求强制window认证。
      

  3.   

    把你的匿名帐号windows2000,xp为aspnet,win2003为NetService加倒管理员组
      

  4.   

    把你的匿名帐号windows2000,xp为aspnet,win2003为NetService加倒管理员组==================================================这个太危险了。
      

  5.   

    http://community.csdn.net/Expert/topic/3518/3518470.xml?temp=.5846826看看这一贴能不能帮你。