compile error due to missing Telerik namespace.

11 posts, 0 answers
  1. Duy
    Duy avatar
    3 posts
    Member since:
    Jul 2011

    Posted 17 Aug 2011 Link to this post

    Hello,

    I've been getting compiled error "...can't find Telerik namespace..." when create Script Test or generate Customize Step in Code since installed the licensed version of Test Studio.  This happens due to the existing of "Telerik.WebAii.Controls.Html;"
    and "Telerik.WebAii.Controls.Xaml;"  I fix this by commented out those two references and all customized code works as it should.

    Check intellisense in the editor (Test Studio), only object under Telerik namespace is TestStudio().

    Do I need those reference for future project?  If yes how to fix it, if no how do I exclude those lines in  Test Script?

    One more note, I uninstalled the trial version before install User version.

    Thanks.
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 18 Aug 2011 Link to this post

    Hello Duy,
        it's seems you're hitting a know issue. We haven't fixed it yet because we're unable to reliably reproduce it. It appears seemingly randomly. You can resolve the problem easily by adding the necessary references. You need to add project references to all the DLLs located in this folder:
    C:\Program Files (x86)\Telerik\WebUI Test Studio 2010.3\Bin\Translators
    Here's a Jing video demonstrating how this is done:
    http://www.screencast.com/users/TelerikTesting/folders/Jing/media/ecd4fe86-1318-4b0f-b2db-f750215f6106

    Best wishes,
    Stoich
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. Duy
    Duy avatar
    3 posts
    Member since:
    Jul 2011

    Posted 18 Aug 2011 Link to this post

    That's the fix.

    Thanks!
  4. Rachna
    Rachna avatar
    2 posts
    Member since:
    Oct 2011

    Posted 12 Oct 2011 Link to this post

    Hi Stoich,
    I m using trial version
     I  m also getting compilation error :
    c:\Documents and Settings\kastle.localuser\My Documents\Test Studio Projects\Kastle_rachna\Building page.tstest.cs: Line 1: (CS0234) The type or namespace name 'WebAii' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)
    c:\Documents and Settings\kastle.localuser\My Documents\Test Studio Projects\Kastle_rachna\Building page.tstest.cs: Line 2: (CS0234) The type or namespace name 'WebAii' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)
    c:\Documents and Settings\kastle.localuser\My Documents\Test Studio Projects\Kastle_rachna\Building page.tstest.cs: Line 3: (CS0234) The type or namespace name 'WebAii' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)

    I recorded  few test they  were executed  properly but after adding  it as test step in  another test, none of the  test are now excutable. compilation error error is coming. can you help me in this. please give me steps to resolve the  problem.
  5. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 12 Oct 2011 Link to this post

    Hi Rachna,
        I believe the absolute same solution (seen in my first post) should be applicable to your situation. Let me know how it goes.

    Regards,
    Stoich
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Doug
    Doug avatar
    4 posts
    Member since:
    Jul 2013

    Posted 06 Sep 2013 Link to this post

    I'm seeing the same issue. But when I try to access the link with the solution, I get a blank page. Can you re-post the video or send it to me, please?
  7. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 06 Sep 2013 Link to this post

    Hi Doug,

    Please try this link to the video instead:
    http://www.screencast.com/users/TelerikTesting/folders/Jing/media/ecd4fe86-1318-4b0f-b2db-f750215f6106

    Let me know if you still need assistance with this.

    Regards,
    Cody
    Telerik
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  8. Pavan
    Pavan avatar
    8 posts
    Member since:
    Feb 2014

    Posted 17 Jul 2017 Link to this post

    Please advise on below error. I have added a code as delete operation was working in the scripts. Same code I'm trying to impliment to other scripts, I see the below error. 

    CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)

  9. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    308 posts

    Posted 20 Jul 2017 Link to this post

    Hello Pavan,

    This exception indicates that you have to refer to your protect System.Windows.Forms.dll. This dll could be found in the .Net installation folder - for example C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.

    Regards,
    Nikolay Petrov
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  10. Thomas
    Thomas avatar
    8 posts
    Member since:
    Oct 2017

    Posted 05 Oct 2017 Link to this post

    Hello Nikolay,

     

    I am also receiving the above mentioned exception.  As per your solution, I have on my system .Net v 3.5 which does not contain System.Windows.Forms.dll that I can reference.

     

    Please advise.  Thanks,

    Thomas

  11. Thomas
    Thomas avatar
    8 posts
    Member since:
    Oct 2017

    Posted 05 Oct 2017 in reply to Thomas Link to this post

    Nikolay, I have solved my own issue by downloading the latest .Net from MS.  Thanks.

Back to Top