Hello,
After setup demo sitefinty site successfully. We got "Object reference not set to an instance of an object."
[NullReferenceException: Object reference not set to an instance of an object.] Telerik.Sitefinity.Configuration.Config.VerifySectionRegistered(Type sectionType, String sectionName) +58 Telerik.Sitefinity.Configuration.Config.GetSectionInternal(Type sectionType, Boolean safeMode, String sectionName) +33 Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Type sectionType, Boolean safeMode, String sectionName) +143 Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Boolean safeMode) +99 Telerik.Sitefinity.Web.CustomErrorPages.ErrorPagesHandler.get_Mode() +29 Telerik.Sitefinity.Web.CustomErrorPages.ErrorPagesHandler.ProcessRequest() +34 Telerik.Sitefinity.Web.SitefinityHttpModule.Context_EndRequest(Object sender, EventArgs e) +658 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73
Please help me how to resolve this error. I miss any thing in that.
Can you please provider some more info on how you setup the project. Did you create the project with Nuget, Project Manager? When does this error occur? Was it during project initialization or after the site was runnning? Were you working with the custom errors page module by chance?
Thanks for replay.
I setup project through project manager.
Was it during project initialization or after the site was runnning? not it is occur after site running.
I don't do anything in this. Just create custom webtemplates and it working fine. For the next day when i open project into vs2015. It is give me mvc related error.
Like ...
Error CS1705 Assembly 'Telerik.Sitefinity.Frontend' with identity 'Telerik.Sitefinity.Frontend, Version=12.2.7200.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' uses 'System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc' with identity 'System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' SitefinityWebApp E:\test\Example\Sitefinity\SPOM\SPOM\obj\CodeGen\ResourcePackages\Bootstrap4\MVC\ResourcePackages\Bootstrap4\MVC\Views\AccountActivation\AccountActivation.AccountActivation.cshtml 8 Active
So i update mvc through nuget
<packages>
<package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net472" />
<package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net472" />
<package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net472" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net472" />
<package id="RazorEngine" version="3.10.0" targetFramework="net472" />
</packages>
After that i build project so it is successfully but when i run it is give object reference error.