1.这个问题是由于使用别名,把有别名的XML放在后面导致的。解决办法:(1)把有别名的XML提前。(2)使用不同的别名
Teld.Core.Database.Service.DatabaseConfigException HResult=0x80131500 Message= - The error occurred while loading SqlMap. - loading select tag - The error occurred in <sqlMap resource="binCommon_XMLWOCommon.xml" xmlns="http://ibatis.apache.org/dataMapper" />. - Check the GetOWOStateRecordList. Source=Teld.MRP.WorkOrderManagement.Service StackTrace: 在 Teld.MRP.WorkOrderManagement.Service.OperatingWOService.GetOWOStateRecordList(String filter) 在 D:Teld_CodeMRP_EVRMainSRC90_WorkOrderManagementTeld.MRP.WorkOrderManagement.ServiceOperatingWOServiceOperatingWOService.cs 中: 第 628 行 在 Teld.MRP.WorkOrderManagement.OM_Test.OperatingWOTest.GetOWOStateRecordList() 在 D:Teld_CodeMRP_EVRMainSRC90_WorkOrderManagementTeld.MRP.WorkOrderManagement.OM_TestOperatingWOTest.cs 中: 第 276 行 内部异常 1: ConfigurationException: - The error occurred while loading SqlMap. - loading select tag - The error occurred in <sqlMap resource="binCommon_XMLWOCommon.xml" xmlns="http://ibatis.apache.org/dataMapper" />. - Check the GetOWOStateRecordList. 内部异常 2: TypeLoadException: Could not load type from string value 'WOStateChangeRecordsModel'.