找不到类型或命名空间名称'EventArgs'(你是否错过了使用di [英] The type or namespace name 'EventArgs' could not be found (are you missing a using di

查看:114
本文介绍了找不到类型或命名空间名称'EventArgs'(你是否错过了使用di的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们我希望somone可以帮助我在网上查看bin但我无法解决它这里是我得到错误的代码

Hey guys i Hope somone can help i have bin looking on the internet but i cant solve it here is the code where i get the error

展开 | 选择 | Wrap | 行号

推荐答案

确保您拥有系统导入的命名空间如下所示。


C#:

Make sure you have "System" namespace imported as shown here.

C#:

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


Nop isent工作,当我添加1我在我的App_Web上得到一些错误
Nop isent working when i add that 1 i get some errors on my App_Web


然后,如果你没有错过使用指令,那么另一种可能性是系统组件还没有由于某种原因引用。我自己并没有做很多ASP.NET,但它似乎并没有被自动引用。

在解决方案资源管理器中右键单击您的项目并选择添加参考" ;.在.NET选项卡下找到系统在列表中,突出显示并单击确定。

然后尝试重建项目。
Then if you aren''t missing a using directive then the other possibility is that the System assembly has not been referenced for some reason. I don''t do a lot of ASP.NET myself but it seems strange that it wouldn''t have been referenced automatically.
Right-click your project in the solution explorer and select "Add Reference". Under the .NET tab find "System" in the list, highlight and click ok.
Then attempt to rebuild your project.


这篇关于找不到类型或命名空间名称'EventArgs'(你是否错过了使用di的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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