Unknown asp server tag: EntityDataSource '

I uploaded my files to my remote server with ASP.Net 3.5 support. Website designed using ASP.Net 3.5 and Entity Framework. I also copied the dlls to the bin folder. But I get the following error:

arser Error Description: An error occurred while parsing the resource required to service this request. Review the following parsing details and modify the source file accordingly.

Parser error message: Unknown server tag: asp: EntityDataSource.

+3
source share
1 answer

In the section of compilationyour web.config you need to add:

<compilation debug="true" defaultLanguage="C#">
  <assemblies>
    <add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    <add assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  </assemblies>
</compilation>

controls :

  <controls>
    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  </controls>
+3

Source: https://habr.com/ru/post/1735003/


All Articles