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

The type or namespace name 'Manager' could not be found

8 Answers 374 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Veteran
Iron
Andrew asked on 29 Sep 2010, 09:06 PM
help I am just trying to build this c# examle:
http://www.artoftest.com/support/webaii/topicsindex.aspx

and I am getting the following error:
The type or namespace name 'Manager' could not be found (are you missing a using directive or an assembly reference?) 


I have "ArtOfTest.Common" and "ArtOfTest.WebAii" referenced and I did resolve on the 'Manager object' and it add this declaration to my code:

using

 

 

ArtOfTest.WebAii.Core;

yet it will still not build, and I missing a ref?

 




8 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 30 Sep 2010, 02:38 AM
Hello Andrew,

That sounds correct. The Manager class is defined in the ArtOfTest.WebAii.Core namespace. Would you paste your entire source code please? I'll take a look to try and see why it's not being picked up.

Sincerely yours,
Cody
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
Andrew
Top achievements
Rank 1
Veteran
Iron
answered on 01 Oct 2010, 01:39 PM
using ArtOfTest.WebAii.Core;
  
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
  
            //Get Manager
            Manager manager = Setup(BrowserType.InternetExplorer, @"http://webstage.ivey.uwo.ca/eZone");
  
        }
  
        private Manager Setup(BrowserType browserType, string testURL)
        {
  
            //Initialize the settings you want used.
            Settings mySettings = new Settings(browserType, @"c:\log\");
  
            //Create the manager object
            Manager myManager = new Manager(mySettings);
  
            //Start the manager
            myManager.Start();
  
            //Launch a new browser instance.
            myManager.LaunchNewBrowser();
  
            //Navigate to a certain web page
            myManager.ActiveBrowser.NavigateTo(testURL);
  
  
            return myManager;
        }
    }
}

Here are my errors:

Error 1 The type or namespace name 'WebAii' does not exist in the namespace 'ArtOfTest' (are you missing an assembly reference?) 
Error 2 The type or namespace name 'Manager' could not be found (are you missing a using directive or an assembly reference?) 
Error 3 The type or namespace name 'BrowserType' could not be found (are you missing a using directive or an assembly reference?)

Refs:

ArtOfTest.Common ver: 2010.2.830.0
ArtOfTest.WebAii ver: 2010.2.830.0

0
Cody
Telerik team
answered on 01 Oct 2010, 09:11 PM
Hello Andrew,

I think you are missing the required dll references. See attached screenshot. 

All the best,
Cody
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
Andrew
Top achievements
Rank 1
Veteran
Iron
answered on 01 Oct 2010, 09:20 PM
nope I have them as I mentioned in my last msg

Refs:

ArtOfTest.Common ver: 2010.2.830.0
ArtOfTest.WebAii ver: 2010.2.830.0


would you like a screen shot of my refs
0
Cody
Telerik team
answered on 01 Oct 2010, 09:44 PM
Hi Andrew,

Something is missing and I just don't see it yet. Your source code file has no problem with the Manager class at all when I loaded it.

Is there a yellow icon on the dll reference as in the attached screenshot? This means VS cannot find the referenced dll, possibly due to a version upgrade. When this happens VS acts like the reference isn't there at all. If this is the case try setting Specific Version to false as in the other screenshot.

If that doesn't help, put your entire solution folder into a .zip file and send that to me. I think you'll need to open a support ticket before you can attach a file (I think the forum restricts file attachment to Telerik personnel only).

Sincerely yours,
Cody
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
Andrew
Top achievements
Rank 1
Veteran
Iron
answered on 01 Oct 2010, 09:48 PM
I will submit a support ticket
0
Anton
Top achievements
Rank 1
answered on 06 Aug 2011, 12:32 AM
Would have been nice to have a resolution for this - I have the same problem!
Cheers
0
Cody
Telerik team
answered on 08 Aug 2011, 04:07 PM
Hi Anton,

The solution in Andrew's case was to select either ".NET Framework 3.5" or ".NET Framework 4" - see attached screenshot. We don't work with the client profiles.

Kind regards,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Veteran
Iron
Answers by
Cody
Telerik team
Andrew
Top achievements
Rank 1
Veteran
Iron
Anton
Top achievements
Rank 1
Share this question
or