I recently deployed a site running 6.0.3. When I click on a cshtml node in backoffice, I get his home page, rendered. I have a second site doing the same exact thing. It is the strangest thing. I cannot edit any cshtml files in the Umbraco back office.
This is most likely a permission issue. Have you double checked that permissions for the network service and iusr has been set correctly? You can also just add the iis_iusrs group since both the mentions users are a part of this group.
On another note I will recommend that you edit your files outside of Umbraco using a proper editor like Sublime text or visual studio.
I don't think that is it. I create a unique user for each website on my server, and that user has full permissions on the entire doc root. That user is also who the app pool runs as. I have been deploying Umbraco since thusly since 4.0.1 and have never had an issue before. It must be something else.
And yes, I agree on the external editor thing... I use Dreamweaver for now (I use a Mac). It's just friggin weird and my clients want to be able to see the coding.
Sometimes it's worth to check even though one does not think that it's it - I've seen a lot of weird stuff in the years I've been in this business. So I think it's worthwhile double checking it.
As I stated, I create a unique user for each site I deploy. I have verified that this user has full access to every single file in the document root. Unless something has changed and I actually need to add the generic accounts to the permissions, it is not a permissons issue. Not trying to argue, I appreciate the help. I just know the app pool user has full rights.
I will try the upgrade to 6.0.5 as soon as I can built time into the workflow, hopefully that will resolve the issue.
I think it has somethign to do with my generic rewrite rule. All these sites are rebuilds of existing sites, so we go in and add a bunch of rewrite rules. I just added rules to another site today and all of a sudden they are reporting the same problem. I commented out the generic rewrite, restarted the app pool and I see code again.
Here is the rewrite rule I think is causing it. What did I do wrong?
CSHTML files rendering html in Umbraco back end
I recently deployed a site running 6.0.3. When I click on a cshtml node in backoffice, I get his home page, rendered. I have a second site doing the same exact thing. It is the strangest thing. I cannot edit any cshtml files in the Umbraco back office.
Any ideas?
Hi Mike
This is most likely a permission issue. Have you double checked that permissions for the network service and iusr has been set correctly? You can also just add the iis_iusrs group since both the mentions users are a part of this group.
On another note I will recommend that you edit your files outside of Umbraco using a proper editor like Sublime text or visual studio.
Hope this helps.
/Jan
I don't think that is it. I create a unique user for each website on my server, and that user has full permissions on the entire doc root. That user is also who the app pool runs as. I have been deploying Umbraco since thusly since 4.0.1 and have never had an issue before. It must be something else.
And yes, I agree on the external editor thing... I use Dreamweaver for now (I use a Mac). It's just friggin weird and my clients want to be able to see the coding.
Hi Mike
Sometimes it's worth to check even though one does not think that it's it - I've seen a lot of weird stuff in the years I've been in this business. So I think it's worthwhile double checking it.
It could also be a bug in Umbraco - and since you're running 6.0.3, which is vulnerable due to some newly found security issues I will urge you to upgrade to 6.0.5 where the issues have been fixed so you have a secure site. You can read more about the issues here http://umbraco.com/follow-us/blog-archive/2013/5/1/security-update-two-major-vulnerabilities-found.aspx
Perhaps this upgrade could also fix the issue you're dealing with right now.
Hope this helps.
/Jan
As I stated, I create a unique user for each site I deploy. I have verified that this user has full access to every single file in the document root. Unless something has changed and I actually need to add the generic accounts to the permissions, it is not a permissons issue. Not trying to argue, I appreciate the help. I just know the app pool user has full rights.
I will try the upgrade to 6.0.5 as soon as I can built time into the workflow, hopefully that will resolve the issue.
Thanks again guys!
I think I figured it out...
I think it has somethign to do with my generic rewrite rule. All these sites are rebuilds of existing sites, so we go in and add a bunch of rewrite rules. I just added rules to another site today and all of a sudden they are reporting the same problem. I commented out the generic rewrite, restarted the app pool and I see code again.
Here is the rewrite rule I think is causing it. What did I do wrong?
Thanks guys!
is working on a reply...