Skin Images not accessible on log out

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/27/2012 11:46:17 AM
Gravatar
Total Posts 5

Skin Images not accessible on log out

Hi everyone.

I'm having some trouble with skin images disappearing when I log out of the admin menu. I have only used the default (artisteer31) skins. To be clear all style images available in the private area are no longer accessible in the public one. For example "/Data/Sites/1/skins/artisteer31-green/images/Bottom_texture.jpg" is accessible when signed in, but returns a "could not find the page you are looking for" when signed out.

From what I read, I understand that site content is generated dynamically and only backups are stored on the drive in the "/Data/Sites/1/..." folder, yet it seems that the site doesn't want to do that. I assume the issue then is with the trust settings, yet I'd rather get to the root of the problem, then relax the security settings.

I've scoured the documentation and forum for a solution, but have yet to find one, so I assume this is not a widespread problem/bug. I'm sure that if someone replies and points me in the right direction it will be embarrassingly simple. Frankly, I can't remember if it ever worked as most of the fiddling around I've done after installation was while signed in. If nobody can help me, I will proceed with a fresh install and report back; if possible, I would rather not do that though.

Thank you in advance for your help,

-AS

I am running MojoPortal 2.3.9.0 and .NET 4.0

8/27/2012 12:00:04 PM
Gravatar
Total Posts 18439

Re: Skin Images not accessible on log out

Images and other media are stored on disk and served from disk directly by IIS (ASP.NET code is not involved in serving them), so you are operating on a false assumption about that. The problems sounds like some IIS configuration or permission problem but I don't know exactly what so you'll have to look at how you have things configured to figure it out.

Hope that helps,

Joe

8/27/2012 12:07:06 PM
Gravatar
Total Posts 5

Re: Skin Images not accessible on log out

Hi Joe.

Thank you for your very PROMPT reply!

Your advice does indeed help, as now at least I know where to look. CSS and HTML are generated dynamically though, correct? Could you possibly point me further towards the right direction by telling me which settings I might look at? i.e. my confusion lays with why IIS has no problem serving the media in the "private area" but not in the "public" one.

I will reply back with my solution in case anyone comes across this problem in the future.

8/27/2012 12:22:26 PM
Gravatar
Total Posts 18439

Re: Skin Images not accessible on log out

Html is stored in the database and rendered dynamically but any images it references are served from disk by IIS.

CSS files are listed in the style.config file of the skin and those files are combined, minified and cached by our csshandler and also then cached by the web browser, but just like with html, any images referenced by css are served from disk by IIS.

I would make sure that in IIS you have the site configured for anonymous and widows auth and that the user that is the identity on the application pool has file system read permission on the entire web directory structure and full control over /Data and /App_Data as well as files and folders beneath those.

Hope that helps,

Joe

8/27/2012 2:10:31 PM
Gravatar
Total Posts 5

Re: Skin Images not accessible on log out

Joe,

As I see it is always the case, you are correct. It was a file permission issue in IIS. Since it all worked when I was logged in, I overlooked/neglected that in the post-installation checklist. I was on the right track with permissions, but not really; thank you for correcting me.

Many thanks.

-AS

You must sign in to post in the forums. This thread is closed to new posts.