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.
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.
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.
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?
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
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
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.
Yup, I would suggest additional permissions on your app_code folder are necessary. Compiled dll's are much cooler anyway! ;-)
is working on a reply...