Base solution for your next web application
Open Closed

Uncaught SyntaxError: Unexpected token < #4733


User avatar
0
mgsf created

I am using the asp.net core mvc & jQuery solution. My solution works fine in the local machine when I run it from visual studio. But I had to publish it to be shown and hence published it to Azure App Service as a Web App. The standard log-on screen works and I am able to log-in. Then the dashboard loads halfway and is stuck (so the menu click does not work). When route to any other page/controller they all load half (data missing /buttons missing, etc). All the js, cshtml , css , font files are available in the published location.

Error when the dashboard is loading is as follows,

Error?statusCode=404:1 Uncaught SyntaxError: Unexpected token < Dashboard:1 Failed to decode downloaded font: <a class="postlink" href="https://expweb.azurewebsites.net/fonts/Poppins/poppins-v5-latin-300.woff2">https://expweb.azurewebsites.net/fonts/ ... -300.woff2</a> Dashboard:1 OTS parsing error: invalid version tag Dashboard:1 Failed to decode downloaded font: <a class="postlink" href="https://expweb.azurewebsites.net/fonts/Poppins/poppins-v5-latin-300.woff2">https://expweb.azurewebsites.net/fonts/ ... -300.woff2</a> Dashboard:1 OTS parsing error: invalid version tag Dashboard:1


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    gulp --prod