首页 > Web开发 > 详细

使用IBatisNet报错

时间:2015-07-02 00:56:11      阅读:557      评论:0      收藏:0      [点我收藏+]

The error occurred while loading Providers

错误代码

未处理IBatisNet.Common.Exceptions.ConfigurationException
  HResult=-2146232832
  Message=
- The error occurred while loading Providers.
  Source=IBatisNet.DataMapper
  StackTrace:
       在 IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao)
       在 IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, Boolean useConfigFileWatcher)
       在 IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Configure(Stream resource)
       在 ConsoleApplication1.Program.Main(String[] args) 位置 e:\易建科技\test\ConsoleApplication1\ConsoleApplication1\Program.cs:行号 28
       在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       在 System.Threading.ThreadHelper.ThreadStart()
  InnerException: IBatisNet.Common.Exceptions.ConfigurationException
       HResult=-2146232832
       Message=Unable to load embedded resource from assembly "providers.config,ConsoleApplication1".
       Source=IBatisNet.Common
       StackTrace:
            在 IBatisNet.Common.Utilities.Resources.GetEmbeddedResourceAsXmlDocument(String resource)
            在 IBatisNet.Common.Utilities.Resources.GetAsXmlDocument(XmlNode node, NameValueCollection properties)
            在 IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.GetProviders()
            在 IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize()
            在 IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao)
       InnerException:

解决方法:

技术分享

技术分享

使用IBatisNet报错

原文:http://www.cnblogs.com/ilooking/p/4614832.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!