+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Sitefinity 3.7 - Cache, Add Controls, get IOdbClass error

Sitefinity 3.7 - Cache, Add Controls, get IOdbClass error

4 posts, 0 answered
  1. Ruben Herrera
    Ruben Herrera avatar
    38 posts
    Registered:
    10 Jul 2009
    18 Mar 2010
    Link to this post
    Hi,

    I am getting several error mesages with Sitefinity 3.7.2057.2:0:

    Steps:

    1)Create MasterPage A with ContentPlaceHolders

    2)Create Page A, using MasterPage A

    3)Add a User Control to Page A (sqlDataSource with cache enable and repeater)

    4)Publish Page A

    5)Set properties Page A, disable viewState and activate cache. First error:


    [HttpException (0x80004005): No se pudo generar etag de las dependencias. Una de las dependencias no pudo generar un identificador único.]
       System.Web.HttpCachePolicy.UpdateFromDependencies(HttpResponse response) +2814513
       System.Web.HttpCachePolicy.UpdateCachedHeaders(HttpResponse response) +462
       System.Web.HttpCachePolicy.GetCurrentSettings(HttpResponse response) +20
       System.Web.Caching.OutputCacheModule.OnLeave(Object source, EventArgs eventArgs) +8779832
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

    6)Fix with uncheck “Use default settings”, Cache Page Properties.

    7)Publish Page A

    8)Add ContentPlaceHolder to MasterPage A

    9)Try to use any ContentPlaceHolder in Page A, add a new control, get error:

    [InvalidOperationException: IOdbClass must be joined to a transaction.]
       Telerik.Cms.Data.StagedPage.AddControl(String containerId, Type type, Int32 ordinal, String controlId) +111
       Telerik.Cms.Data.StagedPage.AddControl(String containerId, Type type, String controlId) +91
       Telerik.Cms.Web.UI.ToolBar.AddContol(String controlName, String zoneId, Int32 ordinal) +542
       Telerik.Cms.Web.UI.ToolBar.AddContol(String controlName, String zoneId) +45
       Telerik.Cms.Web.UI.Toolbox.Button_Command(Object sender, CommandEventArgs e) +315
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +108
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    Thanks in advance.

    Rubén

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    22 Mar 2010
    Link to this post
    Hi Ruben Herrera,

    Thank you for using our services.

    Could you please let us know which version of Sitefinity are you using? Also please show us a sample of your control you add, as I think the issue might be related to that particular control. Can you reproduce this issue with the built in controls?

    Looking forward to your response.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Ruben Herrera
    Ruben Herrera avatar
    38 posts
    Registered:
    10 Jul 2009
    22 Mar 2010
    Link to this post
    Hi Radoslav Georgiev,

    I´m using 3.7 SP2.
    Release Sitefinity 3.7 SP2
    3.7.2057.2 - standard

    There is not issue with the built in controls, I just test it.
    I agree with you, New Control is the problem.
    I think it when I writed post, maybe there is a conflict between sqlDataSource with cache enable and page cache, remember 3º point (first post):
    3)Add a User Control to Page A (sqlDataSource with cache enable and repeater).

    Control has several SqlDataSource and Repeaters, example:
         <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                        ConnectionString="<%$ ConnectionStrings:Sitefinity %>"  
    SelectCommand="SELECT DISTINCT sf_GCMetaData.LangID, sf_GCMetaData.KeyValue, sf_GCMetaData.ShortText, sf_GCMetaData.CntPrntID FROM sf_GCMetaData INNER JOIN (SELECT ContentID, LangID, KeyValue, Application, ValueType, ShortText, CntPrntID FROM sf_GCMetaData AS sf_GCMetaData_1 WHERE (ShortText = @ShortText)) AS derivedtbl_1 ON sf_GCMetaData.ContentID = derivedtbl_1.ContentID AND sf_GCMetaData.KeyValue = @KeyValue"
    EnableCaching="True" EnableViewState="False">
                        <SelectParameters>
                            <asp:QueryStringParameter DefaultValue="Cat_2" Name="ShortText"
                                QueryStringField="Queryparam1" />
                            <asp:Parameter DefaultValue="Queryparam2" Name="KeyValue" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                     
           <asp:Repeater ID="Repeater2" runat="server"  DataSourceID="SqlDataSource1">
                            <HeaderTemplate>
                                 <h1>Items</h1>
                               
                                    <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                                                                 
                                     <li><%#Eval("ShortText") %></li>
                                     
                            </ItemTemplate>
                            <FooterTemplate>
                                    </ul>
                                
                            </FooterTemplate>
                        </asp:Repeater>

    I have resolved creating new page and deleting old one, but I want to now wich is the real problem.

    Thanks in advance.
    Rubén
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    25 Mar 2010
    Link to this post
    Hello Ruben Herrera,

    I think the problem was due to invalid cache, however I am not quite sure what would cause this. I have used cache enabled data source controls before, however I have not experienced this issue. If I find any more information I will get back to you.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 0 answered