RanorexStudio => Add GAC-Assembly

Bug reports.
moveo_software
Posts: 10
Joined: Tue Jan 27, 2009 4:35 pm

RanorexStudio => Add GAC-Assembly

Post by moveo_software » Tue Jan 27, 2009 4:38 pm

Hi I got the following error after adding one or more assemlies from the GAC. (e.g. System.Workflow.Activities)

Best regards,
Ramon

Error:

Ranorex Studio Version : 2.0.0.5219
.NET Version : 2.0.50727.1434
OS Version : Microsoft Windows NT 6.0.6001 Service Pack 1
Current culture : German (Germany) (de-DE)
Working Set Memory : 149232kb
GC Heap Memory : 31059kb

Exception thrown:
System.IO.FileNotFoundException: Die Datei oder Assembly file:///C:\Windows\System32\System.Workflow.ComponentModel oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
Dateiname: file:///C:\Windows\System32\System.Workflow.ComponentModel
bei System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
bei System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
bei System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
bei System.AppDomain.Load(AssemblyName assemblyRef)
bei WorkflowDesigner.TypeProviderService.LoadAssembly(ProjectItem item, AppDomain appDomain)
bei WorkflowDesigner.TypeProviderService.ProjectItemAddedEventHandler(Object sender, ProjectItemEventArgs e)
bei System.EventHandler`1.Invoke(Object sender, TEventArgs e)
bei ICSharpCode.SharpDevelop.Project.ProjectService.OnProjectItemAdded(ProjectItemEventArgs e)
bei ICSharpCode.SharpDevelop.Project.ProjectService.AddProjectItem(IProject project, ProjectItem item)
bei ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject.Run()
bei ICSharpCode.Core.WinForms.MenuCommand.OnClick(EventArgs e)
bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
bei System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
bei System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
bei System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
bei System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
bei System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei System.Windows.Forms.ToolStrip.WndProc(Message& m)
bei System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Der Assemblymanager wurde geladen aus: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Als EXE-Datei ausgeführt. C:\Program Files\Ranorex 2.0 RC1\RanorexStudio\bin\RanorexStudio.exe
--- Ein detailliertes Fehlerprotokoll folgt.

=== Zustandsinformationen vor Bindung ===
LOG: Benutzer = LAN\rkania
LOG: Where-ref-Bindung. Speicherort = C:\Windows\System32\System.Workflow.ComponentModel
LOG: Appbase = file:///C:/Program Files/Ranorex 2.0 RC1/RanorexStudio/bin/
LOG: Ursprünglicher PrivatePath = NULL
Aufruf von Assembly : (Unknown).
===
LOG: Diese Bindung startet im LoadFrom-Load-Kontext.
WRN: Das systemeigene Abbild wird nicht im LoadFrom-Kontext durchsucht. Das systemeigene Abbild wird nur im Standard-Load-Kontext durchsucht, z.B. Assembly.Load().
LOG: Die Anwendungskonfigurationsdatei wird verwendet: C:\Program Files\Ranorex 2.0 RC1\RanorexStudio\bin\RanorexStudio.exe.Config
LOG: Die Computerkonfigurationsdatei von C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config wird verwendet.
LOG: Download von neuem URL file:///C:/Windows/System32/System.Workflow.ComponentModel.


---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Die Sequenz enthält keine Elemente.
bei System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
bei ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
bei ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
ProjectService.OpenSolution: [Solution: FileName=C:\Users\rkania\Documents\RanorexStudio Projects\procareTests\procareTests.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: procareTest1]

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

Post by Support Team » Wed Jan 28, 2009 5:34 pm

Could you please further specify what you did to get this exception? I could not reproduce this error, yet. Please provide us detailed step-by-step instructions how to reproduce that error! Thank you!

Regards,
Alex
Ranorex Support Team

moveo_software
Posts: 10
Joined: Tue Jan 27, 2009 4:35 pm

Steps to reproduce

Post by moveo_software » Wed Jan 28, 2009 5:58 pm

Hi,

1. Open RanorexStudio 2.0 RC1
2. Create a RanorexSolution with Exe-Testproject (the default targetframework seems to be .NET 2.0).
3. Change the Project-Targetframework to .NET 3.0
4. Add a sequencial workflow (with .xoml-File)
5. Now the workflow is in designview by default (if not open it pls)
6. Right-click on the project in the ProjectExplorer
7. Select "Add Reference"
8. Select "System.Workflow.ComponentModel" (or .Activities) from the GAC-AssemblyList
9. Click the "Select"-Button
10. Click the "Ok"-Button
11. Watch the Exception

I did it in this order 10 times and everytime I get the exception (see first topic).

Hope this helps!
Best regards,
Ramon

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

Post by Support Team » Thu Jan 29, 2009 5:01 pm

Thx for reporting this bug. I could reproduce it now.

Please consider that the support for Workflows in RanorexStudio is still experimental (and will be for the Ranorex 2.0 release).

Regards,
Alex
Ranorex Support Team

moveo_software
Posts: 10
Joined: Tue Jan 27, 2009 4:35 pm

Post by moveo_software » Thu Jan 29, 2009 5:12 pm

Ok, I'll consider the experimental state.

Btw.: when I add the GAC-Reference before I add a workflow to the project, all is fine....

Best regards,
Ramon

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Post by atom » Tue Feb 03, 2009 7:15 pm

Question :
Are you trying to order your test cases using WWF ?

moveo_software
Posts: 10
Joined: Tue Jan 27, 2009 4:35 pm

Post by moveo_software » Mon Feb 09, 2009 1:39 pm

Hi atom,

yes, we (may) want to build our tests with WF like a flow chart.
Why do you ask?