日期:2014-05-17  浏览次数:20476 次

自定控件遇到的错误 MyCustomGrid”同时存在于
编译器错误消息: CS0433: 类型“KPIManger.App_Code.MyCustomGrid”同时存在于“c:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfcb0a\App_Code.togbrvnf.dll”和“c:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfcb0a\assembly\dl3\9632d3ad\a976d2bc_c622ce01\KPIManger.DLL”中

源错误:

 

行 345:        
行 346:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 347:        private global::KPIManger.App_Code.MyCustomGrid @__BuildControlTeacherGrid() {
行 348:            global::KPIManger.App_Code.MyCustomGrid @__ctrl;
行 349:            
 
自定义了一个扩展的控件,使用时遇到的错误!!




显示详细的编译器输出:


C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0> "C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfcb0a\assembly\dl3\655f847d\b72ed9bb_c622ce01\Model.DLL" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfcb0a\assembly\dl3\0120e860\40910fbc_c622ce01\Util.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfcb0a\assembly\dl3\30fb2a20\4d0b75bc_c622ce01\BLL.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfcb0a\App_Code.togbrvnf.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfcb0a\assembly\dl3\9632d3ad\a976d2bc_c622ce01\KPIManger.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.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:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfcb0a\assembly\dl3\3050223e\f0af42bc_c622ce01\DAL.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Users\admin\AppData\Local\Temp\Temporary ASP.NET Files\root\cf44111c\7abfc