Error while inserting data in custom module.
Hello
I have create my own custom module named StudentsModule following the steps as specified in products module. Module is installed but when i try to create record from the backend of the module. I get the following exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at OpenAccessRuntime.Relational.metadata.RelationalTable.createPkEqualsParamExp(SelectExp se)
I have sdk of SF version 5.2 so i have set the open access target path as
<OpenAccessPath>C:\Program Files\Telerik\Sitefinity 5.2\SDK\Content\Common\Dependencies</OpenAccessPath>
but the sitefinity application is built in sitefinity version 5.1. Is the error coming because of this version difference?
Hello,
The stack trace of the error indicates a problem in metadata which is an inication that the module is not enhanced
at OpenAccessRuntime.Relational.metadata.RelationalTable.createPkEqualsParamExp(SelectExp se)
<
Import
Project
=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<
ProjectExtensions
>
<
VisualStudio
>
<
UserProperties
OpenAccess_ConfigFile
=
"App.config"
OpenAccess_ConnectionId
=
"DatabaseConnection1"
OpenAccess_Enhancing
=
"True"
OpenAccess_UpdateDatabase
=
"False"
OpenAccess_EnhancementOutputLevel
=
"1"
/>
</
VisualStudio
>
</
ProjectExtensions
>
<
PropertyGroup
>
<
PostBuildEvent
>
</
PostBuildEvent
>
<
PreBuildEvent
>
</
PreBuildEvent
>
</
PropertyGroup
>
<
PropertyGroup
>
<!-- enter the path here -->
<
OpenAccessPath
>C:\Program Files\Telerik\Sitefinity 5.2\SDK\Content\Common\Dependencies</
OpenAccessPath
>
</
PropertyGroup
>
<
Import
Condition
=
"Exists('$(OpenAccessPath)\OpenAccess.targets')"
Project
=
"$(OpenAccessPath)\OpenAccess.targets"
/>
</
Project
>