Devendra Kumar

Devendra Kumar

  • NA
  • 500
  • 164.4k

Blazor Webassembly threw exception

Jul 2 2020 7:51 AM
Hello
I am trying to do experiment with Blazor with the pre installed template of Home, Counter and Fetch Data
 
when I ran the client project, Home and counter section rans successfully but the Fetch Data has the following exception
 
  1. Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]  
  2.       Unhandled exception rendering component: The provided ContentType is not supported; the supported types are 'application/json' and the structured syntax suffix 'application/+json'  
Running server app have no issue, I tried running both server and client simultaneously but the client webassembly have the above exception
 
Can anyone help me out from the issue 
 

Answers (2)