Copied to clipboard

Flag this post as spam?

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


  • Greg Berlin 818 posts 634 karma points
    Sep 26, 2010 @ 14:32
    Greg Berlin
    0

    Deploy new Field Types to Server - Not working

    So i've created a new field type on my local machine.  Used class files which i put in App_Code folder. Works perfect locally, but when i deploy to staging, the stagingserver doesn't recognise the new files, so doesn't display the new type in the drop down.

    Locally i'm running Win7 64 bit, sql server 2008.

    Staging box running Win2003 R2 64 bit, sql server 2005.

    Code is identical - all code files are the same except web config which has a different connection string.

    Have checked permissions on App_Code folder on server - Network Service has read access.  Changed to modify just in case - no go.

    Any ideas what i may have missed?

  • Greg Berlin 818 posts 634 karma points
    Sep 26, 2010 @ 14:46
    Greg Berlin
    0

    So i've managed to work around this by compiling the classes into a DLL and dropping that on the server... that works fine.  I'll just run with that - its probably better anyway, but still interested to know why App_Code doesnt work on the server.. i'm guessing there's an IIS setting somewhere that is preventing the site from compiling classes in App_Code.  

  • Comment author was deleted

    Sep 26, 2010 @ 18:49

    Hi Greg, what is the umbraco version on the server? The App_code thing was a known issue on umbraco 4.5 and 4.5.1 , should be fine on 4.5.2

  • Greg Berlin 818 posts 634 karma points
    Sep 27, 2010 @ 07:18
    Greg Berlin
    0

    I'm on 4.0.4.1

    Works locally though, just not on prod box.  and the code bases are identical, so i'm sure its an IIS related thing...or file permissions. anyway its low priority for me as i have it working with DLLs.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 27, 2010 @ 08:05
    Sebastiaan Janssen
    0

    Yup, I would suggest additional permissions on your app_code folder are necessary. Compiled dll's are much cooler anyway! ;-)

Please Sign in or register to post replies

Write your reply to:

Draft