Running site from IIS rather than VS causes path havoc
I have a version 7.1.5 site with Articulate installed, which operates just fine if I "RUN" it from Visual Studio (for instance at "localhost:12345").
I went into IIS and created a site for it with a custom hostname pointing to the same website root folder. When I run the site using the new hostname (for instance, "mysite.local"), the site loads with the html, but no CSS, JS or images on the front-end.
I'm getting ready to leave for the day so I'm going to proactively guess that you are using Windows 7 (I have no idea why I put XP when I first asked what OS).
In IIS on Windows 7 you need to go to your website and double-click Authentication under the IIS section.
Next, select Anonymous Authentication and on the right pane under Actions select Edit.
Next, switch the Anonymous user identity from "Specific user" to "Application pool identity" and select OK.
Stop and start the website and recycle the application pool for the website.
Hopefully that fixed the issue of not seeing anything.
Brilliant! Thanks, Josuha! I had never come across this issue before, but your tip fixed it right up.
From a previous post (which I can't locate now) I had added "DefaultAppPool" as a user with full control over the website folder, which might have taken care of the possible file permissions issue you mentioned, but fixing it in IIS was the missing piece.
Running site from IIS rather than VS causes path havoc
I have a version 7.1.5 site with Articulate installed, which operates just fine if I "RUN" it from Visual Studio (for instance at "localhost:12345").
I went into IIS and created a site for it with a custom hostname pointing to the same website root folder. When I run the site using the new hostname (for instance, "mysite.local"), the site loads with the html, but no CSS, JS or images on the front-end.
Errors in the console include 404s like:
In addition, if I try to go to http://mysite.local/umbraco, all I get is a blank white screen (no login form)
Console Errors include:
I have tried recycling the app pool, restarting the site, emptying the /App_Data/TEMP/ folder, etc. but all to no avail.
Does anyone have any ideas what's going on here?
Thanks, Heather
Are you running the site on IIS on Windows 7?
I'm getting ready to leave for the day so I'm going to proactively guess that you are using Windows 7 (I have no idea why I put XP when I first asked what OS).
In IIS on Windows 7 you need to go to your website and double-click Authentication under the IIS section.
Next, select Anonymous Authentication and on the right pane under Actions select Edit.
Next, switch the Anonymous user identity from "Specific user" to "Application pool identity" and select OK.
Stop and start the website and recycle the application pool for the website.
Hopefully that fixed the issue of not seeing anything.
You may now have a permissions issue on the website folder itself. Use the instructions here to reset the folder permissions - http://our.umbraco.org/forum/umbraco-7/using-umbraco-7/56862-Running-site-from-IIS-rather-than-VS-causes-path-havoc
Hope this helps.
Brilliant! Thanks, Josuha! I had never come across this issue before, but your tip fixed it right up.
From a previous post (which I can't locate now) I had added "DefaultAppPool" as a user with full control over the website folder, which might have taken care of the possible file permissions issue you mentioned, but fixing it in IIS was the missing piece.
Thanks again,
Heather
You're welcome. I'm glad I could help.
Brilliant! Thanks, Josuha! I had never come across this issue before, but your tip fixed it right up.
You're very welcome.
This just saved me from a nervous breakdown too - thanks! :)
is working on a reply...