This is a migrated thread and some comments may be shown as answers.

How to deploy dataAccess without installation?

3 Answers 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
deepBlue
Top achievements
Rank 1
deepBlue asked on 01 Oct 2015, 06:53 PM

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 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 unless I install the telerik data If I install the data access then it works.

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

Thanks for your help.

3 Answers, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 06 Oct 2015, 10:36 AM
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.
0
deepBlue
Top achievements
Rank 1
answered on 08 Oct 2015, 06:35 AM

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.

0
Doroteya
Telerik team
answered on 12 Oct 2015, 01:50 PM
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.
Tags
General Discussions
Asked by
deepBlue
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
deepBlue
Top achievements
Rank 1
Share this question
or