When I try to run my application it throws an exception with information:
Code: Select all
System.TypeInitializationException: The type initializer for 'Ranorex.Mouse' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'Ranorex.Core.WinApi, Version=2.1.4.6779, Culture=neutral, PublicKeyToken=b798506b574ebc9a' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
File name: 'Ranorex.Core.WinApi, Version=2.1.4.6779, Culture=neutral, PublicKeyToken=b798506b574ebc9a' ---> System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
at Ranorex.Mouse..cctor()
Ranorex.Core.dll is apparently loaded without problems.
I must be doing something wrong but I cannot figure out what it is exactly.
Any hints?