title: "WebSecurity" does not exist in the current context error in _AppStart.cshtml
body: <p>I am getting the following compilation error:</p>
  
  <pre><code>Compilation Error
  
  Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
  
  Compiler Error Message: CS0103: The name 'WebSecurity' does not exist in the current context
  
  Source Error:
  
  
  Line 1:  @{
  Line 2:      if (!WebSecurity.Initialized)
  Line 3:      {
  Line 4:          WebSecurity.InitializeDatabaseConnection("AreaProject", "User", "UserId", "EmailAddress", autoCreateTables: true);
  
  Source File: c:\Projects\area\trunk\dotNet\area.Web\area.Web\_AppStart.cshtml    Line: 2 
  enter code here
  </code></pre>
  
  <p>My project is correctly referencing to "System.Web" and my other files that are using " System.Web.Security" are compiling fine.</p>
  
  <p>The problem started when I added the references System.Web, System.Web.Pages and System.Web.Razor to my application. But I didn't make any change to WebMatrix.WebData or WebMatrix.Data.</p>