Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anja 13 posts 118 karma points
    Jul 20, 2017 @ 11:08
    Anja
    0

    Help on Terratype

    Hello,

    I am using version 7.6.1 and try to implement a map using Terratype to display a Google maps Routeplanner on our contact page.

    Installation, data type and document type were no problem; the template is.

    So far my template looks like this

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @using ContentModels = Umbraco.Web.PublishedContentModels;
    @using Terratype;
    @using Newtonsoft;
    @{  Layout = "SiteLayout.cshtml"; }
    
    [...]
    
    @Html.Terratype("goHere")
    

    Using this I get an ASP server error with the Exception Details: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.

    First lines of StactTrace: [JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.] Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) +271 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) +82 Newtonsoft.Json.Linq.JObject.Parse(String json) +7 Terratype.TerratypeConverter.ConvertDataToSource(PublishedPropertyType propertyType, Object source, Boolean preview) +304

    What am I doing wrong here?

    Regards Anja

Please Sign in or register to post replies

Write your reply to:

Draft