Question

3
Replies
225
Views
MarkS296 Member since 2017 1 post
Raytheon Company
Posted: October 20, 2017
Last activity: August 23, 2018
Closed

OpenSpan - Error Creating WindowsAdapter (BadImageFormatException)

I'm new to Pega Robotic Studio. I installed Visual Studio 2015 Enterprise and the OpenSpan plugin. I already had Visual Studio 2012 Ultimate installed for unrelated projects written in C++ native code (not .NET). I'm having problems with the first exercise in the Pega Robotic Automation Architect Essentials online class. When I add and attempt to edit a WindowsAdapter, I get this error message:

Error creating 'CRM' component of OpenSpan.Adapters.Windows.WindowsAdapter type

I have tried unsuccessfully to resolve this issue by:

  • Reinstalling both VS 2015 and the OpenSpan plugin.
  • Opening a successfully completed solution sent to me by a co-worker
  • Reviewing the forum post OpenSpan - Not able to add windows application
    • thomz's recommendation to delete %AppData%\OpenSpan\*.xml did not help
      • The regenerated XML files were nearly identical to the deleted ones.

I found this exception in my log files (see attached) interesting:

2) Exception Information
*********************************************
Exception Type: System.BadImageFormatException
Message: "Invalid access to memory location. (Exception from HRESULT: 0x800703E6)"
FileName: NULL
FusionLog: NULL
Data: IDictionary (System.Collections.ListDictionaryInternal) with 0 items
TargetSite: Void ThrowExceptionForHRInternal(Int32, IntPtr)
HelpLink: NULL
Source: "mscorlib"
HResult: -2147023898

StackTrace Information
*********************************************
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at OpenSpan.Interop.ScoutInterop.LoadNativeLibrary(String searchPath, String moduleName, UnmanagedLibrary& unmanagedLibrary)
   at OpenSpan.Interop.ScoutInterop.LoadScoutLibrary(String searchPath)
   at OpenSpan.Interop.ScoutInterop.Initialize(ScoutInitialization flags, String searchPath)
   at OpenSpan.Adapters.Windows.WindowsAdapterBase.set_Site(ISite value)
   at System.ComponentModel.Container.Add(IComponent component, String name)
   at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
   at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
   at OpenSpan.Design.ComponentCreator.CreateComponent(Type componentClass, String name)
   at OpenSpan.Serialization.Serializer.ReadCreateInstance(XPathNavigator navigator, Boolean isContent, IComponentCreator componentCreator, String externalName, Boolean missingTypeError, SerializerReadData data, Type& type, Object& instance)
   at OpenSpan.Serialization.Serializer.ReadObject(XPathNavigator navigator, Boolean advanceCursor, Boolean isContent, IComponentCreator componentCreator, ComponentInfo componentInfo, String externalName, Boolean missingTypeError, SerializerReadData data)
   at OpenSpan.Serialization.Serializer.Deserialize(XPathDocument document, IComponentCreator componentCreator, String externalName, SerializerReadData data, String logCategory, String logMessage)
   at OpenSpan.Serialization.Serializer.Deserialize(XPathDocument[] documents, IComponentCreator componentCreator, IServiceProvider serviceProvider, String externalName, ArrayList errors, String logCategory, String logMessage)

Does this BadImageFormatException suggest that the plugin is loading a DLL in the wrong format (32 vs 64-bit)?

Thank you for any help you can offer -

|+| M a r k |+|

Mark Stallard

***Updated by moderator: Lochan to remove proprietary information***

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn