GeoJSON + your sample not working

3 posts, 1 answers
  1. Naografix
    Naografix avatar
    13 posts
    Member since:
    Jan 2015

    Posted 08 Jan 2015 Link to this post

    Hello,


    I have a problem with my binding GeoJSON, indeed I followed your tutorial and your documentation, but nothing works. It's been 2 days since I test and I don't understand where is my error. Same with your sample (live-demo)

    Can you help me? Here is my code: http://puu.sh/eepPn/4e9c502a49.png

    Here is the result: http://puu.sh/eepUv/ad556aeae5.png

    Plz help me !


  2. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 09 Jan 2015 Link to this post

    Hello,

    I see referencing the *.json file as script, but this is not a JavaScript file, and therefore I suggest removing this line:
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="contries.json"></asp:ScriptReference>

    Moreover, this file is not part of the Telerik.Web.UI assembly.

    To further investigate, you can check the browser console for errors. Note that if you are running the application with IIS 7.5 or less, a mime type for json files should be added in the web.config. You can find more relevant details about this in this Stackoverflow forum thread.

    Regards,
    Ianko
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Naografix
    Naografix avatar
    13 posts
    Member since:
    Jan 2015

    Posted 09 Jan 2015 in reply to Ianko Link to this post

    Hey,

    And this :

    <system.webServer>
        <staticContent>
          <remove fileExtension=".json" />
          <mimeMap fileExtension=".json" mimeType="application/json" />
        </staticContent>
    </system.webServer>

    In Web.config :)

    Thx !
Back to Top