vs2005实现"修改新闻"时 未能映射路径“/”急救!

一个新闻系统,添加新闻无错,修改新闻时如果有图片则出现此错误
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.InvalidOperationException: 未能映射路径“/”。

源错误:

行 197: private string smallImage(string imagepath)
行 198: {
行 199: string path = Server.MapPath("\\");
行 200: string imagename = imagepath.Substring(imagepath.LastIndexOf("/") + 1);
行 201: try

源文件: d:\My Documents\Visual Studio 2005\WebSites\WSJsite\administer\editnews.aspx.cs 行: 199

堆栈跟踪:

[InvalidOperationException: 未能映射路径“/”。]
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +659
System.Web.VirtualPath.MapPathInternal() +29
应该这氏升让样写:
string path = Server.MapPath("/");
也可笑启以这样写歼局:
string path = Server.MapPath(Request.ApplicationPath);
路径错误
直禅做接这么些尺袭皮陵差
string path = Server.MapPath(Request.ApplicationPath);
Server.MapPath("/");