Instrumentation wizard error (android)

Ranorex Spy, Recorder, and Studio.
cyrius
Posts: 1
Joined: Thu Sep 26, 2013 8:06 am

Instrumentation wizard error (android)

Post by cyrius » Thu Sep 26, 2013 8:18 am

I am trying to record a test on an android device. The device is well discovered (ranorex services started). When I try to deploy an apk, the instrumentation wizard pops up a new device window (ignoring the connected one) and the following error is diplayed :

Code: Select all

System.InvalidOperationException: Impossible de générer une classe temporaire (result=1).
error CS0016: Impossible d'écrire dans le fichier de sortie 'c:\Users\[user]\AppData\Local\Temp\90kwlbql.dll' -- 'Could not execute CVTRES.EXE.'
 
---STACKTRACE---
System.InvalidOperationException: Impossible de générer une classe temporaire (result=1).
error CS0016: Impossible d'écrire dans le fichier de sortie 'c:\Users\[user]\AppData\Local\Temp\90kwlbql.dll' -- 'Could not execute CVTRES.EXE.'
 
  System.Xml.Serialization.Compiler.Compile(Assembly parent,String ns,XmlSerializerCompilerParameters xmlParameters,Evidence evidence)+0x224
  System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings,Type[] types,String defaultNamespace,Evidence evidence,XmlSerializerCompilerParameters parameters,Assembly assembly,Hashtable assemblies)+0x4be
  System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings,Type[] types,String defaultNamespace,String location,Evidence evidence)+0x6
  System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping,Type type,String defaultNamespace)+0x19
  System.Xml.Serialization.XmlSerializer..ctor(Type type,String defaultNamespace)+0x8d
  System.Xml.Serialization.XmlSerializer..ctor(Type type)+0x0
  Ranorex.Plugin.Mobile.Utils.StringXmlSerializer.Serialize(T obj)+0x0
  Ranorex.Plugin.Mobile.Controls.StoredDevices.Save(List`1 infos)+0x0
  Ranorex.Plugin.Mobile.Controls.ManageDevices.Save()+0x0
  Ranorex.Plugin.Mobile.Controls.ManageMobileDevicesForm.onStateChanged(Boolean dirty)+0x0
  Ranorex.Plugin.Mobile.Controls.ManageDevices.FireStateChanged(Boolean dirty)+0x0
  Ranorex.Plugin.Mobile.Controls.ManageDevices.buttonAdd_Click(Object sender,EventArgs e)+0x3d
  Ranorex.Plugin.Mobile.Controls.ManageDevices.lauchAddDeviceScreenTimer_Tick(Object sender,EventArgs e)+0x2b
  System.Windows.Forms.Timer.OnTick(EventArgs e)+0x8
  System.Windows.Forms.Timer+TimerNativeWindow.WndProc(Message& m)+0x20
  System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)+0x25
I checked write permission on c:\Users\[user]\AppData\Local\Temp folder.
I have reinstalled .net 4 framework and ranorex studio (4.1) , get the same issue

Any idea how to fix this problem ?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11720
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Instrumentation wizard error (android)

Post by Support Team » Fri Sep 27, 2013 2:46 pm

Hello,

It seems that the Instrumentation Wizard does not have the required permissions.
Please try to start 'Ranorex Studio' or 'Ranorex Instrumentation Wizard' as Administrator.

Regards,
Markus (T)
.
Image