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

compile error due to missing Telerik namespace.

10 Answers 657 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Duy
Top achievements
Rank 1
Duy asked on 17 Aug 2011, 08:37 PM
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.

10 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 18 Aug 2011, 09:27 AM
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!
0
Duy
Top achievements
Rank 1
answered on 18 Aug 2011, 03:48 PM
That's the fix.

Thanks!
0
Rachna
Top achievements
Rank 1
answered on 12 Oct 2011, 01:02 PM
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.
0
Stoich
Telerik team
answered on 12 Oct 2011, 02:17 PM
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
0
Doug
Top achievements
Rank 1
answered on 06 Sep 2013, 07:04 PM
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?
0
Cody
Telerik team
answered on 06 Sep 2013, 08:40 PM
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!
0
Pavan
Top achievements
Rank 1
answered on 17 Jul 2017, 09:36 AM

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?)

0
Nikolay Petrov
Telerik team
answered on 20 Jul 2017, 08:04 AM
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!
0
Thomas
Top achievements
Rank 1
answered on 05 Oct 2017, 01:51 PM

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

0
Thomas
Top achievements
Rank 1
answered on 05 Oct 2017, 02:41 PM

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

Tags
General Discussions
Asked by
Duy
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Duy
Top achievements
Rank 1
Rachna
Top achievements
Rank 1
Doug
Top achievements
Rank 1
Cody
Telerik team
Pavan
Top achievements
Rank 1
Nikolay Petrov
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or