title: How do I deploy an Asp.net web application to a Sharepoint 2010 site using WSP
body: <p>Suppose I created a custom web application that consists of:</p>
  
  <ul>
  <li>several assembly DLLs: web app, business logic, data services</li>
  <li>multiple aspx pages and ascx custom controls that use them</li>
  <li>custom configuration section</li>
  <li>custom HTTP module</li>
  </ul>
  
  <p>More or less the usual stuff.</p>
  
  <p>I would like to deploy it to a particular sharepoint site under a certain subfolder. So if I access my sharepoint site via <a href="http://myserver:90/" rel="noreferrer">http://myserver:90/</a> (because I'm not using sites/some_site) I'd like my application to be available under <a href="http://myserver:90/webapp" rel="noreferrer">http://myserver:90/webapp</a></p>
  
  <p>I could manually add a virtual folder (not application because I would need to access some Sharepoint site's data) to my sharepoint site in IIS and manually edit site's <code>web.config</code> file to register my HTTP module and add my custom configuration section as well either putting my DLLs into GAC or put them in the _app_bin (so I don't have problems with CAS), but I don't think that's a good thing to do, because this web application may get deployed in an environment where this shouldn't/couldn't be possible.</p>
  
  <p>So I figured I could build a WSP using Visual Studio 2010 and deploy it that way. But I don't have enough experience doing that.</p>
  
  <p>I created a new sharepoint 2010 project. Is there a way I could add all non-executable application files (aspx, ascx) at once? I've seen the <em>advanced</em> tab of the WSP package where I can add my DLLs either to bin folder or GAC. I don't know whether I would also have to add any safe control and register certain classes?</p>
  
  <p>So I suppose I need some pretty detailed and explanatory guidance here.</p>