title: MVC html.raw producing "An error occurred while processing your request"
body: <p>In an MVC application, my /Views/Content/Details.cshtml page has the following:</p>
  
  <pre><code>@model example.Models.Content
  
  @{
      ViewBag.Title = "Details";
  }
  
  @Html.DisplayFor(model =&gt; model.Description)
  </code></pre>
  
  <p>This works as expected. The web browser produces the data in the "Description" column from the SQL database. </p>
  
  <p>For testing purposes, I configured an entry in the Description column with the following data:</p>
  
  <pre><code>&lt;p&gt;This is a test&lt;/p&gt;
  </code></pre>
  
  <p>The Web Browser displays <code>&lt;p&gt;This is a test&lt;/p&gt;</code>, which is to say that the Web Browser is displaying the markup.</p>
  
  <p><a href="https://stackoverflow.com/questions/7751148/what-does-html-raw-do">This post</a> and <a href="http://forums.asp.net/t/1904870.aspx?Html%20Raw%20doesn%20t%20work%20with%20HTML%20DisplayFor%20" rel="nofollow noreferrer">this post</a> and <a href="https://stackoverflow.com/questions/7027683/html-raw-in-asp-net-mvc-razor-view">this post</a> mention that <code>@Html.Raw(model.Description)</code> should resolve this issue. I revised my code to this:</p>
  
  <pre><code>@model example.Models.Content
  
  @{
      ViewBag.Title = "Details";
  }
  
  @Html.Raw(model.Description)
  </code></pre>
  
  <p>The Web Browser now produces "An error occurred while processing your request". I am certain I must be overlooking something simple here, but I am just not seeing the cause of the problem.</p>