Sometimes our customers report that they do not see logos or pictures in alerts. Due to the fact that the client application uses the capabilities of the Internet Explorer browser to display content, some settings depending on the settings of Internet Explorer. So you need to configure a setting 'Show pictures' in the properties of the browser (Internet Options - Advanced - Multimedia - Show pictures) and check the box 'Show pictures'.
But it is not always possible to solve this issue using the IE browser settings. In some cases, this problem occurs because part of the code (for example, the whole ASP) is executed with the rights of another user who does not have access to the folder C:\Users\DefaultAppPool\AppData\Local\Temp. DefaultAppPool and Administrators usually have access to this folder.
Here are three more ways to solve the issue of pictures not being displayed in the alert on the server side
1. Disabling the ability to execute code as another user
Disabling the ability to execute code as another user is done by the following modification of web.config
<configuration> <system.web> <identity impersonate="false"/> </system.web> </configuration>
This solution can have a number of side effects, as performing actions that require additional privileges will become impossible.
2. Set the Username and password under which the code will be executed
It is a compromise between features and security. Implemented with the following modification of web.config
<!-- setting authentication parameters in the registry --> <configuration> <system.web> <identity> userName="registry:HKLM\Software\AspNetIdentity,Name" password="registry:HKLM\Software\AspNetIdentity,Pwd" </identity> </system.web> </configuration>
<!-- setting authentication parameters directly in the configuration file --> <configuration> <system.web> <identity> userName="myusername" password="mypassword" </identity> </system.web> </configuration>
3. Granting temporary folder access rights to all users
The easiest way to solve the problem is to give all users (Everyone) full access to the folder C:\Users\DefaultAppPool\AppData\Local\Temp