How to deploy dataAccess without installation?

4 posts, 0 answers
  1. deepBlue
    deepBlue avatar
    7 posts
    Member since:
    Mar 2015

    Posted 01 Oct 2015 Link to this post

    Hi,

    We develop our project with data access Q1 2015 (visual designer) version and have some problems about deploying the project to end-user PC. The telerik data access that is installed on development PC is working, but it is not working at the end-user PC. Copying the all data access dll files to the output folder of the project does not solve the problem, unless I install the telerik data access . If I install the data access then it works.

    I think there is no need to install telerik data access installation, so what should I do to run it at the end-user PC?

    Thanks for your help.

  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 06 Oct 2015 Link to this post

    Hi deepBlue,

    General guidance for the deployment with Data Access is available in this blog post.

    In your particular situation, I would suggest you configure the application as described in the post and run it for a test. If the application produces runtime errors afterwords, could you send me their text messages for a review on our side.

    In any case, let me know how the things on your side are.

    Regards,
    Doroteya
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  3. DevCraft banner
  4. deepBlue
    deepBlue avatar
    7 posts
    Member since:
    Mar 2015

    Posted 08 Oct 2015 in reply to Doroteya Link to this post

    Hi,

    I check the blog and apply the steps but the problem still exists. I add the references (Telerik.OpenAccess.dll, Telerik.OpenAccess.35.Extensions.dll, Telerik.OpenAccess.Config.dll, Telerik.OpenAccess.Runtime.dll files) and set to true their Copy Local properties and set to false their Specific Version properties. Then I rebuild the project and see all the dll files in the output folder. (By the way I have still no data​Access installation) Then I try to start the project and receive the errors below; 

     

    Message=The type initializer for 'DemoProject.EntitiesModel' threw an exception.

           Source=DemoProject
           TypeName=DemoProject.EntitiesModel
           StackTrace:
                at DemoProject.EntitiesModel..ctor()
                at DemoProject.ViewModels.MainViewModel..ctor() in c:\Users\user\Desktop\DemoProject\DemoProject\ViewModels\MainViewModel.cs:line 11
                at DemoProject.MainWindow..ctor() in c:\Users\user\Desktop\DemoProject\DemoProject\MainWindow.xaml.cs:line 28
           InnerException: System.ArgumentException
                HResult=-2147024809
                Message=Cannot find resource EntitiesModel1.rlinq embedded in assembly DemoProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
                Source=Telerik.OpenAccess
                StackTrace:
                     at Telerik.OpenAccess.Metadata.XmlMetadataSource.FromAssemblyResource(Assembly assembly, String xmlFileName)
                     at Telerik.OpenAccess.Metadata.XmlMetadataSource.FromAssemblyResource(String xmlFileName)
                     at DemoUfuk.EntitiesModel..cctor() in c:\Users\user\Desktop\DemoProject\DemoProject\EntitiesModel1.cs:line 31​

     Best Regards.

  5. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 12 Oct 2015 Link to this post

    Hi deepBlue,

    Based on the provided information, I guess that you are trying to move the code of the application from one machine to another rather than deploying an already compiled application. I would also speculate that the application will be developed on the machine where you move the code base. If my current assumptions are correct, you can find the appropriate configuration for this scenario on this documentation article. Note that with the configuration described in the article, you will not be able to edit the .rlinq file on the target machine.

    I hope this helps. Let me know if you need further details.


    Regards,
    Doroteya
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Back to Top