Razor does not generate html after deploying Umbraco 7.2 in IIS 7

I am new to Umbraco, so I started to create a site to play a little with it. Although my site worked on IIS express (either VS or WebMatrix), everything worked fine. After deploying the site in IIS 7, the front-end razor appears as plain text, which means that I actually see the Razor syntax in the browser. Umbraco back office works fine, although if I click the preview, in this case I get the simple Razor syntax again. Then I try to deploy a simple new MVC project for IIS, and the Razor engine worked fine, so I think this is not a problem in IIS, but in the Umbraco configuration. Is there any setup I need to take care of the Umbraco configuration to solve this problem? Thank you in advance.

I also tried to deploy it in IIS of my local development machine (the same one in which it works in IIS-express), which has the correct structure and that’s it, and I got the same cshtml screen in the browser.

+4
source share
1 answer

, , , . . , VS , . , , , . , .

+4

All Articles