Exception in template (Designs\SkanskaMaskin\Paragraph\_Form_Share_List_Confirm.cshtml): Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at CompiledRazorTemplates.Dynamic.faddadddcebbadfbe.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@using Softgear.SkanskaMaskin.Se.Helpers; @using Softgear.Skanskamaskin.Excel; @using Newtonsoft.Json; @using Newtonsoft.Json.Linq; @using Softgear.SkanskaMaskin.Data.Business @using System.Web; @using System.IO; @{ String sharelistName; String sharelistEmail; String sharelistReceiver; String sharelistMessage; String input = new StreamReader(HttpContext.Current.Request.InputStream).ReadToEnd(); JObject json = JObject.Parse(input); sharelistEmail = HttpContext.Current.Server.UrlDecode(Convert.ToString(json["sharelist-email"])); sharelistReceiver = HttpContext.Current.Server.UrlDecode(Convert.ToString(json["sharelist-receiver"])); sharelistMessage = HttpContext.Current.Server.UrlDecode(Convert.ToString(json["sharelist-message"])); sharelistName = HttpContext.Current.Server.UrlDecode(Convert.ToString(json["sharelist-name"])); sharelistMessage = sharelistMessage.Replace("\n", "<br/>"); var service = new Excel(); var order = Dynamicweb.eCommerce.Common.Context.Cart; var fileFullName = IoHelper.GetTemporaryFileName(); var fileData = service.CreateOrderExcel("Order", order, fileFullName); var memoryStream = IoHelper.GetAsMemoryStream(fileFullName); var manager = new EmailManager(); manager.SendOrderFile(memoryStream, sharelistReceiver, "noreply@maskinuthyrning.skanska.se", order.ID, "Orderlista", "Jag har skapat en orderlista hos Skanska Maskin. Ta gärna en titt!"); // TODO: Ändra till selectedStore.mail IoHelper.DeleteFile(fileFullName); /* Skicka mailet*/ //MailManager.Send(sharelistReceiver, sharelistEmail, "", "Orderlista", sharelistMessage, null); } <div class="Grid Grid--equalPush Grid--withGutter"> <div class="Grid-cell u-sizeFull u-md-size1of2 u-lg-size1of2"> <div class="Type"> <h2 class="Input-aligned">Din orderlista är delad!</h2> <p>Här är informationen som skickades:</p> </div> </div> <div class="Grid-cell Grid--push u-sizeFull u-md-size1of2 u-lg-size1of2"> <div class="Type"> <h4>Ditt namn</h4> <p>@sharelistName</p> </div> </div> <div class="Grid-cell u-sizeFull u-md-size1of2 u-lg-size1of2"> <div class="Type"> <h4>Din-epost</h4> <p>@sharelistEmail</p> </div> </div> <div class="Grid-cell u-sizeFull u-md-size1of2 u-lg-size1of2"> <div class="Type"> <h4>Mottagarens-epost</h4> <p>@sharelistReceiver</p> </div> </div> <div class="Grid-cell u-sizeFull"> <h4>Meddelande</h4> <div class="Type u-textNoWrap"> <p>@sharelistMessage</p> </div> </div> </div> <div class="Grid Grid--withGutter"> <div class="Grid-cell u-sizeFull u-textRight"> <button class="Button js-overlayClose">Ok, jag förstår</button> </div> </div>