下面是我的代码
string strAttachName = File_Piture.PostedFile.FileName.Substring(File_Piture.PostedFile.FileName.LastIndexOf("."));
string Path = Server.MapPath("../Image//") + System.Guid.NewGuid() + strAttachName;
File_Piture.PostedFile.SaveAs(Path);
Image.ImageUrl = Path.Replace(Server.MapPath(@""), "http://" + Request.Url.Host + "/Admin/Image/").Replace("\\", "/");
在本地iis中可以正常显示上传图片,但是在站点中却不可以,各位请帮帮忙