我是参照NPetShop写的,请遇到相同错误的大侠给以解答。谢谢!
详细错误如下:
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.TypeLoadException: Could not load type from string value 'BindGameIDInfo'.源错误: 
行 34: 
行 35:                         DomDaoManagerBuilder builder = new DomDaoManagerBuilder();
行 36:                         builder.ConfigureAndWatch("dao.config", handler);
行 37: 
行 38:                         _instance = new ServiceConfig();
 源文件: E:\WorkSpace\Asp.net\CardManagerSystem\CMS.Service\ServiceConfig.cs    行: 36 堆栈跟踪: 
[TypeLoadException: Could not load type from string value 'BindGameIDInfo'.]
   IBatisNet.Common.Utilities.TypesResolver.TypeResolver.ResolveType(String typeName) +272
   IBatisNet.Common.Utilities.TypesResolver.TypeResolver.Resolve(String typeName) +69
   IBatisNet.Common.Utilities.TypesResolver.CachedTypeResolver.Resolve(String typeName) +298
   IBatisNet.Common.Utilities.TypeUtils.ResolveType(String typeName) +66
   IBatisNet.DataMapper.Configuration.Alias.TypeAlias.Initialize() +40
   IBatisNet.DataMapper.Configuration.Serializers.TypeAliasDeSerializer.Deserialize(XmlNode node, ConfigurationScope configScope) +289
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureSqlMap() +1303
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize() +5192
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +384[ConfigurationException: 
- The error occurred while loading SqlMap.
- initialize type alias
- The error occurred in <sqlMap resource="Maps/BindGameIDInfo.xml" xmlns="http://ibatis.apache.org/dataMapper" />.  
- Check the BindGameIDInfo.]
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +483
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, NameValueCollection properties) +77
   IBatisNet.DataAccess.DaoSessionHandlers.SqlMapDaoSessionHandler.Configure(NameValueCollection properties, IDictionary resources) +798[ConfigurationException: DaoManager could not configure SqlMapDaoSessionHandler.Cause: 
- The error occurred while loading SqlMap.
- initialize type alias
- The error occurred in <sqlMap resource="Maps/BindGameIDInfo.xml" xmlns="http://ibatis.apache.org/dataMapper" />.  
- Check the BindGameIDInfo.]
   IBatisNet.DataAccess.DaoSessionHandlers.SqlMapDaoSessionHandler.Configure(NameValueCollection properties, IDictionary resources) +939
   IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.GetContexts(ConfigurationScope configurationScope) +2502
   IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.GetConfig(ConfigurationScope configurationScope) +61
   IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.BuildDaoManagers(XmlDocument document, Boolean useConfigFileWatcher) +265[ConfigurationException: 
- The error occurred while configure DaoSessionHandler.
- The error occurred in <property name="resource" value="SqlMap.config" xmlns="http://ibatis.apache.org/dataAccess" />.  
- Check the IBatisNet.DataAccess.DaoSessionHandlers.SqlMapDaoSessionHandler.]
   IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.BuildDaoManagers(XmlDocument document, Boolean useConfigFileWatcher) +338
   IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.ConfigureAndWatch(String resource, ConfigureHandler configureDelegate) +171
   CMS.Service.ServiceConfig.GetInstance() in E:\WorkSpace\Asp.net\CardManagerSystem\CMS.Service\ServiceConfig.cs:36
   CMS.Service.RegTypeInfoService..ctor() in E:\WorkSpace\Asp.net\CardManagerSystem\CMS.Service\RegTypeInfoService.cs:25
   CMS.Service.RegTypeInfoService..cctor() in E:\WorkSpace\Asp.net\CardManagerSystem\CMS.Service\RegTypeInfoService.cs:15[TypeInitializationException: “CMS.Service.RegTypeInfoService”的类型初始值设定项引发异常。]
   CMS.Service.RegTypeInfoService.GetInstance() in E:\WorkSpace\Asp.net\CardManagerSystem\CMS.Service\RegTypeInfoService.cs:36
   _Default.BindDDL() in e:\WorkSpace\Asp.net\CardManagerSystem\CMS.Web\Default.aspx.cs:28
   _Default.Page_Load(Object sender, EventArgs e) in e:\WorkSpace\Asp.net\CardManagerSystem\CMS.Web\Default.aspx.cs:19
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627