I use GetNewObjectScope(); in the project containing dal access code and persistent classes.I get this error.
Error 102 OpenAccess: C:\Users\hasan.ozgilik\Desktop\OpenAccess\Entity\Entity\obj\Debug\Entity.dll: Error: Could not resolve: Telerik.OpenAccess.35.Extensions, Version=2010.1.527.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
//This cause runtime error
Database db = Database();
IObjectScope newScope = db.GetObjectScope();
Telerik.OpenAccess: No enhanced assembly has been found for meta-data construction. This may be caused by a missing app.config file (use app.config as embedded resource then) or by an insufficient references section in the configuration file (add the referenced enhanced assemblies there too) or by a wrong enhancement setting; please check your configuration.
I see that this error is the result of usage
IObjectScope scope = ObjectScopeProvider1.GetNewObjectScope();
code from project containing dal access code and persistent classes. When I write this code from another project no problem.
I must use it in same project. What is the configuration or another solution. I attached the screenshots of errors
Thanks for helps.