How to Modify web.config <SafeControl> for LinqDataSource with 3.5

Rate It (1)

Last post 04-28-2008 4:45 AM by Jeyaramanss. 1 replies.

Sort Posts:

  • How to Modify web.config <SafeControl> for LinqDataSource with 3.5

    04-25-2008, 10:10 AM
    • Member
      point Member
    • Jeyaramanss
    • Member since 04-25-2008, 9:48 AM
    • Posts 6

    Hi,

     Im using VS2008 and 3.5 Framework. In my project im created webpart that will load any usercontrol in SharePoint site, for the same i need to add some stuff in web.config. when running process im adding usercontrol with LinqDataSource, where im getting error that "Unknown Server tag as <asp:LinqDataSource>", for this need i need to add new SafeControl Asssembly for LinqDataSource like this...

    <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="ObjectDataSource" Safe="False" AllowRemoteDesigner="False" />

    Can anyone help me to fix the error...

    Regards

    Jai


  • Re: How to Modify web.config <SafeControl> for LinqDataSource with 3.5

    04-28-2008, 4:45 AM
    • Member
      point Member
    • Jeyaramanss
    • Member since 04-25-2008, 9:48 AM
    • Posts 6
    For my previous post i found the solution myself and for your reference its shared below..

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

    <SafeControls>
     <SafeControl Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.WebControls" TypeName="LinqDataSource" Safe="False" AllowRemoteDesigner="False" />
    </SafeControls>

    Regards
    Jai
Page 1 of 1 (2 items)