Host ASP.NET Core 3.1 Angular Template in IIS The server responded with a non-JavaScript MIME type of "text/html"

Viewed 671

We are trying to put the default ASP.NET Core 3.1 template with Angular into IIS as a test and we are getting the following errors:

Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. main-es2015.7a946a5153b4f357caaf.js:1

Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. polyfills-es2015.27661dfa98f6332c27dc.js:1

Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

We have published the application to the folder structure with a release build. The program and startup are as the default template creates. We have installed the dotnet-hosting package as well.

Are there additional configuration steps required in IIS to host this as the documentation doesn't allude to anything else that is required.

Thanks in advance for any help.

0 Answers
Related