错误,有人可以帮助我吗? [英] Error, can anyone help me?

查看:52
本文介绍了错误,有人可以帮助我吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

名称"HttpContext"在当前上下文中不存在.


 使用系统;
使用 System.Collections.Generic;
使用 System.IO;
使用 System.Linq;
使用 Lucene.Net.Analysis.Standard;
使用 Lucene.Net.Documents;
使用 Lucene.Net.Index;
使用 Lucene.Net.QueryParsers;
使用 Lucene.Net.Search;
使用 Lucene.Net.Store;
使用版本= Lucene.Net.Util.Version;
使用 System.Web; 



解决方案

尽管您在using语句中包含了System.Web,但您实际上在项目中引用了System.Web dll吗?

The name ''HttpContext'' does not exist in the current context.


using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Lucene.Net.Analysis.Standard;
using Lucene.Net.Documents;
using Lucene.Net.Index;
using Lucene.Net.QueryParsers;
using Lucene.Net.Search;
using Lucene.Net.Store;
using Version = Lucene.Net.Util.Version;
using System.Web;



I had these already.

解决方案

Although you have included System.Web in your using statements, have you actually referenced the System.Web dll in your project ?


这篇关于错误,有人可以帮助我吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆