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

9 posts, 0 answers
  1. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 29 Sep 2010 Link to this post

    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?

     




  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 29 Sep 2010 Link to this post

    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
  3. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 01 Oct 2010 Link to this post

    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

  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 01 Oct 2010 Link to this post

    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
  5. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 01 Oct 2010 Link to this post

    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
  6. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 01 Oct 2010 Link to this post

    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
  7. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 01 Oct 2010 Link to this post

    I will submit a support ticket
  8. Anton
    Anton avatar
    2 posts
    Member since:
    Dec 2007

    Posted 05 Aug 2011 Link to this post

    Would have been nice to have a resolution for this - I have the same problem!
    Cheers
  9. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 08 Aug 2011 Link to this post

    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!
Back to Top