首页上一页 1 下一页尾页 1 条记录 1/1页
找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?)????
发表在ASP.NET图书答疑
2011-06-17
是否精华
是
否
版块置顶:
是
否
编译器错误消息: CS0246: 找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?)
源错误:
行 92: /// <param name="curNod"></param>
行 93: /// <param name="menuList"></param>
行 94: private void BuildTreeNode(MenuInfo menu, TreeNode nod, List<MenuInfo> menuList)
行 95: {
行 96: List<MenuInfo> childMenuList = menuList.Where(itm => itm.ParentNode == menu.MenuCode).ToList();
源文件: f:\HTUmbrella\LXMasterPage.master.cs 行: 94
显示详细的编译器输出:
f:\软件工具箱\Common7\IDE> "C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions.Design\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.Design.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.Linq\3.5.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Code.sjuca5vl.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\assembly\dl3\9d8f6697\00cde950_2a23cc01\AjaxControlToolkit.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\ugbck4x8.res" /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.7.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.6.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.5.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.4.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.3.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.10.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.9.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.8.cs"
适用于 Microsoft(R) .NET Framework 3.5 版的 Microsoft(R) Visual C# 2008 编译器 3.5.21022.8
版
版权所有 (C) Microsoft Corporation。保留所有权利。
f:\HTUmbrella\LXMasterPage.master.cs(94,32): error CS0246: 找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?)
f:\HTUmbrella\LXMasterPage.master.cs(94,66): error CS0246: 找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?)
f:\HTUmbrella\LXMasterPage.master.cs(94,61): error CS0246: 找不到类型或命名空间名称“List”(是否缺少 using 指令或程序集引用?)
f:\HTUmbrella\LXMasterPage.master.cs(110,34): error CS0246: 找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?)
找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?) 请问高手们 如何解决 ??? 对于“MenuInfo”我通过动软.NET 对该数据库的表进行了所有类代码和相关代码的生成,却仍然出现上述问题???请教该如何解决?
源错误:
行 92: /// <param name="curNod"></param>
行 93: /// <param name="menuList"></param>
行 94: private void BuildTreeNode(MenuInfo menu, TreeNode nod, List<MenuInfo> menuList)
行 95: {
行 96: List<MenuInfo> childMenuList = menuList.Where(itm => itm.ParentNode == menu.MenuCode).ToList();
源文件: f:\HTUmbrella\LXMasterPage.master.cs 行: 94
显示详细的编译器输出:
f:\软件工具箱\Common7\IDE> "C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions.Design\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.Design.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.Linq\3.5.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Code.sjuca5vl.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\assembly\dl3\9d8f6697\00cde950_2a23cc01\AjaxControlToolkit.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\ugbck4x8.res" /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.7.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.6.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.5.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.4.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.3.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.10.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.9.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\htumbrella\0a63b80a\416f5b1a\App_Web_ugbck4x8.8.cs"
适用于 Microsoft(R) .NET Framework 3.5 版的 Microsoft(R) Visual C# 2008 编译器 3.5.21022.8
版
版权所有 (C) Microsoft Corporation。保留所有权利。
f:\HTUmbrella\LXMasterPage.master.cs(94,32): error CS0246: 找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?)
f:\HTUmbrella\LXMasterPage.master.cs(94,66): error CS0246: 找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?)
f:\HTUmbrella\LXMasterPage.master.cs(94,61): error CS0246: 找不到类型或命名空间名称“List”(是否缺少 using 指令或程序集引用?)
f:\HTUmbrella\LXMasterPage.master.cs(110,34): error CS0246: 找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?)
找不到类型或命名空间名称“MenuInfo”(是否缺少 using 指令或程序集引用?) 请问高手们 如何解决 ??? 对于“MenuInfo”我通过动软.NET 对该数据库的表进行了所有类代码和相关代码的生成,却仍然出现上述问题???请教该如何解决?