NotSupportedException on debugging Win 7 64Bit

Bug reports.
RogerWaters
Posts: 6
Joined: Tue Nov 15, 2011 11:13 am

NotSupportedException on debugging Win 7 64Bit

Post by RogerWaters » Fri Mar 16, 2012 9:50 am

We have the following error debugging with Ranorex Studio 3.2.0 under 64Bit Windows 7:
An unexpected exception occurred while trying to run project '{namespace removed}'.

System.NotSupportedException: The invoked member is not supported in a dynamic assembly.
System.Reflection.Emit.InternalAssemblyBuilder.get_Location()+0xf
ICSharpCode.SharpDevelop.Services.WindowsDebugger.RegisterLoadedAssemblies()+0x19
ICSharpCode.SharpDevelop.Services.WindowsDebugger.InitializeService(Boolean use64Host)+0x22
ICSharpCode.SharpDevelop.Services.WindowsDebugger.Start(ProcessStartInfo processStartInfo)+0x3c
ICSharpCode.SharpDevelop.Project.AbstractProject.Start(Boolean withDebugging)+0x17
ICSharpCode.SharpDevelop.Project.Commands.Execute+<>c__DisplayClass1.<Run>b__0(Object ,EventArgs )+0x61
The following things works without error:
  • Debugging under 32Bit windows 7
  • Debugging with VisualStudio 2012 under Windows 7 64 Bit
  • Starting solution without attached debugger
Greetings
RogerWaters

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

Re: NotSupportedException on debugging Win 7 64Bit

Post by Support Team » Fri Mar 16, 2012 12:28 pm

Hi,

Please update to the 3.2.2 version, because we have improved the stability and usability of 64 bit debugging.
You will find the link to the actual version on the start page of Ranorex Studio or you can also download it here.

Regards,
Markus
Ranorex Support Team
.
Image

RogerWaters
Posts: 6
Joined: Tue Nov 15, 2011 11:13 am

Re: NotSupportedException on debugging Win 7 64Bit

Post by RogerWaters » Fri Mar 16, 2012 1:23 pm

Ok I've updated. This is the following error:
The "EntityDeploy" task could not be loaded from the assembly
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Data.Entity.Build.Tasks.dll.
Could not load file or assembly 'Microsoft.Data.Entity.Build.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
or one of its dependencies.
Das System kann die angegebene Datei nicht finden.
Confirm that the <UsingTask> declaration is correct,
and that the assembly and all its dependencies are available. (MSB4062)
Ranorex Studio try to load .Net 4 Assambly, but the whole solution is .Net 3.5, also the search path for the assambly is correct.

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

Re: NotSupportedException on debugging Win 7 64Bit

Post by Support Team » Mon Mar 19, 2012 12:48 pm

Hi,
RogerWaters wrote:Ranorex Studio try to load .Net 4 Assambly, but the whole solution is .Net 3.5, also the search path for the assambly is correct.
Did you try to re-add this assembly reference to your project? If not please try it. Are you sure you have the right assembly. Because this namespace exists in both frameworks (3.5 and 4.0).

If nothing of both helps, please try to set the target framework to 4.0.

Regards,
Peter
Ranorex Team
.
Image

RogerWaters
Posts: 6
Joined: Tue Nov 15, 2011 11:13 am

Re: NotSupportedException on debugging Win 7 64Bit

Post by RogerWaters » Mon Mar 19, 2012 1:45 pm

hallo,

I do not have any reference for this assambly in my solution. I also checked that all references are below .Net 4.0.
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Data.Entity.Build.Tasks.dll.
As you see the path to the assambly is correct, but the expected version
'Microsoft.Data.Entity.Build.Tasks, Version=4.0.0.0,
is wrong.

I can't change my project to .Net 4.0 because the application to test is .Net 3.5. If I set to .Net 4.0 the custom controls can't be accessed.

I changed back to Ranorex 3.2.0 for now to continue working. So the solution can be build without any error. Just debugging does not work.

Do you have another idea what to try?
Can I help you with some other informations?

Greetings
RogerWaters

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

Re: NotSupportedException on debugging Win 7 64Bit

Post by Support Team » Mon Mar 19, 2012 4:29 pm

RogerWaters wrote:Can I help you with some other informations?
I would be great if you can provide us your Ranorex solution to check the issue. Is this possible?

Regards,
Peter
Ranorex Team
.
Image

RogerWaters
Posts: 6
Joined: Tue Nov 15, 2011 11:13 am

Re: NotSupportedException on debugging Win 7 64Bit

Post by RogerWaters » Mon Mar 19, 2012 4:38 pm

I have attached the solution. It would be great if you delete the attachment after check. I have removed one project from the solution, because of company critical informations. But the solution also builds without it and the error also occur.

Greetings
RogerWaters

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

Re: NotSupportedException on debugging Win 7 64Bit

Post by Support Team » Mon Mar 19, 2012 5:18 pm

Hi,
RogerWaters wrote:I have attached the solution. It would be great if you delete the attachment after check. I have removed one project from the solution, because of company critical informations. But the solution also builds without it and the error also occur.
Thank you for the solution. I deleted the file from your post. I opened the solution and I had a few issue to fix, because the Janus framework is missing on my machine. After I fixed those issues, I had no problems to compile the solution. I just got a few warning for the missing refs from the janus framework, but I didn't get an error as you.

Regards,
Peter
Ranorex Team
.
Image

RogerWaters
Posts: 6
Joined: Tue Nov 15, 2011 11:13 am

Re: NotSupportedException on debugging Win 7 64Bit

Post by RogerWaters » Mon Mar 19, 2012 6:18 pm

Have you compiled the solution on an 64Bit machine?
Have you used the debugging function?
On 32 bit it also worked for me, compiling and debugging.

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

Re: NotSupportedException on debugging Win 7 64Bit

Post by Support Team » Tue Mar 20, 2012 11:15 am

Hi,
RogerWaters wrote:Have you compiled the solution on an 64Bit machine?
Have you used the debugging function?
Yes I've compiled on a 64 Bit machine and I've stepped through the first few actions without any issues.

Regards,
Peter
Ranorex Team
.
Image