'Telerik.OpenAccess.SPI.dataobjects.PersistenceCapable' is defined in an assembly that is not referenced.
All,
Yesterday I was working on custom widgets which
accessed custom modules(built with 4.4 new module builder). I keep running
into an error when I try to access the modules collection as shown
below.
Type speakersType = TypeResolutionService.
I'm seeing this same error.
Visual Studio 2010
MVC 4 Beta Mobile Application
OpenAccess Q1 2012
Hi,
This error typically occurs when there is a problem with the version of OpenAccess that the custom module is trying to access.
Go to the module project, right click the project name and "Unload Project". The project is now unloaded, right click the unloaded project and select "Edit .csproj file".
At the bottom of the .csproj file you will find the path where the module is trying to find the enhancer.
<
ProjectExtensions
>
<
VisualStudio
>
<
UserProperties
OpenAccess_EnhancementOutputLevel
=
"1"
OpenAccess_UpdateDatabase
=
"False"
OpenAccess_Enhancing
=
"False"
OpenAccess_ConnectionId
=
"DatabaseConnection1"
OpenAccess_ConfigFile
=
"App.config"
/>
</
VisualStudio
>
</
ProjectExtensions
>
<
PropertyGroup
>
<
PostBuildEvent
>
</
PostBuildEvent
>
<
PreBuildEvent
>
</
PreBuildEvent
>
</
PropertyGroup
>
<
PropertyGroup
>
<
OpenAccessPath
>C:\Program Files (x86)\Telerik\Sitefinity 5.0\SDK\Content\Common\Dependencies
</
OpenAccessPath
>
</
PropertyGroup
>
<
Import
Condition
=
"Exists('$(OpenAccessPath)\OpenAccess.targets')"
Project
=
"$(OpenAccessPath)\OpenAccess.targets"
/>
</
Project
>
Enter the path to your enhancer from the SDK. Reload the module project and build it. Now the module is enhanced with the correct version of OpenAccess.
Note in the element <OpenAccessPath> you may find a macro $(SolutionDir)..\..\..Common\Dependencies, don`t worry changing it with the full path to the enhancer.
I hope this will help you. Write back if you encounter a problem along the way.
Greetings,