title: Error Creating Control - Object reference not set to an instance of an object
body: <p>I wrote this code:</p>
  
  <pre><code>#region Web Form Designer generated code
  override protected void OnInit(EventArgs e)
  {
      InitializeComponent();
      base.OnInit(e);
  }
  </code></pre>
  
  <p>and I get error:</p>
  
  <blockquote>
    <p>Error Creating Control - Object reference not set to an instance of an object</p>
  </blockquote>
  
  <p>I saw that blog: <a href="http://blogs.msdn.com/b/webdev/archive/2010/05/06/another-error-creating-control-in-the-design-view-with-object-reference-not-set-in-visual-studio-2010.aspx" rel="nofollow">http://blogs.msdn.com/b/webdev/archive/2010/05/06/another-error-creating-control-in-the-design-view-with-object-reference-not-set-in-visual-studio-2010.aspx</a> but it doesn't work for me.</p>