简体   繁体   中英

Angular application working with IE11 locally but not when hosted on IIS

I have made my angular application (using .NET Core 3.1) compatible with IE11 based on the steps described in this tutorial: https://dev.to/coly010/angular-how-to-support-ie11-4924

It runs just fine in IE11 when running it locally (Debug or Release mode both work) but after publishing and hosting it on an IIS webserver, it shows a blank page when opening it in IE11. When inspecting the IE11 console, the following errors are displayed ("Bezeichner erwartet" means "identifier expected"):

IE11错误

How can I figure out what is wrong here so that I can get the application working in IE11 both locally and when hosted on IIS?

I find a thread with the same issue as yours, you can refer to it.

I think your issue might also be not installing .Net Core runtime or Hosting bundle before hosting the site on IIS. As you are using .NET Core 3.1, I suggest that you can download them from this link and install them. After installing, please try to host your site on IIS again to see if it can work well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM