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:
- Open your web.config file and locate the <controls> block.
- Add the following element: <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.UI.WebControls" tagprefix="asp"> into the <controls> block.
- Reload the page and see it working :)
Related posts: