no way, are you sure you are not hardcoding the path? are you redirecting the url to "http://yourmachine/photo/.."?

解决方案 »

  1.   

    Server.MapPath 本来就是"本地的实际地址"what u want ?
      

  2.   

    应该是你哪里弄错了,用System.Web.HttpContext.Current.Request.PhysicalApplicationPath + "\\PHOTO\\FILE",试试。
      

  3.   

    会不会是已经编译好后的BIN里的文件上传过去就已经吧Server.MapPath已认为是原先的地址了?从他的报错信息看就像这样的问题!!我非常不解~~~