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

Sample appliation olympic-game getting Error

3 Answers 54 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.
Nani
Top achievements
Rank 2
Nani asked on 03 Jun 2013, 03:13 PM
HI ,

I am download code from this (Open Access ORM) link. Its getting error . That is " Cannot find resource OlympicGames.rlinq embedded in assembly OlympicGames.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"

Please find Error images and also sample application from below link

http://sdrv.ms/11zirbX


Regrads,
Nani.

3 Answers, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 06 Jun 2013, 10:26 AM
Hi Nani,

Thank you for the project and the screenshots.

I tested the provided project using the following workflow:
- Download the project from your link
- Apply the settings described in the README.txt file
- Rebuild the solution
- Run the application in Internet Explorer
And it worked as expected.

Then I tried to reproduce the behaviour you experience by setting Build Action = None for the .rlinq file from the Properties window in Visual Studio and the error appeared. I returned Build Action = OpenAccessDeploy and the application was running successfully again.

So, my best guess about the cause for the error would be that the value of the Build Action property for the .rlinq file on your side is different than OpenAccessDeploy. In that connection, could you please check this setting on your side? If, indeed, Build Action is None (or other), could you please set it to OpenAccessDeploy and test the application again?

If you continue to experience the error after that, could you please send us a sample code that demonstrates it?

Additionally, by default OpenAccess ORM sets Build Action = OpenAccessDeploy for the .rlinq files. The point is that during the build process the .rlinq file is included in the assembly as a resource, so that the information in it can be used every time the context is instantiated. It contains an XML representation of the model and participates in the creation of the Metadata model of the context.

I hope that helps. I am looking forward to your feedback.


Regards,
Doroteya
Telerik
OpenAccess Samples Kit boasts 50+ sample applications providing diverse real-life business solutions. Click to read more and see OpenAccess ORM in action.
0
Nani
Top achievements
Rank 2
answered on 06 Jun 2013, 03:33 PM
Hi Doroteya ,

Thanks for given reply. But in this application by default Build Action is set as  OpenAccessDeploy. Please find image this link.
Doroteya, a small suggestion if have attached image concept it will very nice.

Thx,
Nani



0
Doroteya
Telerik team
answered on 12 Jun 2013, 01:08 PM
Hi Praveen,

Thank you for the additional details. It seems that the file is set up correctly in Visual Studio on your side. Therefore, I would suggest to you to check if the project that holds it is setup to use the OpenAccess Enhancer tool. If it is not, you can adjust it manually, according to the details provided in this knowledge base article.

Additionally, please kindly find attached to this message, a screenshot that demonstrates the properties of the .rlinq file on my side.

I hope this helps. I am looking forward to your feedback.


Regards,
Doroteya
Telerik
OpenAccess Samples Kit boasts 50+ sample applications providing diverse real-life business solutions. Click to read more and see OpenAccess ORM in action.
Tags
Data Access Free Edition
Asked by
Nani
Top achievements
Rank 2
Answers by
Doroteya
Telerik team
Nani
Top achievements
Rank 2
Share this question
or