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]
RanorexStudio => Add GAC-Assembly
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
-
- Posts: 10
- Joined: Tue Jan 27, 2009 4:35 pm
Steps to reproduce
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
-
- Posts: 10
- Joined: Tue Jan 27, 2009 4:35 pm
-
- Posts: 10
- Joined: Tue Jan 27, 2009 4:35 pm