I am trying to get the path to a folder in my website root and save it to a class property when my controller constructor is called:
public TestController:Contro
AppDomain.CurrentDomain.BaseDirectory will give you the root of your site. So:
temp = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TheFolder");
(Update thanks to Marc Gravell's comment)