Controller for path '/apple-touch-icon-120x120-precomposed.png' not found

I am getting a sum error in my web log file.

  • Controller for path '/apple-touch-icon-120x120-precomposed.png' was not found or does not implement IController. Path :: / apple-touch-icon-120x120-precomposed.png
  • Controller for path '/apple-touch-icon-120x120.png' was not found or does not implement IController. Path :: / apple-touch-icon-120x120.png
  • Error: Controller for path '/apple-touch-icon.png' was not found or does not implement IController. Path :: / apple-touch icon.png

I have checked on all pages that I am not using thease icons in my web app.

+3


source to share


2 answers


These are files for Apple iOS devices. The user probably added your site to their home screen. IOS then tries to find those images to create a nice icon for you. You can read more about this in the Safari documentation .

Like this one, which is actually a web app but shows up as a native app:



IOS screen with web app

What you need to do is create and add these image files. This will improve your user experience.

+5


source


Some IOS device is trying to get this image from your site. The ASP.MVC engine tries to get a controller named "/apple-touch-icon-120x120.png" and throws an exception. You can create a route that ignores this call and does not throw this exception:

routes.IgnoreRoute("{*apple}", new { apple = @"(.*/)?apple-touch-icon.*\.png(/.*)?" });

      



You should also create an image for IOS and improve the UX on IOS devices as Patrick answered.

+2


source







All Articles