title: No parameterless constructor defined for this object ASP.NET Website
body: <p>I am getting error anyone can help me please. I'm using dotnet framework 4 with linq to sql
  below is the stack trace</p>
  
  <pre><code>No parameterless constructor defined for this object.
  </code></pre>
  
  <p>Description: An unhandled exception occurred during the execution of the current web     request. Please review the stack trace for more information about the error and where it    originated in the code. </p>
  
  <p>Exception Details: System.MissingMethodException: No parameterless constructor defined for this object.</p>
  
  <p>Source Error: </p>
  
  <p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</p>
  
  <p>Stack Trace: </p>
  
  <pre><code> [MissingMethodException: No parameterless constructor defined for this object.]
     System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached, RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck) +0
     System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark) +113
     System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark) +232
     System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
     System.Activator.CreateInstance(Type type) +6
     System.Web.HttpRuntime.FastCreatePublicInstance(Type type) +78
     System.Web.UI.WebControls.LinqDataSourceView.CreateContext(Type contextType) +6
         System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTable(DataSourceOperation operation) +799
     System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTableForSelect() +137
     System.Web.UI.WebControls.LinqDataSourceView.CreateContext(DataSourceOperation operation) +12
     System.Web.UI.WebControls.ContextDataSourceView.GetSource(QueryContext context) +20
     System.Web.UI.WebControls.LinqDataSourceView.GetSource(QueryContext context) +325
     System.Web.UI.WebControls.LinqDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +63
     System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
     System.Web.UI.WebControls.DataBoundControl.PerformSelect() +138
     System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30
     System.Web.UI.WebControls.GridView.DataBind() +4
     System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +105
     System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
     System.Web.UI.Control.EnsureChildControls() +83
     System.Web.UI.Control.PreRenderRecursiveInternal() +42
     System.Web.UI.Control.PreRenderRecursiveInternal() +155
     System.Web.UI.Control.PreRenderRecursiveInternal() +155
     System.Web.UI.Control.PreRenderRecursiveInternal() +155
     System.Web.UI.Control.PreRenderRecursiveInternal() +155
     System.Web.UI.Control.PreRenderRecursiveInternal() +155
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974
  
  Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET     Version:4.0.30319.18446
  </code></pre>