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

Remove reference to OpenAccess

5 Answers 175 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chamin
Top achievements
Rank 1
Chamin asked on 18 Jun 2015, 11:01 AM
I have removed
all reference given to OpenAccess in my asp.net MVC project. Now project is working perfectly in visual studio. When I published project in IIS, it is raised following error when retrieving data from EF. If I put Openaccess dll’s in to bin, project is working fine in IIS.

Note: Even I couldn’t find word ‘OpenAccess’ in entire project.

Exception
message: Could not load file or assembly 'Telerik.OpenAccess,Version=2014.3.1027.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one
of its dependencies. The system cannot find the file specified.


 

Then I have uninstalled the DataAccess from my development machine. Then I published project on IIS. Now it is working better.

But when I opening the solution from Visual Studio, it raised an error.

 In that logged file I have seen following error.

<entry>
    <record>333</record>
    <time>2015/06/18 08:49:37.905</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [EntityDiagramsPackage]</description>
    <guid>{0D646C43-CED0-421B-8E65-B293E8BDA85B}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load file or assembly 'file:///C:\Program Files (x86)\Telerik\DATAAC~1\dsl2013\Telerik.OpenAccess.Dsl.DslPackage.12.dll' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>


So please advise me how to remove reference given to OpenAccess.

5 Answers, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 23 Jun 2015, 06:24 AM
Hello Chamin,

I am sorry to hear that you are experiencing issues with Data Access. Following are the answers to your questions:

The Telerik.OpenAccess reference error
It is possible that the assembly is a dependency of some other component in your application. For example:
a) If you use the persistent classes generated by Data Access when you consume Entity Framework and these classes reside in a separate class library (along with the rest of a Data Access model), than this class library will require the Telerik.OpenAccess assembly implicitly.
b) If your MVC application utilizes the Telerik Reporting tool. Reporting internally uses Data Access for retrieving data and again requires the Telerik.OpenAccess assembly implicitly.

In any of these cases, you need to isolate which component of the application refers to the assembly and to deal with it accordingly, in order for the error to be resolved.
On your development machine, the application worked because Data Access was installed.

The failure of Visual Studio to load EntityDiagramsPackage
In order to resolve this error you need to run the devenv / setup command in Visual Studio's Developer Command Prompt.

I hope this helps. Let us 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
Chamin
Top achievements
Rank 1
answered on 23 Jun 2015, 09:34 AM

Hi Doroteya 

I got following error when I run devenv / setup command in Visual Studio's Developer Command Prompt

 

The following files were specified on the commandline:

setup 
These files could not be found and will not be loaded

 

Thanks,

Chamin

0
Chamin
Top achievements
Rank 1
answered on 23 Jun 2015, 09:54 AM

Hi Doroteya 

for VS issue has been fixed by devenv / setup (removed spaces between words).

But still having the open accesses reference issue in IIS if published the project from data access installed PC.

I have search every where for find any word 'Telerik' or 'OpenAccess' in entire solution, even I have search in project files(XML) as well.

 

Thanks,

Chamin

0
Doroteya
Telerik team
answered on 24 Jun 2015, 08:05 PM
Hello Chamin,

I am glad that at least one of the problems is resolved.

Regarding the reference issue, I am afraid that a text search throughout the solution will not point you in the direction of the dependency. Most probably, your web application contains a reference to an assembly, which refers to Telerik.OpenAccess.dll. Therefore I suggest to you to go through the references and check if any of them consumes Data Access. You can safely skip the references to .NET assemblies like Microsoft.CSharp and System.Data.

I hope this helps. Let us know if you need additional information.


Regards,
Doroteya
Telerik
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
0
Chamin
Top achievements
Rank 1
answered on 24 Jun 2015, 09:15 PM

Dear Doroteya,

I have already removed those telerik references in my project.

Thanks,

Chamin

Tags
Data Access Free Edition
Asked by
Chamin
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
Chamin
Top achievements
Rank 1
Share this question
or