Telerik OpenAccess ORM : No enhanced assembly has been found for meta-data construction

42 posts, 0 answers
  1. Amit Hiremath
    Amit Hiremath avatar
    1 posts
    Member since:
    Apr 2009

    Posted 30 Apr 2009 Link to this post

    i have downloaded , mvc-forum applicatoin , and managed to compile and run it with proper Telerik.OpenAccess and Telerik.OpenAccess.Query Assemblies versions [Version=2009.1.311.1].

    whenever i run the application, i get following error,

    Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration.

     

     

    The error is coming at red line.

     

     

    ModelObjectScopeProvider class

     

    static public IObjectScope GetNewObjectScope()

                {

                      Database db = Database();

                      IObjectScope newScope = db.GetObjectScope();

                      return newScope;

                }

     

     

    One strange thing I have noticed is that,  even if we debugged with F11 it does not go inside for red line.

     

    please note that , i have installed

    1] RadControls for ASPNET AJAX Q1 2009 [ Version=2009.1.311.1]
    2] Telerik OpenAccess ORM [Version=2009.1.311.1]

  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 01 May 2009 Link to this post

    Hello Amit Hiremath,

    I assume that you have updated all references to the OpenAccess assemblies installed on your machine. After that, please do Clean and Rebuild the whole solution. If the problem still persist, make sure that the Enhancing option is set to True for the Telerik.Mvc.Model project and rebuild that project again. The Enhancing option is available in the project's properties.

    All the best,
    Alexander
    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.
  3. Frank
    Frank avatar
    15 posts
    Member since:
    Apr 2009

    Posted 02 Jun 2009 Link to this post

    I have same error. I could only download version 2009.1.405.1, so I had to edit the version numbers in web.config.
    Could you be more specific about how to add the Enhancing option? Would that be in the Telerik.Mvc.Model Settings?

    CarmelFrank
  4. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 03 Jun 2009 Link to this post

    Hello Frank,

    First you have to remove the OpenAccess references from the three projects and add them again. This makes sure that you will be working with the latest installed assemblies. You have already done the next step - changing the version in the web.config file. After that it is very important to "Clean" the project before rebuilding. The Enhancing option is available in the project's properties. Just select the project from the solution explorer and press F4, the option must be enabled.

    All the best,
    Alexander
    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.
  5. JoshKorn
    JoshKorn avatar
    9 posts
    Member since:
    May 2007

    Posted 04 Jun 2009 Link to this post

    Alexander:

    I have exactly the same problem.

    I followed your advice, right up to the point of setting the Enhancing option. But I don't see any such option in the project properties for Telerik,Mvc.Model. However, when I look at the Telerik.Mvc.Model.csproj file with Notepad, I can see the settings:

      <ProjectExtensions>
        <VisualStudio>
          <UserProperties OpenAccess_EnhancementOutputLevel="1" OpenAccess_UpdateDatabase="False"
                       OpenAccess_Enhancing="True" OpenAccess_ConnectionId="" OpenAccess_ConfigFile="App.config" />
        </VisualStudio>
      </ProjectExtensions>

    ... which seems to indicate that Enhancing is set correctly. Additionally, I checked for an app.config file and found one right in the Telerik.Mvc.Model folder itself.

    Unfortunately, this means that I don't know what to do next ... what do you suggest?

    Josh


    Thanks
    Josh
  6. Frank
    Frank avatar
    15 posts
    Member since:
    Apr 2009

    Posted 04 Jun 2009 Link to this post

    Josh,

    Take another look at the last line of the post previous to yours:
    Just select the project from the solution explorer and press F4.

    I found that the option was already set.

    Frank

    P.S. A tip of the hat to the Telerik support crew for their diligent monitoring of these forums and prompt responses.
  7. JoshKorn
    JoshKorn avatar
    9 posts
    Member since:
    May 2007

    Posted 04 Jun 2009 Link to this post

    Frank;

    Thanks, been there, done that, but it didn't do anything for me. It only shows the Project File and Project Folder properties, and in any case, the .csproj file itself shows that the magic value is already set the right way.

    Josh
  8. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 05 Jun 2009 Link to this post

    Hello Josh,

    This is really weird, I tried downloading and running the demo on several machines and did not get any problems, the only thing I had to do was to change the references. Obviously our Enhancer tool fails to enhance the project. Do you experience such problems with other OpenAccess enabled projects? If only this application is problematic, could you tell me the exact version of OpenAccess ORM that you are using? I will provide you with an enhanced version of the demo.

    Best wishes,
    Alexander
    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.
  9. JoshKorn
    JoshKorn avatar
    9 posts
    Member since:
    May 2007

    Posted 05 Jun 2009 Link to this post

    Alexander:

    The only reason I downloaded the OpenAccess ORM was because the mvc demo wouldn't build without it.
    What I downloaded was the version that's available on the free download page -- 2009.1.405.1

    Note that I also downloaded the RAD Controls too (and installed them before downloading and installing OpenAccess).

    Josh
  10. JoshKorn
    JoshKorn avatar
    9 posts
    Member since:
    May 2007

    Posted 05 Jun 2009 Link to this post

    Alexander:

    I got it to work by manually inserting a call to venhance in the post-build for Telerik.Mvc.Model:

                 "C:\Program Files\Telerik\OpenAccess ORM\sdk\venhance" -assembly:Telerik.Mvc.Model.dll

    This should be a sufficient workaround, since right now I'm just trying to run the demo and study the demo mvc code.

    Thanks very much.
    Josh
  11. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 05 Jun 2009 Link to this post

    Hello Josh,

    I am glad that you found a solution. I was just about to send you a compiled version, I did not want to bother you with manual operations with the enhancer. If you have any further questions or problems regarding our products, please do not hesitate to contact us.

    Best wishes,
    Alexander
    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.
  12. Keith LeBeau
    Keith LeBeau avatar
    51 posts
    Member since:
    Feb 2005

    Posted 24 Jun 2009 Link to this post

    Just an FYI that we ran into the exact same problem and I think I know the issue that people are having. Up until this point (keep in mind, many years now that we've used your products), we've never had any need to install your Visual Studio Extensions package. The EnhancementOutput option is nowhere to be found until you've done so, and I couldn't find anywhere related to the MVC project that stated it was a requirement. After installing the Extensions package, everything came together.
  13. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 29 Jun 2009 Link to this post

    Hi Keith LeBeau,

    I do not really think this is the problem. The Visual Studio Extensions package is related to the RadControls for ASP.NET AJAX toolkit and it is not required for using OpenAccess ORM. It seems more like a problem with the installation of the OpenAccess addin for Visual Studio. Without this addin, OpenAccess cannot enhance projects and the specific OpenAccess menus and properties are not available. You can check if the addin is running from the Tools -> Add-in Manager menu of Visual Studio. If it is not there, reinstalling OpenAccess ORM may help.

    Regards,
    Alexander
    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.
  14. Michal Ogluszka
    Michal Ogluszka avatar
    7 posts
    Member since:
    Jan 2009

    Posted 06 Jul 2009 Link to this post

    Hi,

     I have the same problem. On my computer everything is fine, but after deploying the project error is shown. I think I don't have to say that installing Telerik ORM on client computer is not an option...


    Greetings
    M
  15. Keith LeBeau
    Keith LeBeau avatar
    51 posts
    Member since:
    Feb 2005

    Posted 06 Jul 2009 Link to this post

    I can confirm again that installing only OpenAccess ORM does *not* enhance the projects for us. The VS Extensions package was required to get this to work.
  16. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 07 Jul 2009 Link to this post

    Hello,

    Let me summarize what to do if you get this exception. It pops up when the OpenAccess enhancer has not been called or did not succeed to enhance the compiled assembly. So, there are three possible ways to run the VEnhance program:
    • Automatically (default), using our Visual Studio integration (the OpenAccess ORM add-in for VS). The Enhancing option of the project should be set to True.
    • Using MsBuild integration (please read this help topic)
    • Manually, after the assembly is built (more details in this topic)
    The VEnhance.exe tool is installed with Telerik OpenAccess ORM under the sdk/ directory.
    Please, if the first approach does not work for you (probably there is a problem with the add-in), use any of the other two methods to enhance the project.

    Kind regards,
    Alexander
    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.
  17. krishna surapaneni
    krishna surapaneni avatar
    38 posts
    Member since:
    Aug 2009

    Posted 14 Aug 2009 Link to this post

    Hi all,

    i have downloaded sales dashboard application, and i have installed Telerik OpenAccess ORM,

    here i am getting an error like

    "Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration."

    Even after applying all the solutions i did not get the result.

    if there is any other possible ways to solve this problem..., kindly inform me...

    Thanks & Regards,
    Krishna.
  18. krishna surapaneni
    krishna surapaneni avatar
    38 posts
    Member since:
    Aug 2009

    Posted 17 Aug 2009 Link to this post

    Thanks to all,

    I tried it again and I got succeeded. And now my application is working fine…

    Thank you once again...

    ________________________________
    Thanks & Regards,

    Krishna

  19. Tom de Koning
    Tom de Koning avatar
    4 posts
    Member since:
    Jul 2009

    Posted 21 Sep 2009 Link to this post

    The good: google pointed me to this page.
    The bad: it does not state how to solve it.

    I downloaded the SL SalesDashboard demo. I can't open the SL solution as VS immediately crashes. The WPF solutions opens fine, but the OpenAccess references are missing. Easily fixed because they are contained in the zip.

    I first change the startup project to be the Shell.Desktop project. Then when I try to run I get the "No enhanced assembly has been found for meta-data construction" error.

    Now I would think that if this error has occurred before and people have stated that the enhancements option is not found when looking at the properties there would be some pointer about what to do / where to look.

    I have done a rebuild all, but no success. Please provide some advice on how to get the demo running.
  20. Keith LeBeau
    Keith LeBeau avatar
    51 posts
    Member since:
    Feb 2005

    Posted 21 Sep 2009 Link to this post

    Install the Visual Studio Extensions package corresponding to the version of the Telerik RadControls that you are currently using. It can be found in the same downloads section as the RadControls. Telerik insisted this wasn't a necessary step, but that was the only way I ever got it to build right with the enhancements.
  21. Tom de Koning
    Tom de Koning avatar
    4 posts
    Member since:
    Jul 2009

    Posted 21 Sep 2009 Link to this post

    Thanks for the reply. I have searched the OpenAccess, WPF & SIlverlight download sections... but can't seemt to find the Extension packages download. Would you have a direct link?
  22. Keith LeBeau
    Keith LeBeau avatar
    51 posts
    Member since:
    Feb 2005

    Posted 21 Sep 2009 Link to this post

    Now that I'm looking myself, it's not a separately downloadable package anymore that I can see. Perhaps it's in that bloated 180MB install? I'd give the full install a try and see if it adds it. If not, you're going to need to ask Telerik how you can get those extensions installed.
  23. Keith LeBeau
    Keith LeBeau avatar
    51 posts
    Member since:
    Feb 2005

    Posted 21 Sep 2009 Link to this post

    Digging a little further, I found the last build that has them if you go back through older versions is 2009.1.527. You could always try installing that package if the big 180MB install of the current version doesn't have it, but I am pretty sure that the extensions are specific to the Telerik build you're working with.
  24. Tom de Koning
    Tom de Koning avatar
    4 posts
    Member since:
    Jul 2009

    Posted 21 Sep 2009 Link to this post

    Downloaded the installer for Silverlight but it does not seem to include the guidance extensions. Rather that installing an older package, I'll wait a bit for the Telerik support (having spent the night browsing / trying for a solution.

    Thanks Tom
  25. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 22 Sep 2009 Link to this post

    Hello Tom de Koning,

    The VEnhance tool is distributed with Telerik OpenAccess ORM and it is required that you have it installed on the machine. You can use the Trial version as well. After this, please remove the OpenAccess references and add them again so they point to the installed assemblies (not those in the bin folder). Then the problem should disappear.

    Best wishes,
    Alexander
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  26. Tom de Koning
    Tom de Koning avatar
    4 posts
    Member since:
    Jul 2009

    Posted 22 Sep 2009 Link to this post

    Thanks for the suggestions. I've downloaded the latest OpenAccess bits, referenced it from the GAC.

    When I run the WPF project I get "You are running a trial version of RadControls for WPF.", and then the same error message. I'd love to continue in trial and error, but in all fairness, this is getting ridiculous especially considering this issue has troubled many people before I tried.

    Could you provide a download link to a solution that does work?

  27. Keith LeBeau
    Keith LeBeau avatar
    51 posts
    Member since:
    Feb 2005

    Posted 22 Sep 2009 Link to this post

    I would try installing the VS Extensions package for the 2009.1.527 version. Maybe there won't be a version conflict. Telerik never believed me that I was only able to get it working once I installed that package, but it absolutely would not work until I did so. Just letting you know what worked for me when I had the same problem.
  28. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 23 Sep 2009 Link to this post

    Hello Tom de Koning,

    Can you see the Telerik -> OpenAccess menu in Visual Studio? If so, this means the VS Addin is working and the Enhancer will be called. Please make sure that:
     - The Telerik.SalesDashboard.Data project has the Enhancing property set to True.
     - There are no outdated assemblies in the bin directories of the projects. Just delete all .dll and .pdb files starting with Telerik.OpenAccess* and Telerik.SalesDashboard* from all bin directories. Then rebuild the solution.

    If you do not have such menu, the OpenAccess Visual Studio Addin is not running. This might happen if you are using Visual Studio Express, which does not allow usage of addins.



    All the best,
    Alexander
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  29. Varun Jain
    Varun Jain avatar
    6 posts
    Member since:
    Apr 2010

    Posted 01 Jun 2010 Link to this post

    Hello,

    I'm too getting the same problem. I have salesDashboard version 2010 Silverlight 4. What could be the reason for it? Pleae help.

    I have OpenAccess ORM, Rad Controls for Silverlight and VS 2010 with SQL server 2008. Kindly help.

    Thanks,
    Varun Jain
  30. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 02 Jun 2010 Link to this post

    Hi Varun Jain,

    You did not mention which version of OpenAccess you are using but in order to run the SL4/VS2010 demo without changing anything you need to install version 2010.1.414.3 (the latest internal build we published before the Q1 Service pack 1). Just referencing the OpenAccess assemblies would not be enough to run the demo because the enhancer would not be available on the machine and you would get the "No enhanced assembly..." exception.
    So please make sure you have this OpenAccess version installed, Clean and Rebuild the solution. Then if the problem remains, let us know so we can continue investigating the problem.

    Kind regards,
    Alexander
    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.
Back to Top