Do you know if there's a quick way to accomplish this in Umbraco?
There's not much to it. Assuming you have a Visual Studio solution that contains your Umbraco website as a web application project, you simply add a new project (of type class library), then add a reference to it from your web application project.
Say you have Acme.Website, you can create Acme.App with all the code from the App_Code folder, then reference Acme.App From Acme.Website.
App_Data\TEMP\PluginCache\umbraco-plugins.<myServerName>.list' is denied
I'm trying to put a set of sites live and have hit this error every time a new site loads!
Any help would be appreciated.
Hi MuirisOG
Can you check folders permissions on your server?
It should be like described here: https://our.umbraco.org/documentation/getting-started/setup/install/permissions
Thanks,
Alex
Hi Alex,
thanks for your reply.
I've given the app pool identity permissions, and it seems to be working now.
The only problem I've still got is the clash over the two files below
but I've been told I should put the code in my app_code folder into a class library.
Do you know if there's a quick way to accomplish this in Umbraco?
Thanks
Muiris
There's not much to it. Assuming you have a Visual Studio solution that contains your Umbraco website as a web application project, you simply add a new project (of type class library), then add a reference to it from your web application project.
Say you have Acme.Website, you can create Acme.App with all the code from the
App_Code
folder, then reference Acme.App From Acme.Website.Nicholas
that is exactly what I was looking for.
I was in full panic mode this morning and my brain just could not engage on the best approach to this.
Thanks
Muiris
PS These two links were invaluable!
http://www.codeshare.co.uk/blog/how-to-move-your-code-out-of-the-controller-and-into-a-helper-class/
https://www.youtube.com/watch?v=DWjbJiIUQdk
is working on a reply...