Jobs Module tutorial with Sitefinity 4.2 not working
I have built the Jobs Module using the exact code provided in the SDK Samples directory and I did modify the project file to include the following.
<
ProjectExtensions
>
<
VisualStudio
>
<
UserProperties
OpenAccess_EnhancementOutputLevel
=
"1"
OpenAccess_UpdateDatabase
=
"False"
OpenAccess_Enhancing
=
"False"
OpenAccess_ConnectionId
=
"DatabaseConnection1"
OpenAccess_ConfigFile
=
"App.config"
/>
</
VisualStudio
>
</
ProjectExtensions
>
<
PropertyGroup
>
<
OpenAccessPath
>$(SolutionDir)C:\Program Files (x86)\Telerik\Sitefinity 4.2\SDK\Content\Common\Dependencies\</
OpenAccessPath
>
</
PropertyGroup
>
<
Import
Condition
=
"Exists('$(OpenAccessPath)\OpenAccess.targets')"
Project
=
"$(OpenAccessPath)\OpenAccess.targets"
/>
No metadata has been registered for class Jobs.Model.JobApplication. (This usually indicates, that either this class is not declared persistent or it is declared persistent but not enhanced.
Hi Kris,
The module was tested and works with 4.2. I think the problem is an incorrect path to the enhancer. The path "$(SolutionDir)C:\Program Files (x86)\Telerik\Sitefinity 4.2\SDK\Content\Common\Dependencies\" from the file you've sent is neither absolute, nor relative.
$(SolutionDir) gets substituted with the path to your solution, so this creates an invalid path. Please leave only the rest and remove "$(SolutionDir)" from the project file. Let us know if it works.
Yeah that was it. For whatever reason the default csproj file didnt work but if I remove the $(SolutionDir)
and put in the exact path it worked.
Thanks