Coded UI Test Builder: Playback failed to initialize when RadControls are installed

7 posts, 0 answers
  1. Brandon
    Brandon avatar
    10 posts
    Member since:
    Oct 2012

    Posted 14 Mar 2013 Link to this post

    I'm a feature developer who also sometimes need to write Coded UI tests from time to time.  I have the WinForms RadControls installed on my VS2010 so that I can easily add Telerik controls to our app.  However, whenever I have it installed, I'm unable to edit (any) ui maps.  Whenever I launch the Coded UI Test Builder to spy on new controls, I receive the following error:

    Playback failed to initialize: Failure to load Extension package.  PackageName:RadControls for WinForms Test Extension, Version 1.0, Vendor: Telerik Inc, Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Telerik.WinControls.CodedUI.2010\v4.0_2013.1.220.40_5bb2a467cbec794e\Telerik.WinControls.CodedUI.2010.dll.  Restart Coded UI Test Builder.

    It's annoying to have to continuously uninstall/reinstall RadControls depending on the work I'm doing.  Has anyone else seen this, is there a suggest workaround?

    Thanks!

    Brandon
  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 19 Mar 2013 Link to this post

    Hi Brandon,

    Thank you for contacting us.

    This is strange. It looks like Visual Studio cannot find our coded UI extension. Please, could you confirm that the Telerik.WinControls.CodedUI.2010.dll file is installed in your GAC? You can also try to add the file explicitly in your project. It is located in the CodedUI folder under your installation path. If the issue still appears, please send us your project and we will investigate in detail.

    I am looking forward to your reply.
     
    Greetings,
    Jack
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Brandon
    Brandon avatar
    10 posts
    Member since:
    Oct 2012

    Posted 19 Mar 2013 Link to this post

    Hey Jack--

    The .dll referenced below is in fact installed on my GAC.  I can see it in in the GAC_MSIL directory.  I added the file explicitly to the project and get the same result.  Here is what is showing in the output window after I've added the file to the project, and then attempt to edit a ui map:

    Error loading 'Telerik.WinControls.CodedUI.2010.dll' or one of its dependencies. Error details: System.TypeLoadException: Method 'GetValidSearchProperties' on type 'Telerik.WinControls.CodedUI.RadBaseTestControl' from assembly 'Telerik.WinControls.CodedUI.2010, Version=2013.1.220.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' is overriding a method that is not visible from that assembly.

  5. Brandon
    Brandon avatar
    10 posts
    Member since:
    Oct 2012

    Posted 21 Mar 2013 Link to this post

    I'm also unable to run Coded UI via VS2010 when RadControls are installed. 

    Error Message:
    Error calling Initialization method for test class DecisionPoint_Auto.ApplyNetworkPenalties: System.TypeLoadException: Could not load type 'Microsoft.VisualStudio.TestTools.UITesting.UITechnologyManagerProxy' from assembly 'Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    Error Stack Trace:
    Telerik.WinControls.CodedUI.RadControlsExtensionPackage.GetService(Type serviceType)
    Microsoft.VisualStudio.TestTools.UITest.Framework.UITestExtensionPackageManager.GetExtensionsInternal[T]()

    Debug Trace:
    E, 15108, 13, 2013/03/21, 11:38:40.129, 3541622535436, QTAgent32.exe, ExtensionFramework : Error getting requested extension type : ExtensionPackageName RadControls for WinForms Test Extension, C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Telerik.WinControls.CodedUI.2010\v4.0_2013.1.220.40__5bb2a467cbec794e\Telerik.WinControls.CodedUI.2010.dll, Detailed Info Could not load type 'Microsoft.VisualStudio.TestTools.UITesting.UITechnologyManagerProxy' from assembly 'Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.



  6. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 22 Mar 2013 Link to this post

    Hi Brandon,

    Our Coded UI test extension is compatible with Visual Studio 2010 only when Service Pack 1 for Visual Studio 2010 is installed. You should also install this update. Please could you confirm that these prerequisites are installed on your PC? 

    I am looking forward to your reply.
     
    All the best,
    Jack
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  7. Brandon
    Brandon avatar
    10 posts
    Member since:
    Oct 2012

    Posted 22 Mar 2013 Link to this post

    Hey again Jack--

    My current version of Visual Studio is as follows:

    Version 10.0.40219.1 SP1Rel

    Are you sure I should install the update you recommend?  The warning notes on the download page are as follows:
  8. Apply the hotfix only to systems that are experiencing the specific problem.
  9. Installing the incorrect hotfix can cause damage to your system.
  10. If you are not sure whether the hotfix is the correct one for your system, do not install it.

  11. I don't want to break my current environment any further, so installing that hotifx without knowing why makes me nervous. :)

    Thanks--
    Brandon
  • Jack
    Admin
    Jack avatar
    2333 posts

    Posted 27 Mar 2013 Link to this post

    Hi Brandon,

    This hot-fix is necessary in order to run our Coded UI extension. You should install it if you want to use this functionality. The software requirements are described in our online documentation.

    All the best,
    Jack
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  • Back to Top
    UI for WinForms is Visual Studio 2017 Ready