title: razor websites not working and all dlls are present
body: <p>I've uploaded a <code>.cshtml</code> website to a <code>surftown</code> server, and I got some problems running the code. But I have a problem with it running the <code>Razor</code> code.</p>
  
  <p>This is how the page renders:(Default.cshtml) <img src="https://i.stack.imgur.com/YwSyX.png" alt="enter image description here"></p>
  
  <p>I've already checked for internal communication problems. And this is my result:
  <img src="https://i.stack.imgur.com/9npGR.png" alt="enter image description here"></p>
  
  <p>But then why isn't it working, and how can I fix it?</p>
  
  <p>I've heard that it can be a problem with views but how whould I fix this if that's the case?</p>
  
  <p>My websites folder tree: (And some files too)</p>
  
  <ul>
  <li>
  App_Code
  </li>
  <li>
  App_Data
  <ul>
  <li>
  packages
  <ul>
  <li>
  Microsoft.AspNet.Razor.2.0.20710.0
  </li>
  <li>
  Microsoft.Asp.Net.WebPages.2.0.20710.0
  </li>
  <li>
  Microsoft.Asp.Net.WebPages.Administration.2.0.20710.0
  </li>
  <li>
  Microsoft.Asp.Net.WebPages.Data.2.0.20710.0
  </li>
  <li>
  Microsoft.Asp.Net.WebPages.WebData.2.0.20710.0
  </li>
  <li>
  Microsoft.Web.Infrastructure.1.0.0.0
  </li>
  <li>
  NuGet.Core.1.6.2
  </li>
  </ul>
  </li>
  </ul>
  </li>
  <li>
  bin
  </li>
  <li>
  packages
  <ul>
  <li>
  jQuery.2.0.3
  <ul>
  <li>
  Content
  <ul>
  <li>
  Scripts
  </li>
  </ul>
  </li>
  <li>
  Tools
  </li>
  </ul>
  </li>
  <li>
  Microsoft.AspNet.Mvc.4.0.30506.0
  <ul>
  <li>
  lib
  <ul>
  <li>
  net40
  </li>
  </ul>
  </li>
  </ul>
  </li>
  <li>
  Microsoft.AspNet.Razor.2.0.30506.0
  <ul>
  <li>
  lib
  <ul>
  <li>
  net40
  </li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  <ul>
  <li>
  Microsoft.AspNet.WebPages.2.0.30506.0
  <ul>
  <li>
  lib
  <ul>
  <li>
  net40
  </li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  </li>
  <li>
  Pages
  <ul>
  <li>
  Chapters
  <ul>
  <li>
  Read.cshtml
  </li>
  </ul>
  </li>
  <li>
  Edit
  <ul>
  <li>
  Move
  <ul>
  <li>
  Chapter.cshtml
  </li>
  </ul>
  </li>
  <li>
  Entry.cshtml
  </li>
  </ul>
  </li>
  <li>
  Entries
  <ul>
  <li>
  EnterEntry.cshtml
  </li>
  <li>
  EnterNote.cshtml
  </li>
  </ul>
  </li>
  <li>
  Login
  <ul>
  <li>
  Login.cshtml
  </li>
  </ul>
  </li>
  <li>
  Search
  <ul>
  <li>
  Result.cshtml
  </li>
  </ul>
  </li>
  </ul>
  </li>
  <li>
  Scripts
  <ul>
  <li>
  Addons
  <ul>
  <li>
  TinyMCE
  </li>
  </ul>
  </li>
  </ul>
  </li>
  <li>
  Styles
  <ul>
  <li>
  CSS
  </li>
  </ul>
  </li>
  <li>
  Views
  <ul>
  <li>
  _Layout.cshtml
  </li>
  </ul>
  </li>
  <li>
  Default.cshtml
  </li>
  </ul>
  
  <p>My web.config file looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
      &lt;configuration&gt;
          &lt;system.web&gt;
              &lt;compilation debug="true" targetFramework="4.0"&gt;
                &lt;buildProviders&gt;
                  &lt;add extension=".cshtml" type="System.Web.WebPages.Razor.RazorBuildProvider, System.Web.WebPages.Razor"/&gt;
                &lt;/buildProviders&gt;
                &lt;assemblies&gt;
                  &lt;add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
                &lt;/assemblies&gt;
              &lt;/compilation&gt;
            &lt;/system.web&gt;
            &lt;connectionStrings&gt;
              &lt;add connectionString="database connection" providerName="System.Data.SqlClient"/&gt;
            &lt;/connectionStrings&gt;
          &lt;/configuration&gt;
  </code></pre>
  
  <p>EDIT:
  Is it a problem that all my files are <code>.cshtml</code>? And that they are added as <code>MIME Type</code> <code>html/text</code>.</p>
  
  <p>More Edit:
  This is my Default.cshtml code:</p>
  
  <pre><code>@{
      Layout = "~/Views/_Layout.cshtml";
  }
  
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;table&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;h1 class="header"&gt;
                              Welcome to the library
                          &lt;/h1&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;p&gt;
                              Do look around, to find information about almost anything there is to know about Mythodea, or maybe you are here to make a chapter or note of your own.
                          &lt;/p&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>And my _Layout.cshtml code:
      @{
          // A bunch of C# code
      }</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
  
      &lt;link href="~/Styles/CSS/Layout.css" rel="stylesheet" /&gt;
  
      &lt;script src="~/Scripts/Addons/TinyMCE/tinymce.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
      @RenderSection("head",false)
  
      &lt;title&gt;The Kettle Library of Mythodea&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="container"&gt;
          &lt;div id="header"&gt;
              &lt;h1&gt;
                  The Library
              &lt;/h1&gt;
          &lt;/div&gt;
  
          &lt;div id="left_column"&gt;
              &lt;div class="innerPadding"&gt;
                  &lt;div id="Menu_Overview"&gt;
                      @Html.Raw(menu)
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div id="right_column"&gt;
              &lt;div class="innerPadding"&gt;
                  @{
                      if(!SessionHandler.UserIsLoggedIn)
                      {
                          &lt;div class="Login_Wrapper"&gt;
                              &lt;form action="" method="post"&gt;
                                  &lt;table&gt;
                                      &lt;tr&gt;
                                          &lt;td&gt;
                                              &lt;p&gt;
                                                  Username/Email:
                                              &lt;/p&gt;
                                          &lt;/td&gt;
                                          &lt;td&gt;
                                              &lt;input class="form_input" type="text" placeholder="Username / Email" tabindex="1" name="username" value="@username" /&gt;
                                          &lt;/td&gt;
                                      &lt;/tr&gt;
                                      &lt;tr&gt;
                                          &lt;td&gt;
                                              &lt;p&gt;
                                                  Password:
                                              &lt;/p&gt;
                                          &lt;/td&gt;
                                          &lt;td&gt;
                                              &lt;input class="form_input" type="password" placeholder="Password" tabindex="2" name="password" /&gt;
                                              &lt;a href="#"&gt;forgot?&lt;/a&gt;
                                          &lt;/td&gt;
                                      &lt;/tr&gt;
                                      &lt;tr&gt;
                                          &lt;td&gt;
                                              &lt;input type="submit" value="Login" name="btn" /&gt;
                                          &lt;/td&gt;
                                          &lt;td&gt;
                                              &lt;input type="submit" value="Register" name="btn" /&gt;
                                          &lt;/td&gt;
                                      &lt;/tr&gt;
                                  &lt;/table&gt;
                              &lt;/form&gt;
                              &lt;p class="Error_Message"&gt;@message_error&lt;/p&gt;
                          &lt;/div&gt;
                      }
                      else
                      {
                          &lt;div class="Login_Wrapper"&gt;
                              &lt;form action="" method="post"&gt;
                                  &lt;p&gt;
                                      @name
                                  &lt;/p&gt;
                                  &lt;input type="submit" value="Logout" name="btn" /&gt;
                              &lt;/form&gt;
                          &lt;/div&gt;
                      }
                  }
  
                  &lt;div class="SideMenu_Right"&gt;
                      &lt;div id="search_wrapper"&gt;
                          &lt;form action="" method="post"&gt;
                              &lt;input type="text" name="searchField" placeholder="Search" value="@searchValue" required="required" /&gt;
                              &lt;input type="submit" name="btn" value="Search" /&gt;
                          &lt;/form&gt;
                      &lt;/div&gt;
  
                      @{
                          if(SessionHandler.UserIsLoggedIn)
                          {
                              &lt;a href="~/Pages/Entries/EnterEntry.cshtml"&gt;Create new Chapter&lt;/a&gt;
                              &lt;br /&gt;
                              &lt;br /&gt;
                          }
                      }
  
                      @RenderSection("menu_right", false)
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div id="middle_column"&gt;
              &lt;div class="innerPadding"&gt;
                  @RenderBody()
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="madeBy"&gt;
          &lt;p&gt;
              Created by &lt;a href="https://www.facebook.com/michaeltot.korsgaard" target="_blank"&gt;Michael Tot Korsgaard&lt;/a&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>