Error when generating App from Template Studio

Hi everybody,

  selecting grid from a newly generated Syncfusion application by template studio (Serverside Ver. 18.1.0.42 / VS Community Version 16.5.2) I get the following error:

blazor.server.js:15 [2020-04-06T13:35:21.553Z] Error: Microsoft.JSInterop.JSException: Unexpected token s in JSON at position 428
SyntaxError: Unexpected token s in JSON at position 428
    at JSON.parse (<anonymous>)
    at Object.load (https://localhost:44302/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:152670)
    at https://localhost:44302/_framework/blazor.server.js:8:31421
    at new Promise (<anonymous>)
    at e.beginInvokeJSFromDotNet (https://localhost:44302/_framework/blazor.server.js:8:31390)
    at https://localhost:44302/_framework/blazor.server.js:1:19202
    at Array.forEach (<anonymous>)
    at e.invokeClientMethod (https://localhost:44302/_framework/blazor.server.js:1:19173)
    at e.processIncomingData (https://localhost:44302/_framework/blazor.server.js:1:17165)
    at e.connection.onreceive (https://localhost:44302/_framework/blazor.server.js:1:10276)
   at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
   at Syncfusion.Blazor.ResourceManager.OnAfterRenderAsync(Boolean firstRender)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

The same happens when generating a schedule app.

blazor.server.js:15 [2020-04-06T13:40:31.708Z] Error: Microsoft.JSInterop.JSException: Unexpected token s in JSON at position 428
SyntaxError: Unexpected token s in JSON at position 428
    at JSON.parse (<anonymous>)
    at Object.load (https://localhost:44302/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:152670)
    at https://localhost:44302/_framework/blazor.server.js:8:31421
    at new Promise (<anonymous>)
    at e.beginInvokeJSFromDotNet (https://localhost:44302/_framework/blazor.server.js:8:31390)
    at https://localhost:44302/_framework/blazor.server.js:1:19202
    at Array.forEach (<anonymous>)
    at e.invokeClientMethod (https://localhost:44302/_framework/blazor.server.js:1:19173)
    at e.processIncomingData (https://localhost:44302/_framework/blazor.server.js:1:17165)
    at e.connection.onreceive (https://localhost:44302/_framework/blazor.server.js:1:10276)
   at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
   at Syncfusion.Blazor.ResourceManager.OnAfterRenderAsync(Boolean firstRender)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

Does not seem to be control specific.

   regards

     Uwe



3 Replies

SM Saranya Murugasamy Syncfusion Team April 7, 2020 12:40 PM UTC

Hi Uwe Hein, 

Greetings from Syncfusion. 

We have checked your reported issue with your shared sample and the samples are working fine and we have created the separate template project and added the components and the issue is not reproduced from our end. We have attached the video for your reference. Please find the below link. 


We can set up a web meeting to look into it provide the solution. Please let us know your availability, even can you please share the visual studio version and dotnet SDK version. It will be helpful to focus on specific area and assist you at the earliest.  

Regards, 
Saranya M 



UH Uwe Hein April 8, 2020 11:17 AM UTC

Hi Saranya M.,

  thank you for taking care of my problem. In the meantime I could solve it by myself. I am sure this will refer to other programmers too. First and main reason was installing the latest SDK release, so my configuration looked like this:

C:\WINDOWS\system32>dotnet --info
.NET Core SDK (gemäß "global.json"):
 Version:   3.1.300-preview-015048
 Commit:    13f19b4682

Laufzeitumgebung:
 OS Name:     Windows
 OS Version:  10.0.18363
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.1.300-preview-015048\

Placing the following global.json in the application dir together with the csproj file solved the issue.

{
  "sdk": {
    "version": "3.1.201"
  }
}

Thank you again for the fast response !

    regards

        Uwe




SM Saranya Murugasamy Syncfusion Team April 9, 2020 06:38 AM UTC

Hi Uwe Hein, 

Thanks for the update. 

We are glad to hear that your reported issue has been resolved by yourself. Please get back to us if you need any further assistance on this. 

Regards, 
Saranya M 


Loader.
Up arrow icon