Unknown server tag 'asp:LinqDataSource'

If you're getting an error saying that the asp:LinqDataSource is unknown, you most likely is missing the declaration in your web.config file. To fix this:

  1. Open your web.config file and locate the <controls> block.
  2. Add the following element: <add assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.UI.WebControls" tagprefix="asp"> into the <controls&gt; block.
  3. Reload the page and see it working :)

Related posts:


comments powered by Disqus