# Default Swagger asp net core 3,1 weather forecast fails

**URL:** <https://forum.radzen.com/t/default-swagger-asp-net-core-3-1-weather-forecast-fails/5533>\
**Category:** Blazor Server\
**Created:** [November 6, 2020, 3:36pm UTC](https://forum.radzen.com/t/default-swagger-asp-net-core-3-1-weather-forecast-fails/5533 "2020-11-06T15:36:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![judgy](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/a698b9/32.png) [@judgy](https://forum.radzen.com/u/judgy)\
**Post date:** [November 6, 2020, 3:36pm UTC](https://forum.radzen.com/t/default-swagger-asp-net-core-3-1-weather-forecast-fails/5533/1 "2020-11-06T15:36:04Z")

</div>

I'm just evalutating Radzen for generating a Blazor server side application with Asp Net core 3.1 (Swagger) backend.

I've tried it with an default asp net core 3.1 weather forecast project using swagger.

But Radzen cannot create the datasource:  
[2020-11-06 16:24:32.306] [error] SyntaxError: Unexpected token \< in JSON at position 0  
at JSON.parse ()  
at file:///C:/Program%20Files/Radzen/resources/app.asar/static/renderer.js:290:3131276

Are there any compatibilty issues with Asp Net core?  
Is there any best practice for developing a Blazor/Asp Net core application with Radzen?  
Should ODATA be prefered over Swagger to generate the data source?

 ![grafik](https://forum.radzen.com/uploads/default/original/2X/8/85a1d66c6a33a4fdd6900caf717192e41fb47510.png)

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 7, 2020, 7:02pm UTC](https://forum.radzen.com/t/default-swagger-asp-net-core-3-1-weather-forecast-fails/5533/2 "2020-11-07T19:02:02Z")

</div>

Try providing the url of the swagger.json file. You seem to have used something which returns HTML.
