On a site, there are lots of things that fail to load for not logged in users, including images, css files, and js files.
I created a test page and applied the Xcillion skin, ro rule out a skin problem.
The logo file isn't loading. Inspecting shows:
If I right-click on the broken image logo and select "Open image in new tab" I get redirected to the login page.
I have a copy on the DNN install on a local server, and everything works perfectly.So ... it's a permissions problem because everything works if I login.I double checked, and the correct IIS user has full access to the website directory and subfolders.
What stupid mistake am I making?
Mostly that's caused by not having anonymous authentication set to "Application pool identity" in IIS for that site
Select the Server or a site > IIS > Authentication > Anonymous Authentication > Edit (on the right) > Anonymous user Identity: Application Pool Identity
HTH
To give my two cents in addition to Timo's answer: If you choose the Application Pool Identity (instead of IUSR, and I always use the Application Pool Identity), the Modify permission for the web site has to be granted to this identity, e.g. if your AppPool is called "MyDNNSite", the identity is "IIS AppPool\MyDnnSite". It is also a good practice to grant the database permissions to this identity. When the SQL Server is on the same machine as the IIS, it is the identity mentioned above, otherwise you have to use the web server's name followed by a $-sign, eg. "MYDOMAIN\WEBSERVER$". When the two machines are not in the same domain, you either have to setup a trust, or use an SQL Server Login (which means that username and password have to be in the connection string in web.config in clear text. I never tried the trust stuff. When both machines do not belong to a domain, an SQL Server Login is required. I do not guarantee for the correctness of these statements, but this is how I understood it. If anyone knows better, please let me know. Happy DNNing! Michael
Michael TobischDNN★MVP
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.