Exception when attempting to load Oracle.DataAccess ref
Posted: Wed Nov 28, 2012 6:07 pm
I recently re-installed the Oracle Client in order to be able to access our SUT database for manipulation/validation during testing. After this install Ranorex now throws the following exception when it tries to load the library if I try to include it.
I have loaded the project in VS2010 and SharpDevelop 4.2 and it works fine, so I know it isn't the assembly itself.
I tried copying the version of the Cecil dll that SD 4.2 uses into the Ranorex dir and it didn't change anything.
Oracle Client version is 11.0.2 (most current). Did a custom (full) install of the client software.
I have loaded the project in VS2010 and SharpDevelop 4.2 and it works fine, so I know it isn't the assembly itself.
I tried copying the version of the Cecil dll that SD 4.2 uses into the Ranorex dir and it didn't change anything.
Oracle Client version is 11.0.2 (most current). Did a custom (full) install of the client software.
Code: Select all
Error loading code-completion information for Oracle.DataAccess from C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Oracle.DataAccess\4.112.3.0__89b483f429c47342\Oracle.DataAccess.dll:
Could not find assembly file.
Error loading code-completion information for Oracle.DataAccess from C:\Windows\assembly\GAC_32\Oracle.DataAccess\2.112.1.0__89b483f429c47342\Oracle.DataAccess.dll:
Error loading assembly:
System.ArgumentException: Destination array is not long enough to copy all the items in the collection. Check array index and length.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
at ICSharpCode.SharpDevelop.Dom.CecilReader.AddAttributes(IProjectContent pc, IEntity member, IList`1 list, ICustomAttributeProvider attributeProvider)
at ICSharpCode.SharpDevelop.Dom.CecilReader.CecilClass.AddProperty(String defaultMemberName, PropertyDefinition property)
at ICSharpCode.SharpDevelop.Dom.CecilReader.CecilClass.InitMembers(TypeDefinition type)
at ICSharpCode.SharpDevelop.Dom.CecilReader.CecilClass..ctor(ICompilationUnit compilationUnit, IClass declaringType, TypeDefinition td, String fullName)
at ICSharpCode.SharpDevelop.Dom.CecilReader.CecilProjectContent.AddTypes(Collection`1 types)
at ICSharpCode.SharpDevelop.Dom.CecilReader.CecilProjectContent..ctor(String fullName, String fileName, DomAssemblyName[] referencedAssemblies, AssemblyDefinition assembly, ProjectContentRegistry registry)
at ICSharpCode.SharpDevelop.Dom.CecilReader.LoadAssembly(String fileName, ProjectContentRegistry registry)
at ICSharpCode.SharpDevelop.Dom.ProjectContentRegistry.LoadProjectContent(String itemInclude, String itemFileName)
at ICSharpCode.SharpDevelop.Dom.ProjectContentRegistry.GetProjectContentForReference(String itemInclude, String itemFileName)