This is a migrated thread and some comments may be shown as answers.

Manager class is throwing null exception

2 Answers 164 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
imran
Top achievements
Rank 1
imran asked on 09 Jun 2018, 12:02 AM

Hi Team,

I am automating the wpf application and trying to connect the already launched application using Manager class, which is working fine in Windows 7,but the same code is throwing null exception for Manager class in Windows 10 64 but machine, let me know what I am missing. 

Regards,

Imran

2 Answers, 1 is accepted

Sort by
0
imran
Top achievements
Rank 1
answered on 09 Jun 2018, 12:36 AM

The exception to the above is as following and its happening in Windows 10 64bit machine, even though I compiled in x86. The same code is working fine in Windows 7

System.TypeInitializationException: The type initializer for 'ArtOfTest.WebAii.Messaging.Process.ExecutionMediator' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at ArtOfTest.WebAii.WebExtensions.StartPageProviderFactory.StartPageProviderFactory.RegisterProviders()
   at ArtOfTest.WebAii.WebExtensions.StartPageProviderFactory.StartPageProviderFactory..ctor()
   at ArtOfTest.WebAii.Messaging.Process.ExecutionMediator..ctor()
   at ArtOfTest.WebAii.Messaging.Process.ExecutionMediator..cctor()
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Messaging.Process.ExecutionMediator.get_Instance()
   at ArtOfTest.WebAii.Core.Manager.SetNewBrowserTracking(Boolean enable)
   at ArtOfTest.WebAii.Core.Manager.Start()
   at ArtOfTest.WebAii.TestTemplates.BaseWpfTest.Initialize(Settings settings, TestContextWriteLine vsWriteLineDelegate)
   at ArtOfTest.WebAii.TestTemplates.BaseWpfTest.Initialize()

0
Elena
Telerik team
answered on 13 Jun 2018, 02:23 PM
Hello Imran,

Thank you for reaching us out and sharing details.

As the exception thrown does not contain sufficient information for the types which could not be loaded I would like to ask for some further assistance on your end. Could you please retrieve the LoaderException as well and send it for further investigation. How you could get that error message is described in this forum post. Please give a try and send me the additional information. 

I am looking forward to hearing back from you. 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
imran
Top achievements
Rank 1
Answers by
imran
Top achievements
Rank 1
Elena
Telerik team
Share this question
or