Error executing template "/Designs/SkanskaMaskin/Paragraph/_form_retur.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Softgear.SkanskaMaskin.Data.Extensions.ProjectInfoExtensions.renderProjectData(ItemType_ProjectInfo self) in D:\a\1\s\Softgear.SkanskaMaskin.Data\Extensions\ProjectInfoExtensions.cs:line 105
   at Softgear.SkanskaMaskin.Data.Entities.Rental.Return.renderReturnForm() in D:\a\1\s\Softgear.SkanskaMaskin.Data\Entities\Rental\Return.cs:line 24
   at CompiledRazorTemplates.Dynamic.RazorEngine_e4e0a0b319c443c1a9333d08986f717d.Execute() in D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\Paragraph\_form_retur.cshtml:line 62
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using Softgear.SkanskaMaskin.Data.Business 3 @using Softgear.SkanskaMaskin.Data.Entities.Rental 4 @using Softgear.SkanskaMaskin.DataAccess.Helpers 5 6 @{ 7 var hbh = new HandleBarsHelper(); 8 9 var customerCenters = CacheManager.GetFromCache<Dynamicweb.Security.UserManagement.UserCollection>(60, "customerCentersGroup4", () => Dynamicweb.Security.UserManagement.User.GetUsersByGroupID(4)); 10 var choose = new Dynamicweb.Security.UserManagement.User(); 11 12 var storeList = (from user in customerCenters.Where(y => y.Active) 13 select new 14 { 15 value = Convert.ToString(user.ID), 16 text = user.Name 17 }).OrderBy(x => x.text).ToList(); 18 19 storeList.Insert(0, new { value = "", text = Translate("Choose_KC", "Välj kundcenter") }); 20 21 var storesData = new 22 { 23 baseUrl = "/service/storeinfo?storeid=", 24 name = "store", 25 required = "required", 26 className = "Control--light", 27 items = storeList.ToArray() 28 }; 29 30 var project = ProjectManager.GetProject(AccountManager.getActiveProjectCode()); 31 var returnForm = new Return(project); 32 } 33 34 <form class="js-form" action="/dashboard/returer/ny" method="get" onsubmit="disableSubmitReturnButton()"> 35 <div class="Grid Grid--equalPush"> 36 <div class="Grid-cell"> 37 <div class="Grid Grid--withGutter"> 38 <div class="Grid-cell u-sizeFull"> 39 <div class="Type"> 40 <h2 class="Type-h1">Bekräfta och beställ retur</h2> 41 </div> 42 </div> 43 <div class="Grid-cell u-sizeFull u-md-size1of2 u-lg-size1of2"> 44 Välj kundcenter 45 </div> 46 <div class="Grid-cell u-sizeFull u-md-size1of2 u-lg-size1of2"> 47 @hbh.render("control/index.hbs", storesData) 48 </div> 49 </div> 50 </div> 51 <div class="Grid-cell"> 52 <div class="Grid Grid--withGutter"> 53 <div class="Grid-cell u-sizeFull"> 54 @returnForm.renderSummary() 55 </div> 56 </div> 57 </div> 58 <div class="Grid-cell"> 59 <div class="Grid Grid--withGutter"> 60 <div class="Grid-cell"> 61 <div class="Byline"> 62 @returnForm.renderReturnForm() 63 </div> 64 </div> 65 </div> 66 </div> 67 <div class="Grid-cell"> 68 <div class="Grid Grid--withGutter"> 69 <div class="Grid-cell u-sizeFull"> 70 <div class="Type"> 71 <h3 class="Type-h3">Övrig information</h3> 72 </div> 73 </div> 74 <div class="Grid-cell u-sizeFull"> 75 <div class="Input Input--fill"> 76 <label for="return-message" class="Input-label">Meddelande</label> 77 <textarea id="return-message" class="Input-textarea js-formInputField" name="return-message" data-controller="form-input" rows="3" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 97px;"> </textarea> 78 </div> 79 </div> 80 </div> 81 </div> 82 <input type="hidden" name="project" value="58460"> 83 <div class="Grid-cell"> 84 <div class="Grid Grid--withGutter"> 85 <div class="Grid-cell u-size1of2 u-textLeft"> 86 <button class="Button Button--tertiary js-overlayClose" type="submit">Avbryt</button> 87 </div> 88 <div class="Grid-cell u-size1of2 u-textRight"> 89 <button id="js-submit-return-button" class="Button" type="submit">Beställ retur</button> 90 </div> 91 </div> 92 </div> 93 </div> 94 </form>