Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew 1 post 21 karma points
    Jun 14, 2013 @ 18:20
    Andrew
    0

    Error in Razor .cshtml file in IIS6 but not in VS2010 server (umbraco 6.06)

    I have a bit of code in a razor .cshtml in a macroScript

    its just getting a image from the image ID, like this:

     src='@Library.MediaById(page.GetProperty("mainImage").Value).umbracoFile' alt='' />

    It works perfectly fine on my local site, running in VS2010 inbuilt server, however when I move the site to a staging server running running iis6, it gives me the error:

    Error loading MacroEngine script (file: article.cshtml) 

    Im using a compact database (umbraco.sdf) and the rest of the database driven content is working correctly, so Im stumped as to why this would work on local but not iis6.

    The app pool is 4.0. and I couldnt find anything on umbraco site to suggest that iis6 isnt compatable.

    Any ideas anyone?

     

    So Iguess Im asking is umbraco 6 can run on IIS6

    (I can't find any min requirements, but for 4.7 it suggests its iis7+)

     

    I'v also added this question here at statck overflow

    http://stackoverflow.com/questions/17111960/umbraco-6-on-iis6-issues-with-razor/17111998?noredirect=1#17111998

     

Please Sign in or register to post replies

Write your reply to:

Draft