.
.
.
docName = System.Web.HttpContext.Current.Server.MapPath("web.config");
.
.
.
编译出错提示:
类型或命名空间名称“HttpContext”在类或命名空间“System.Web”中不存在(是否缺少程序集引用?)////////////////////////////////////////
.net2003 Version 7.1.3091
.net framework 1.1 Version 1.1.4322

解决方案 »

  1.   

    System.Web.HttpContext.Current.Server.MapPath(".")
    其他代码有问题么?
      

  2.   

    using System.Web.UI.HtmlControls 加上试试
      

  3.   

    加了提示错误如下:
    (8): 类型或命名空间名称“UI”在类或命名空间“System.Web”中不存在(是否缺少程序集引用?)
      

  4.   

    对像浏览器中,System.Web只有
    System.Web.AspNetHostingPermission
    System.Web.AspNetHostingPermissionAttribute
    System.Web.AspNetHostingPermissionLevel
    这三个
      

  5.   

    创建类库项目时,默认是没有添加System.Web的,在项目名称上右键,添加引用,.net,找到System.Web加上就可以了
      

  6.   

    已解决!thx  7707(kingfisher) (
      

  7.   

    7707 Very good! Thank you!