Has anybody tried using this version (2.102.2.20) of the Oracle ODP.NET 
provider, when  I try

I get  and exception with this error message:

 "Could not configure providers. Unable to load provider named \"oracle10.2.2\" 
not found, failed. 

  Cause: Exception has been thrown by the target of an invocation."

 

"   at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument 
document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean 
isCallFromDao)
   at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument 
document, Boolean useConfigFileWatcher)
   at 
IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(String 
resource, ConfigureHandler configureDelegate)
   at 
IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureAndWatch(ConfigureHandler
 configureDelegate)
   at IBatisNet.DataMapper.Mapper.InitMapper()
   at IBatisNet.DataMapper.Mapper.Instance()
   at iBATISTest.Form1.button1_Click(Object sender, EventArgs e) in 
C:\\Users\\togr\\Documents\\Visual Studio 
2005\\Projects\\iBATISTest\\iBATISTest\\Form1.cs:line 25
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, 
Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 
msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at 
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 
reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 
reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at iBATISTest.Program.Main() in C:\\Users\\togr\\Documents\\Visual Studio 
2005\\Projects\\iBATISTest\\iBATISTest\\Program.cs:line 17
   at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence 
assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, 
ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()"

 

My provider setup is as follows:

 

  <provider

    name="oracle10.2.2"

    description="Oracle, oracle provider 2.102.2.20"

    enabled="true"

    assemblyName="Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, 
PublicKeyToken=89b483f429c47342" 
connectionClass="Oracle.DataAccess.Client.OracleConnection"

    commandClass="Oracle.DataAccess.Client.OracleCommand"

    parameterClass="Oracle.DataAccess.Client.OracleParameter"

    parameterDbTypeClass="Oracle.DataAccess.Client.OracleDbType"

    parameterDbTypeProperty="OracleDbType"

    dataAdapterClass="Oracle.DataAccess.Client.OracleDataAdapter"

    commandBuilderClass="Oracle.DataAccess.Client.OracleCommandBuilder"

    usePositionalParameters="true"

    useParameterPrefixInSql="true"

    useParameterPrefixInParameter="true"

    parameterPrefix=":"

    useDeriveParameters="false"

    allowMARS="false"

  />

 

I'm sure ODP is installed correctly (tried in another non iBATIS project), I'm 
sure iBATIS find the assemblies

As I got past the initial error (when the version number was off):

 

{"Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.210, 
Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. 
The system cannot find the file specified.":"Oracle.DataAccess, 
Version=2.102.2.210, Culture=neutral, PublicKeyToken=89b483f429c47342"}

 

 

Reply via email to