httpcontext 类新增函数不能访问的问题

public sealed class HiContext
{
    public static HiContext Current
    {
        get
        {
            HttpContext current = HttpContext.Current;
            HiContext item = current.Items["ContextStore"] as HiContext;
            if (item == null)
            {
                if (current == null)
                {
                    throw new Exception("No HiContext exists in the Current Application. AutoCreate fails since HttpContext.Current is not accessible.");
                }
                item = new HiContext(current);
                HiContext.SaveContextToStore(item);
            }
            return item;
        }
            }
    private HiContext(HttpContext context)
    {
        this._httpContext = context;
        this.Initialize(new NameValueCollection(context.Request.QueryString), context.Request.Url, context.Request.RawUrl, this.GetSiteUrl());
    }
    public string a(int i)
    {......}
        public string b(int i)//新增
            {..........}

     }

    在另外一个类中调用 
             string a1=HiContext.Current.a(4); 正常
            而调用新增的b
              string b1=HiContext.Current.b(4); 错误

编译提示错误:
“xxxxx.xxxx.xxxx.HiContext”不包含“b”的定义,并且找不到可接受类型为“xxxxx.xxxx.xxxx.HiContext”的第一个参数的扩展方法“b”(是否缺少 using 指令或程序集引用?)

看下你的命名空间下是不是有2个HiContext,你修改的和你调用的是一个HiContext类么?
还可能是版本不同步重新编译下整个项目看看。

只有一个HiContext,而且我也重新编译过整个项目还是不行。