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

42 posts, 0 answers
  1. Varun Jain
    Varun Jain avatar
    6 posts
    Member since:
    Apr 2010

    Posted 02 Jun 2010 Link to this post

    Hi Alexander,

    I am currently using OpenAccess  2010.1.414.3. Could you give me a step-by-step procedure how to install everything and what all I have to install, so that everything run's fine and I could know what is the actual procedure for it.

    I even tried to deploy it on IIS 7 but was unable to figure out why it couldn't show me the data. I think so there is some WCF service configuration error. Better if you could help me out.

    Thanks,
    Varun Jain

  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 02 Jun 2010 Link to this post

    Hi Varun Jain,

    I just tested the Sales dashboard on one of our machines and below are the steps I did to get it running. I assume that Visual Studio 2010 and OpenAccess are already installed:
    - Install Silverlight 4 Tools for Visual Studio;
    - Unzip the demo archive and open the Silverlight solution;
    - Make sure that the Enhancing property of the Telerik.SalesDashboard.Data project is set to True; To check this select the project in the Solution Explorer and press F4, then you should see the property. If you cannot see it there, probably the OpenAccess Addin is not loaded, this would explain the cause for the error. If it is there, continue with the next steps;
    - Rebuild the projects in the following order:
    1. Telerik.SalesDashboard.Data;
    2. Telerik.SalesDashboard.Common;
    3. All projects under the Silverlight/Modules folder;
    4. Telerik.SalesDashboard.Shell;
    - Set the Telerik.SalesDashboard.Web as startup project and the Telerik.SalesDashboard.ShellTestPage.aspx as startup page, then run the project;

    Please follow these steps and see if any of them fails on your side;

    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.
  3. DevCraft banner
  4. Varun Jain
    Varun Jain avatar
    6 posts
    Member since:
    Apr 2010

    Posted 03 Jun 2010 Link to this post

    Hi Alexander,

    Sorry to say, But i'm using Open Access version 2010.1.312.2. There is no such version like 2010.1.414.3. On Building the Data Project. It gives an error.

    "Error 1 OpenAccess Error: Version mismatch: The assembly Telerik.SalesDashboard.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null references the Telerik.OpenAccess runtime 2010.1.414.3. The Telerik.OpenAccess enhancer version is 2010.1.312.2. Please rebuild the assembly or use theTelerik.OpenAccess enhancer version 2010.1.414.3 D:\Varun Collection\Telerik.SalesDashboard_SL_2010_1_422_Dev\Telerik.SalesDashboard\Telerik.SalesDashboard.Data\obj\Debug\Telerik.SalesDashboard.Data.dll -1" 

    Could you tell me what the problem could be. Do I have to install SQL Server? If yes, which version should I install.

    During the installation of ORM, it usually ask for the sql server instance giving options 1. (LOCAL)  2. (LOCAL)\SQLEXPRESS. Which instance should I choose, having not installed SQL server, except for the one which is being installed along with Visual studio 2010.

    Thanks and Regards,
    Varun Jain
  5. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 04 Jun 2010 Link to this post

    Hi Varun Jain,

    In order to run the demo with version of OpenAccess different from 2010.1.414.3 (this is our latest internal build before the Q1 Service pack 1) you have to update the project references. First please delete the Binaries/OpenAccess.2010.1.414.3 folder that contains the old references. Then run the Check Settings wizard from the Telerik -> OpenAccess -> Configuration -> Check Settings menu. Click Check, then Fix and the references will be automatically updated to the installed version. When you are done rebuild the projects in the order I mentioned in my previous post.
    The demo is configured to run on a local SqlServer with address (LOCAL)\SQLEXPRESS2008. The server installed with VS2010 should do the job, just please check if its name is different from SQLEXPRESS2008 and update this setting in the Web.config file of the Telerik.SalesDashboard.Web project if necessary.
    Hope that helps.

    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.
  6. Varun Jain
    Varun Jain avatar
    6 posts
    Member since:
    Apr 2010

    Posted 04 Jun 2010 Link to this post

    Hi,

    Thanks for all the help. Everything is running fine.

    Just wanted to ask. Can this Application be hosted on IIS 7 or not. If yes, what is the step-by-step procedure of hosting this app and WCF service too.

    Thanks for all the help.
    Varun Jain
  7. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 07 Jun 2010 Link to this post

    Hello Varun Jain,

    The project surely can be deployed. I do not know if your setup is similar to mine (Windows 7 64bit) but here are the steps I performed to get it working:
    Make sure the project is working in Visual Studio. Copy the Telerik.SalesDashboard.Web folder to the C:\inetpub\wwwroot\ directory. It is important for the WCF service to live somewhere inside this directory. Copy the following OpenAccess assemblies to the bin folder:
    - Telerik.OpenAccess.dll;
    - Telerik.OpenAccess.Config.dll;
    - Telerik.OpenAccess.Runtime.dll;
    - Telerik.OpenAccess.Adonet2.dll;
    - Telerik.OpenAccess.35.Extensions.dll;

    Now you have to configure the web site. Open the IIS Manager and add a new Application pool with name SalesDashboard, set the target framework to 4.0 and the Managed pipeline mode to Classic. Then add a new web site with a proper name and select the SalesDashboard application pool to be used. Set the path to the demo's folder and choose port 8000. Now you should make sure that the folder permissions allow reading and executing the files underneath. Please also update the service configuration so it contains the proper deployment address:
    <services>
          <service behaviorConfiguration="Telerik.SalesDashboard.Web.SalesDashboardServiceBehavior" name="Telerik.SalesDashboard.Web.SalesDashboardService">
            <endpoint address="" binding="basicHttpBinding" contract="Telerik.SalesDashboard.Web.SalesDashboardService" />
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:8000/" />
              </baseAddresses>
            </host>
          </service>
        </services>

    I do not know if this problem would occur on your machine but it turned out that I need to add a handler mapping for .svc files. While the web site is selected in the treeview on the left, open the Handler Mappings settings dialog and look for mapping names starting with svc-ISAPI. I had only two of them that point to the 2.0 asp assemblies and needed to add another for the 4.0 framework. If you do not have such mapping either, click on Add script map and enter the settings below, then save the mapping:
    Request path: *.svc
    Executable: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
    Name: svc-ISAPI-4.0-32bit

    This should be enough to run the web site, the last step is to configure the database settings. As I had some problems with the dynamic attachment of the NorthwindOA database I suggest you to manually attach it to your sql server via Management Studio (if it is not already there) and remove the <connectionParams>AttachDbFilename=|DataDirectory|\NORTHWND.MDF</connectionParams> node from web.config file. Then select the SalesDashboard application pool in the IIS Manager, open the Advanced settings dialog and change the Identity option to Local System. This way you will be able to log on to the database server with your windows credentials.

    When the web site is up and running you can remove the unnecessary files (like project files and source code) from its folder.

    Greetings,
    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.
  8. Tonya
    Tonya avatar
    12 posts
    Member since:
    Mar 2008

    Posted 10 Jun 2010 Link to this post

    I'm not using a sample project, but rather a project another developer worked on.  I have OpenAccess ORM version 2009.2.701.5 installed.  When I run the project I get the error: Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction.  I tried setting Enhancing = true but that caused the project not to build.  I'm thinking I didn't need to mess with that step because I have OpenAccess ORM installed locally.  What else can I do to resolve this error?

    Thanks,
    Tonya
  9. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 10 Jun 2010 Link to this post

    Hi Tonya,

    The Enhancing property should be definitely set to True. Maybe the problem is somewhere else. Could you please share with us what was the error you got while building the project?

    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.
  10. Tonya
    Tonya avatar
    12 posts
    Member since:
    Mar 2008

    Posted 10 Jun 2010 Link to this post

    Hi Alexander,

    I posted about the error here: http://www.telerik.com/community/forums/orm/design-time/error-building-when-enhancing-is-turned-on.aspx

    The error is: OpenAccess Error: Unable to create type 'SW.CW3.DAL.Accessory' : Could not load type 'SW.CW3.DAL.Floor' from assembly 'SW.CW3.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

    The project builds fine with Enhancing set to false.

    Thanks,
    Tonya



  11. Jørn Topnes
    Jørn Topnes avatar
    4 posts
    Member since:
    May 2010

    Posted 23 Jun 2010 Link to this post

    I just had the same problem with the current trialversion, but it seems fixed when I edited my orm.csproj in notepad, setting OpenAccess_UpdateDatabase="true" and OpenAccess_Enhancing="true" under the visualstudio settings. In vs2010 project properties, the optimize code remains unchecked though. It might be worth trying if everything else fails. -Jørn 
  12. Daming
    Daming avatar
    1 posts
    Member since:
    Jun 2010

    Posted 02 Jul 2010 Link to this post

    please help.

    I just installed the latest Silverlight 4 Tools for Visual Studio; and got the same error while running Dashboard demo code. (and I checked that I got OpenAccess.2010.1.414.3).

    I can not see Enhancing property of the Telerik.SalesDashboard.Data project, as you mentioned that  probably the OpenAccess Addin is not loaded, how do I load the OpenAccess Addin?

    Thx,

    Flatliner

  13. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 06 Jul 2010 Link to this post

    Hi Daming,

    If you can see the OpenAccess submenu at the bottom of the project context menu in the Solution explorer, that means the addin is loaded properly and you should be able to see the Enhancing project property by pressing F4.
    If you cannot see the menu there, you can try to enable it from the Tools -> Add-in manager dialog. If the addin is not listed there, please try to uninstall and install the product again. Hope that helps.

    Greetings,
    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
DevCraft banner