Items in Data folder only show if logged in

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/26/2016 9:38:03 PM
Gravatar
Total Posts 41

Items in Data folder only show if logged in

I've been asked to help get a MojoPortal powered site launched.  It is pretty much done, but they are having issues where the items in the Data folder, like css and images won't show unless logged in.  

 

I'm assuming it is a web.config setting, but I'm missing the obvious.

10/28/2016 10:47:24 AM
Gravatar
Total Posts 41

Re: Items in Data folder only show if logged in

No pointers on where to start looking?

10/28/2016 10:50:50 AM
Gravatar
Total Posts 18444

Re: Items in Data folder only show if logged in

a problem like that usually comes down to IIS configuration and file system permissions on the static files. It is not an issue in mojoportal itself.

There have been posts in the past about problems like this, if you search these forums thoroughly you can probably find something.

10/28/2016 10:55:31 AM
Gravatar
Total Posts 41

Re: Items in Data folder only show if logged in

Hey Joe, thanks for the reply.  Good to see you're still going strong with MojoPortal.

I had the same thought on the file permissions, but I verified those were correct.  The site works 100% correct when authenticated via MP's user system.

However even the most basic url:

http://example.com

Redirects to the login page.  However if I visit http://example.com/default.aspx the page loads as expected BUT the items in the data folder are missing.

 

10/28/2016 11:02:37 AM
Gravatar
Total Posts 18444

Re: Items in Data folder only show if logged in

a web.config with something like this would cause that

<authorization>
            <deny users="?" />
        </authorization>

that basically says don't allow anonymous users so it would redirect to login url defiend on the <forms element

I would look around for any extra web.config files especially in sub folders below /Data if you don't find an issue in the main web.config

10/28/2016 11:07:27 AM
Gravatar
Total Posts 18444

Re: Items in Data folder only show if logged in

There are I think also other more obscure things that can cause that which you might find by thorough search in these forums. I have vague recollections of someone posting a problem like this and later posted what he found to be the problem and it was something more obscure than the thing I mentioned which would cause it

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