MudassarRasool / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Gallio Icarus Couldn't load the dll which is 'Code UI' of VS .net 2010 #746

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Environment:
Windos 7; VS 2010 Premium
Gallio version:3.2.603.0

Steps:
1. Open 'Gallio Icarus',new a project;
2. Add dll file which is VS.net 2010 'Code UI' automantion test;
   Please refer to attacth for the dll
Expect Result:
2. load the file success and run automention like VSTS run;

Actual Result:
2. The file couldn't be load. The exception detail are below:

System.UnauthorizedAccessException: Access to the path 
'C:\Users\Abe\AppData\Roaming\Gallio\Icarus\Reports\' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler)
   at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
   at Gallio.Common.IO.FileSystem.GetFilesInDirectory(String path, String searchPattern, SearchOption searchOption) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\IO\FileSystem.cs:line 72
   at Gallio.Icarus.Models.ProjectTreeModel.<GetChildren>d__5.MoveNext()
   at Aga.Controls.Tree.TreeViewAdv.ReadChilds(TreeNodeAdv parentNode, Boolean performFullUpdate)
   at Aga.Controls.Tree.TreeViewAdv.AddNode(TreeNodeAdv parent, Int32 index, TreeNodeAdv node)
   at Aga.Controls.Tree.TreeViewAdv.ReadChilds(TreeNodeAdv parentNode, Boolean performFullUpdate)
   at Aga.Controls.Tree.TreeViewAdv._model_StructureChanged(Object sender, TreePathEventArgs e)
   at Aga.Controls.Tree.TreeModelBase.OnStructureChanged(TreePathEventArgs args)
   at Gallio.Icarus.Models.ProjectTreeModel.NotifyTestProjectChanged()
   at Gallio.Icarus.Controllers.ProjectController.AddFiles(IProgressMonitor progressMonitor, IList`1 files)
   at Gallio.Icarus.Commands.AddFilesCommand.Execute(IProgressMonitor progressMonitor)
   at Gallio.UI.ProgressMonitoring.TaskRunner.<>c__DisplayClass2.<BeginNextTask>b__0()
Reported by: 
UnhandledExceptionPolicy
   at Gallio.UI.Common.Policies.UnhandledExceptionPolicy.Report(String message, Exception unhandledException)
   at Gallio.UI.ProgressMonitoring.TaskRunner.ProcessFailure(Exception exception, String queueId)
   at Gallio.UI.ProgressMonitoring.TaskRunner.TaskTerminated(Task workerTask, String queueId)
   at Gallio.UI.ProgressMonitoring.TaskRunner.<>c__DisplayClass2.<BeginNextTask>b__1(Object , TaskEventArgs )
   at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T](EventHandler`1 handlerChain, Object sender, T e) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 69
   at Gallio.Common.Concurrency.Task.Notify(EventHandler`1& chain) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 355
   at Gallio.Common.Concurrency.Task.OnTerminated() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 343
   at Gallio.Common.Concurrency.Task.NotifyTerminated(TaskResult result) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 305
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Original issue reported on code.google.com by gyhanonl...@gmail.com on 9 Oct 2010 at 2:25

Attachments:

GoogleCodeExporter commented 8 years ago
above issued caused by 'UAC'

I create an unit test in VSTS.It can be run by 'Gallio'. But 'Code UI' cann't.

following is 'Code UI' exception.
System.Exception: Identifier is not unique
   at Gallio.Icarus.WindowManager.WindowManager.Add(String identifier, Control content, String caption, Icon icon)
   at Gallio.Icarus.WindowManager.WindowManager.Add(String identifier, Control content, String caption)
   at Gallio.Icarus.Packages.CodeViewerPackage.CreateWindow(CodeLocation codeLocation, String identifier, String caption)
   at Gallio.Icarus.Packages.CodeViewerPackage.<>c__DisplayClass5.<AddWindow>b__4()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
Reported by: 
UnhandledExceptionPolicy
   at Gallio.Icarus.IcarusProgram.<UnhandledErrorPolicy>b__5(Object sender, ThreadExceptionEventArgs e)
   at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Gallio.UI.ErrorReporting.ErrorDialogUnhandledExceptionHandler.RunApplicationWithHandler(Form mainForm)
   at Gallio.Icarus.IcarusProgram.RunImpl(String[] args)
   at Gallio.Runtime.ConsoleSupport.ConsoleProgram`1.Run(IRichConsole console, String[] args) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\ConsoleSupport\ConsoleProgram.cs:line 198
   at Gallio.Icarus.IcarusProgram.Main(String[] args)

Original comment by gyhanonl...@gmail.com on 9 Oct 2010 at 2:57

GoogleCodeExporter commented 8 years ago
I assume it is not possible to load a CodedUI test dll from VS2010 into Gallio?

Original comment by rob.lang...@googlemail.com on 25 Mar 2011 at 4:43