IIS cannot serve images due to impersonation

500-erroriisiis-8.5impersonation

We have a brand new Windows2012R2 server. We have installed the IIS features on it (including static content).

Then we have deployed a web site on it (using copy).

When we surf to the web site, HTML, CSS and JavaScript is served up just fine.

However, requests for png and ico requests gets a response HTTP status 500, substatus 0, win32-status 1346.

The 1346 status seems to indicate an impersonation problem.

But why are we getting it for just the images?

And more importantly, how can we fix this without turning on impersonation?

EDIT: actually, it did not help to add IIS_IUSRS to Impersonate a client after authentication.

Best Answer

I had the exact same weird error and the most frustrating thing in the world is a reboot worked. These are all the steps i used, maybe they help some one even though they do not supply root cause.

We set "Impersonate client after authentication" permissions via GPO in.

Computer config >> Windows settings>> Security Settings >> Local Policies >> User Rights Assignment.

I added the user we have for our site with this issue to that group, it is the user for the website and app pool.

updated GPO ensured new settings showed user permissions on the local server, but still no luck.

Then we rebooted the server and it all worked. So i dunno if these changes require more then a GPO update to resolve the issue.