Transferred site to localhost, but all CSS and JS Files now return a Custom 500 Error Page.
How do I disable the Umbraco 500 Custom Error pages that get loaded instead of .css and .js files? Sounds like a permission issue, but all I did was create content in Umbraco on localhost, and than it now does not load up any .css and .js files after creating the content page. I am unable to go the Umbraco Admin, due to no .js and no .css files loading.
When I browse to the .css and/or .js files directly within the browser, I get a custom 500 error page that looks like it's coming from Umbraco, since IIS 7.5 does not have any custom error pages in it for the site and I have in my web.config file like so:
Like I said, it was loading up .css and .js files fine before I saved new content in the Content section of the Umbraco Admin. Am running Umbraco 4.6.1 if that helps.
How can I fix this? I have already done a FULL Database Restore, and even have restored all files from the site to that of the transfer, but still, the site is not loading up any .css/.js files at all.
First, thanks for your response. Secondly, I have already been there and done that. If you look at the web.config file that I posted up, you will see that, already there is a debug="true" in the compilation tag, but this does not help at all and still shows a custom 500 Error page when browsing to the CSS/JS files directly on the server.
What does Umbraco do when it creates new content that could cause this to happen? Perhaps some sort of permission issue could cause this? If so, how to set up permissions properly and how to restore Umbraco Settings?
Furthermore, when running Fiddler, it mentions nothing of a 500 Internal Server Error. So this tells me that Umbraco is loading up the 500 Internal Server Error page for all CSS and JS files anyways, which leads me to think, even more, that this could be an Umbraco Specific Permissions problem...
On the actual homepage of the site, when viewing the source, it shows this as the link to the CSS in the head: /styles/styles.css?v=635248629320000000 and doesn't work when I browse to it.
http://localhost/styles/styles.css?v=635248629320000000 - Doesn't work and displays custom 500 Error page
http://127.0.0.1/styles/styles.css?v=635248629320000000 - Doesn't work and displays custom 500 Error page
Very weird that only this url works: http://127.0.0.1/styles/styles.css and all others don't. How to fix this???? Maybe the cache needs to be cleared in Umbraco? How to do that even?
Event Viewer logs tons of errors within the past hour on the MSSQL, and says this:
An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.
How can I fix this?
Well, when i executed that link in SQL it fixed the front end .css and .js files. So that seemed to be a database issue, not a file system issue. Perhaps the Umbraco Back-end is a File System issue...?
@Kevin Giszewski - Everyone has access to the file system. I searched for everyname to give access to that the system will allow and gave FULL Access to all of them. It still does not work.
I noticed that there are 2 databases, 1 named "Philadelphia" and the other named "PHL" and "PHL" is the one that's getting used in web.config. Also, I believe that their might be 2 different versions of IIS Installed installed also... not entirely sure if this could cause a problem or not.
Regarding your permissions you set. Websites should have exactly one account that has full control. Giving full control to user accounts will make the site be insecure. So tread carefully in a production environment.
The account that should have the full control will either be your 'network service' account or the app pool identity which is found in your app pool setup.
Additionally, anonymous users should have the 'read' permission. This could be the issue for your js/css files. When you visit a page (even you), you are visiting the page anonymously in most cases. The website runs it's operations under the 'network service' or app pool identity (which is why they need full control).
Again, this is probably not an Umbraco issue rather it's a environment setup issue. I'm probably out of suggestions for you as it seems you have at least a DB issue and possibly a permissions issue.
@Kevin - How do I find out the App Pool Identity? Is that the same as the App Pool Name? I can not add the App Pool Name to permissions, but I do see something that is named: WIN-428RNRGTUMJ (WIN-428RNRGTUMJ/Administrator), which is where the Sites Folder is located in IIS Manager. Is that the App Pool Identity? If so, it is already added and has Full Control.
There is another user called, "CREATOR/OWNER" but weirdly enough, I am unable to give this user Full Control.
That's what it was exactly. I changed the App Pool Identity to Administrator with the password and it worked perfect! The name that was in there was DefaultAppPoolIdentity I believe, and that user did not exist on the system, so wasn't able to give that user the proper permissions. So changed it to Administrator and all is now perfect!
Transferred site to localhost, but all CSS and JS Files now return a Custom 500 Error Page.
How do I disable the Umbraco 500 Custom Error pages that get loaded instead of .css and .js files? Sounds like a permission issue, but all I did was create content in Umbraco on localhost, and than it now does not load up any .css and .js files after creating the content page. I am unable to go the Umbraco Admin, due to no .js and no .css files loading.
When I browse to the .css and/or .js files directly within the browser, I get a custom 500 error page that looks like it's coming from Umbraco, since IIS 7.5 does not have any custom error pages in it for the site and I have in my web.config file like so:
Like I said, it was loading up .css and .js files fine before I saved new content in the Content section of the Umbraco Admin. Am running Umbraco 4.6.1 if that helps.
How can I fix this? I have already done a FULL Database Restore, and even have restored all files from the site to that of the transfer, but still, the site is not loading up any .css/.js files at all.
Hi Charles,
I have searched on the issue, to try to help you,
Here is what I found
http://stackoverflow.com/questions/19417458/umbraco-http-500-server-errors-for-css-and-js-files
Hope it can help you.
/Dennis
Hello Dennis,
First, thanks for your response. Secondly, I have already been there and done that. If you look at the web.config file that I posted up, you will see that, already there is a debug="true" in the compilation tag, but this does not help at all and still shows a custom 500 Error page when browsing to the CSS/JS files directly on the server.
What does Umbraco do when it creates new content that could cause this to happen? Perhaps some sort of permission issue could cause this? If so, how to set up permissions properly and how to restore Umbraco Settings?
Furthermore, when running Fiddler, it mentions nothing of a 500 Internal Server Error. So this tells me that Umbraco is loading up the 500 Internal Server Error page for all CSS and JS files anyways, which leads me to think, even more, that this could be an Umbraco Specific Permissions problem...
Hi Charles,
One option might be to follow this http://www.franklinogsimonsen.dk/media/856/install_umbraco_4_on_windows_vista.pdf guide on how to create a Umbraco instalation on localhost, maybe this can help you to find where your permissions are incorrect on your localhost.
/Dennis
Well, this is strange... what could possibly be the problem here:
CSS Stylesheet urls
http://127.0.0.1/styles/styles.css - WORKS
http://localhost/styles/styles.css - Doesn't work and returns custom Umbraco 500 Error page
On the actual homepage of the site, when viewing the source, it shows this as the link to the CSS in the head: /styles/styles.css?v=635248629320000000 and doesn't work when I browse to it.
http://localhost/styles/styles.css?v=635248629320000000 - Doesn't work and displays custom 500 Error page
http://127.0.0.1/styles/styles.css?v=635248629320000000 - Doesn't work and displays custom 500 Error page
Very weird that only this url works: http://127.0.0.1/styles/styles.css and all others don't. How to fix this???? Maybe the cache needs to be cleared in Umbraco? How to do that even?
Well, the support here is a bit lacking, sorry to say. I suppose not many people ever visit this community. I now have done this:
1. Added a web.config to the styles folder itself with the following:
When browsing to a .css file within that folder, I get the following error message now:
Does that mean anything to anyone?
Comment author was deleted
@Charles. I've gotten something like what you describe originally and it turned out to be permissions.
Ensure the identity running your app pool for your site has full control of the entire website file directory.
You may have to stop the app pool to apply permissions.
Might I suggest you compare the permissions between the one that does work vs one that does not?
Next I would check IIS settings:
Are you running different versions of IIS locally vs where it came from? My guess is yes. Check the configs (like 'Classic' mode vs integrated, etc).
Comment author was deleted
Also if this is your first localhost site on this machine, check to make sure everything is installed right.
http://stackoverflow.com/questions/4537244/what-is-this-error-in-iis-web-server
I don't suspect it's an Umbraco issue at all.
Ok, so opened up SQL Server Manager and typed in the following SQL and now CSS/JS Files are loading on the front end of the site.
But CSS/JS Files are still not loading on the Back-end Umbraco Administration, at the following url: http://localhost/Umbraco/
How do I get the CSS and JS Files to load there??
Comment author was deleted
All of the permissions you should be looking at are the file system permissions, not the DB.
You should have to make no changes to the DB.
Event Viewer logs tons of errors within the past hour on the MSSQL, and says this:
How can I fix this?
Well, when i executed that link in SQL it fixed the front end .css and .js files. So that seemed to be a database issue, not a file system issue. Perhaps the Umbraco Back-end is a File System issue...?
@Kevin Giszewski - Everyone has access to the file system. I searched for everyname to give access to that the system will allow and gave FULL Access to all of them. It still does not work.
I noticed that there are 2 databases, 1 named "Philadelphia" and the other named "PHL" and "PHL" is the one that's getting used in web.config. Also, I believe that their might be 2 different versions of IIS Installed installed also... not entirely sure if this could cause a problem or not.
Comment author was deleted
I'm not sure how to solve your issue with the DB.
Regarding your permissions you set. Websites should have exactly one account that has full control. Giving full control to user accounts will make the site be insecure. So tread carefully in a production environment.
The account that should have the full control will either be your 'network service' account or the app pool identity which is found in your app pool setup.
Additionally, anonymous users should have the 'read' permission. This could be the issue for your js/css files. When you visit a page (even you), you are visiting the page anonymously in most cases. The website runs it's operations under the 'network service' or app pool identity (which is why they need full control).
Again, this is probably not an Umbraco issue rather it's a environment setup issue. I'm probably out of suggestions for you as it seems you have at least a DB issue and possibly a permissions issue.
@Kevin - How do I find out the App Pool Identity? Is that the same as the App Pool Name? I can not add the App Pool Name to permissions, but I do see something that is named: WIN-428RNRGTUMJ (WIN-428RNRGTUMJ/Administrator), which is where the Sites Folder is located in IIS Manager. Is that the App Pool Identity? If so, it is already added and has Full Control.
There is another user called, "CREATOR/OWNER" but weirdly enough, I am unable to give this user Full Control.
Comment author was deleted
Just did a quick Google: http://www.iis.net/learn/manage/configuring-security/application-pool-identities
That's what it was exactly. I changed the App Pool Identity to Administrator with the password and it worked perfect! The name that was in there was DefaultAppPoolIdentity I believe, and that user did not exist on the system, so wasn't able to give that user the proper permissions. So changed it to Administrator and all is now perfect!
Thanks a million!!
Comment author was deleted
Awesome!
is working on a reply...