title: .NET web app not running on Mono under Apache - Unrecognized attribute 'targetFramework'
body: <p>I am trying to setup a NuGet gallery on Linux using Mono on Apache.  I'm running into what seems like a typical error: </p>
  
  <p><strong>Error deserializing configuration section compilation: Unrecognized attribute 'targetFramework'. (/app/www/nugetsrus.sys.company.net/Web.config line 1).</strong>  </p>
  
  <p>However every workaround I've tried doesn't work.  I am NOT running xsp4  </p>
  
  <p>I'm on CentOS 6.1 with Mono 3.2.6</p>
  
  <p>I built an empty .NET 4.0 web app in VS 2012 and added the nuget.server to it.  Built and published and it works in IIS.  I copied the folder to my CentOS box and configured Apache and Mono as best as I could.</p>
  
  <p>I have ensured that I have User apache and group apache before my Include conf.d/*.conf
  If I remove the targetFramework 4.0 line from the Web.config I get an Internal Server Error</p>
  
  <p>No idea what else to do or look at here to make mono run a .NET 4.0 app. </p>