Manager class is throwing null exception

3 posts, 0 answers
  1. imran
    imran avatar
    8 posts
    Member since:
    Feb 2018

    Posted 08 Jun 2018 Link to this post

    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. 



  2. imran
    imran avatar
    8 posts
    Member since:
    Feb 2018

    Posted 08 Jun 2018 Link to this post

    Hi 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()

  3. Elena
    Elena avatar
    1239 posts

    Posted 13 Jun 2018 Link to this post

    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. 

    Elena Tsvetkova
    Progress Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top