ObjectContainerProvider Build Error

3 posts, 0 answers
  1. Greg Figueroa
    Greg Figueroa avatar
    82 posts
    Member since:
    Apr 2005

    Posted 05 Mar 2009 Link to this post

    When using the Expert Wizard to add an ObjectContainerProvider, it generates the file, but when I try to build it, I receive the following error...

    The type or namespace name 'ObjectContainerProvider' could not be found (are you missing a using directive or an assembly reference?)

    Evaluating the file, here is where it is failing...

        /// <summary>  
        /// Summary description for ObjectContainerProvider1.  
        /// </summary>  
        public class ObjectContainerProvider1 : IObjectScopeProvider, ObjectContainerProvider, IDBConnection  
            private Database myDatabase = null;  

    Can anyone tell me why?  Since this is generated code, I find it hard to believe there is a missing "using directive", unless, of course, the wizard has a bug.  Removing ObjectContainerProvider from the Class allows it to build without error, but I doubt that's the correct course of action.


  2. tmlipinski
    tmlipinski avatar
    131 posts
    Member since:
    Dec 2006

    Posted 05 Mar 2009 Link to this post


    It's a misspelling in c:\Program Files\telerik\OpenAccess ORM\sdk\IDEIntegrations\templates\templateObjectContainerProvider.cs (underline means installation-dependend part of the path) file: it should be IObjectContainerProvider, of course.
    You can correct this file and get correct code.
    There is a thread about this issue somewhere in this forum.

  3. DevCraft banner
  4. Ady
    Ady avatar
    588 posts

    Posted 09 Mar 2009 Link to this post

    Hello Kuba,

     This has been fixed and will be available in the next release.

     As suggested by Tomasz, this can be fixed by modifying the template file - templateObjectContainerProvider.cs file.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top