title: VS2013 ASP.NET Could not load type '[solution].[application]'
body: <p>Probably heard of it before, well I can't fix it. I am trying to have a website with one .aspx page, the rest is build in html and php. php is used as a 'master' page. the .aspx page is completely separate from the rest of the site, it only uses it's stylesheet,fonts and images.</p>
  
  <p>Steps to this problem:</p>
  
  <ol>
  <li>Create ASP.NET Empty Web Application</li>
  <li>Add a few buttons, textboxes etc.. edit some stuff in the main.aspx.cs</li>
  <li>Right click on Solution, Publish to local folder</li>
  <li>Upload it to your hosting website and go to ~.com/main.aspx</li>
  <li><p>Getting This Error message:
  Could not load type 'Vergelijkcuracao.students'.</p>
  
  <pre><code>Line1: &lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="students.aspx.cs"  Inherits="Vergelijkcuracao.students" %&gt;
  </code></pre></li>
  </ol>
  
  <p>Things I've tried:</p>
  
  <p><a href="https://stackoverflow.com/questions/11682216">This article</a>: Debug has stopped, local web server is off.
   The aspx.cs is after publishing indeed NOT in the saved directory, de bin folder is present but there is no aspx.cs ether. Manually dropping the aspx.cs on the server doesn't fix the problem.</p>
  
  <p>Same article also suggests to check the output path: it is set to bin\
  How do I correctly publish it to the hosts server? In Debug AND on a IIS local Web Site it works...</p>
  
  <p>When I Choose a different way: Instead of New Project:</p>
  
  <ol>
  <li>Choose Open Website (because I already made a site in html)</li>
  <li>Browse to the directory, and open it</li>
  <li>Add new item: Web Forms</li>
  <li>Design this page with the stylesheet, make it like I want it</li>
  <li>Also include AJAX Toolkit for 2 SliderExtender's</li>
  <li>Works perfectly fine in Compile mode AND in IIS local Web server.</li>
  <li><p>Upload to Server, getting this error:
  Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.</p>
  
  <pre><code>Line 3:  &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %&gt; 
  </code></pre></li>
  </ol>
  
  <p>For more info on this error go to <a href="https://stackoverflow.com/questions/24899829">my previous article</a>, still no solution for it. Showing Web.Config there aswell. Strange part: In my last solution, the aspx.cs is present in published directory...</p>