Sample appliation olympic-game getting Error

4 posts, 0 answers
  1. Nani
    Nani avatar
    10 posts
    Member since:
    Nov 2011

    Posted 03 Jun 2013 Link to this post

    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.
  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 06 Jun 2013 Link to this post

    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.
  3. DevCraft banner
  4. Nani
    Nani avatar
    10 posts
    Member since:
    Nov 2011

    Posted 06 Jun 2013 Link to this post

    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



  5. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 12 Jun 2013 Link to this post

    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.
Back to Top