title: Problems deploying/building a working Orchard CMS website
body: <p>i've hit a brick wall in how to move my website to my host @ <a href="https://my.discountasp.net" rel="nofollow">https://my.discountasp.net</a>. My main problem is all my previous projects have been INTRANET based. I've never published directly to the web </p>
  
  <p>Locally my development machine is Windows 8 Server running SQL Server 2008 R2</p>
  
  <p>I started using latest version of Orchard CMS last week. I've created a working website with content that runs from <code>http://localhost/orchard/</code> so I think its running from IIS7 ok. Orchard created tables in my 2008 R2 database for storing content, all this works a treat</p>
  
  <p>Now I want to deploy website and database to the web host discountasp. I subscribed to discountasp.net and have all the settings I need. My problems is moving the website.</p>
  
  <p>So far I tried loading up the website using Visual Studio 2010. I then do a right click from top of solution explorer and enter "http://retiremovec.eweb701.discountasp.net".</p>
  
  <p>VS 2010 tries to build and I get :</p>
  
  <p>"Error  1   It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.  C:\inetpub\wwwroot\orchard\Modules\Orchard.Autoroute\Specs\bin\Hosting\Orchard.Web\Web.config   48<br>
  "</p>
  
  <p>I've already looked up this error online and getting nowhere. I think i'm missing something fundamental. If I can get this to build is deployment of the website done simply by right clicking then publish website to target location "http://retiremovec.eweb701.discountasp.net"</p>
  
  <p>Maybe I should not be loading up the website in Visual Studio, should i use something else. I'm just so used to doing all my work in VS2010. But this time i've left it all to Orchard and results are gr8 for the CMS site but now i'm stuck</p>
  
  <p>Any comments appreciated, regards, J</p>