System.InvalidCastException when executing from MTM2010

2 posts, 0 answers
  1. Mahendra Kumar
    Mahendra Kumar avatar
    17 posts
    Member since:
    Feb 2010

    Posted 02 Feb 2012 Link to this post


    I trying to execute the scripts form MTM2010 and I have testlab setup for execution.
    When I execute the scripts, I am getting the below error. When I run the scripts from VSTS2010 it works fine.

    System.TypeInitializationException: The type initializer for 'HCS.TMS.QA.Automation.PositionManager.Common.Settings.GlobalSettings' threw an exception. ---> System.InvalidCastException: Unable to cast object of type 'HCS.TMS.QA.Automation.PerformanceManager.Common.Settings.ConfigSection.AutomationConfigSection' to type 'HCS.TMS.QA.Automation.PositionManager.Common.Settings.ConfigSection.AutomationConfigSection'.

    Please help he in resolving the issue.

    Thanks & regards,
  2. Cody
    Cody avatar
    3354 posts

    Posted 06 Feb 2012 Link to this post


    The error message doesn't look like it has anything to do with Test Studio. The problem is happening in the DLL for HCS.TMS.QA.Automation.PositionManager.Common.Settings.GlobalSettings which is not Test Studio code at all. My guess (and it's only a shot in the dark) is that there's a DLL version mismatch installed on your execution machine for one of your own DLL's. 

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top