title: somthing._Default is not allowed here because it does not extend class 'System.Web.UI.Page'
body: <p>This has got to be one of the most frustrating issues with asp.net. I first got the error parser error cannot load default and as I have done before checked if the naming was correct in th bin folder and made the changes accordingly.
  Now I get the following error:</p>
  
  <p>somethiing._DEfault is not allowed here because it does not extend class 'System.Web.UI.Page'</p>
  
  <p>where something is the name of the project in the properties. I have the following code in Default:</p>
  
  <pre><code>Namespace FormDiscovery
  
  
  
  Partial Class _Default
      Inherits System.Web.UI.Page
  
  
      Shared settings As New System.Configuration.AppSettingsReader
      Shared connObj_Generic As New SqlConnection
      Shared commObj_Generic As New SqlCommand
  
      Shared count As Integer
      Shared num As Integer
  
       etc..
  </code></pre>
  
  <p>Now I have deleted the project and other in the solution and created a new one and still this error and if I take the 'something' name away I get the cannot load default error.</p>