Asp.net - The type or namespace name 'App_Code' does not exist in the namespace 'xxx' (are you missing an assembly reference?)
2014-10-16 12:37
441 查看
我在 项目 下面创建一个 App_Code的文件夹,然后在其下创建自定义的类,但是当我在该项目下别的地方使用时报错:
The type or namespace name 'App_Code' does not exist in the namespace 'xxx' (are you missing an assembly reference?)
解决方案:
1,在创建的类上右键,选择 Properties,如图:
2,将 Build Action 属性设置为 Compile,如图:
即可.
The type or namespace name 'App_Code' does not exist in the namespace 'xxx' (are you missing an assembly reference?)
解决方案:
1,在创建的类上右键,选择 Properties,如图:
2,将 Build Action 属性设置为 Compile,如图:
即可.
相关文章推荐
- .net4 wpf App 使用log4net 错误:The type or namespace name 'log4net' could not be found (are you missing a using directive or an assembly reference?)
- UI' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference
- The type or namespace name 'Html' does not exist in the namespace 'System.Web.Mvc' (are you missing an assembly reference?)
- Compiler Error Message: CS0234: The type or namespace name 'BorderDetails' does not exist in the class or namespace 'Infragistics.WebUI.Shared' (are you missing an assembly reference?)
- unity3d MonoDevelop引用外部自定义dll文件报错:are you missing an assembly reference?
- The type or namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
- `UnityEditor' could not be found Are you missing a using directive or an assembly reference?
- error CS0234: The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine'. Are you missing an assembly reference?
- 关于错误 The type or namespace name `Vuforia' could not be found. Are you missing an assembly reference?
- Compiler Error Message: CS0234: The type or namespace name ''(are you missing an assembly reference?)
- 如何解决The type or namespace name 'ScriptService' could not be found (are you missing a using directive or an assembly reference?)
- 菜鸟写给菜鸟——The type or namespace name '****' could not be found (are you missing a using directive or an assembly reference
- The type or namespace name `MovieTexture' could not be found. Are you missing an assembly reference?
- could not be found (are you missing a using directive or an assembly reference?)
- The type or namespace name 'log4net' could not be found (are you missing a using directive or an assembly refere
- ASP.NET Core: You must add a reference to assembly mscorlib, version=4.0.0.0
- The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an asse
- asp.net mysql无法查询中文;You have an error in your SQL syntax; check the manual that corresponds to
- Register ASP.NET 4.0 An error has occurred: 0x8007b799 You must have administrative rights on this machine in order to ru