Activation error occured while trying to get instance of type Database key

配置默认连接 <dataConfiguration defaultDatabase="Database Connection String"> 
否则就必须传递参数进去  Database db = DatabaseFactory.CreateDatabase(strConString);

<add name="Database Connection String" connectionString="Data Source=DEVRAC;Persist Security Info=True;User ID=USER;Password=PWD"
            providerName="Oracle.DataAccess.Client" />

<add name="Database Connection String" connectionString="Data Source=DEVRAC;Persist Security Info=True;User ID=NCS;Password=NCS"
            providerName="System.Data.OracleClient" />

我用的微软的Oracle类库 不是Oracle提供的 因此必须用下边的连接串。我遇到的问题是这个样子。

其他的地方看看 data common serviceLocation  引用到项目试试

时间: 2024-09-30 16:51:48

Activation error occured while trying to get instance of type Database key的相关文章

WPF Prism Request Navigate activation error

其他测试项目时没有问题,但是有些项目有时候导航一直报错误! Referring the StockTraderRI, I created a popup region in my shell infBehaviors:RegionPopupBehaviors.CreatePopupRegionWithName="{x:Static inf:RegionNames.SecondaryRegion}" In the module I am trying to load the view t

Dynamics CRM 流程错误 simultaneous connections limit reached for organization error occured

有时候流程记录报的错误显示"simultaneous connections limit reached for organization error occured! " 重启异步服务或许有用,但是什么原因引起的呢? 原来在MSCRM_Config数据库的[DeploymentProperties]表里面有两个相关设置,限制同时连接数. SharedDBConnectionPoolPerOrgLimit' 和 'AsyncMaximumThreadsPerCPU' 它们的默认值如下图

kettle入门笔记(二) 之 kettle报的坑爹错误:Error occured while trying to connect to the database

1 引言 在用kettle开发时常会出现 Error occured while trying to connect to the database 错误,但是仔细观察日志,引起这个错误的原因不尽相同.这个错误看起来很简单,但是有时候越简单的错误越没有耐心改,尤其是忙的时候,不小心填错了某个参数导致这个错误但是自己感觉没问题却跑不成功,这是最烦人的.这时候需要淡定.不妨上网查查,错误也许就可以愉快的解决了.下面给出这错误的更细节错误的不同发生情况. 2 示例 有个很简单的ktr脚本(当前kett

applicationContext.xml无错有红叉,Error occured processing XML &#39;Provider org.apache.xerces.parsers.解决方案

applicationContext.xml无错有红叉,网上讲的取消xml验证的方法没用... 甚至我的myeclipse10连windows-->perferences-->myeclipse-->validation 下的Build和Manual都找不到.. 虽然挂红叉能运行,但有个严重的问题是Hibernate逆向生成model和dao层的时候如果使用spirng来管理,则SessionFactoryId很可能是空的,就不能继续往下生成. 所幸在论坛瞥到一帖子说是因为插件冲突——s

Error occured processing XML &amp;#39;Cannot find class [springmvc.extention.BeanArgumentResolver]&amp;#39;.

<Description Resource Path Location Type Error occured processing XML 'Cannot find class [springmvc.extention.BeanArgumentResolver]'. See Error Log for more details applicationContext.xml maven在管理项目时会出现各种比較奇葩的错误,对一些技术性的东西绝对不能不求甚解,比方上面这个错误,事实上是由jar包引起

MyEclipse+Tomcat 启动时出现A configuration error occured during startup错误的解决方法

MyEclipse+Tomcat 启动时出现A configuration error occured during startup错误的解决方法 分类: javaweb2013-06-03 14:43 3706人阅读 评论(0) 收藏 举报 当单击MyEclipse中的Debug server 启动服务器的时候,出现了这么个提示: Eclipse菜单,Window->Preference…,打开Preference对话框,找到菜单树中MyEclipse-> Application Serve

Error occured processing XML &#39;Cannot find class [springmvc.extention.BeanArgumentResolver]&#39;.

<Description Resource Path Location Type Error occured processing XML 'Cannot find class [springmvc.extention.BeanArgumentResolver]'. See Error Log for more details applicationContext.xml maven在管理项目时会出现各种比较奇葩的错误,对一些技术性的东西绝对不能不求甚解,比如上面这个错误,其实是由jar包引起的

an error occured during the file system check

打开虚拟机的时候,报错: 出错原因: 我之前修改了/etc/fstab文件, 原先/etc/fstab文件中有一行是这样的: LABEL=/i01              /u01                    ext3    defaults        1 2 而我,却将LABEL=/i01中的i01改成了/u01. 导致系统重启的时候无法识别LABEL=/u01. 解决办法:先输入root密码登陆,然后修改vi /etc/fstab文件,将/u01改成/i01. 输入exit重

Error: Error occured while starting App. Original error: Activity used to start app doesn&#39;t exist or cannot be launched! Make sure it exists and is a launchable activity

Error: Error occured while starting App. Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity 查看activity是否填写正确: adb shell dumpsys activity activities >C:\Users\Administrator\