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.