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

Forums / Bugs & Issues / Unable to generate etag from dependencies.

Unable to generate etag from dependencies.

4 posts, 0 answered
  1. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    19 Feb 2010
    Link to this post
    When I updated the home page's Title value and saved the page I got the following exception:

    Exception information:
        Exception type: HttpException
        Exception message: Unable to generate etag from dependencies. One of the dependencies couldn't generate a unique id.

    Stack trace:    at System.Web.HttpCachePolicy.UpdateFromDependencies(HttpResponse response)
       at System.Web.HttpCachePolicy.UpdateCachedHeaders(HttpResponse response)
       at System.Web.HttpCachePolicy.GetCurrentSettings(HttpResponse response)
       at System.Web.Caching.OutputCacheModule.OnLeave(Object source, EventArgs eventArgs)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    I went back to the page and changed the value back to what it was. This corrected the problem.

    How do we make sure this doesn't happen in future?

    Regards,
    Jacques
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Feb 2010
    Link to this post
    Hi J.Hoventer,

    ETags are GUIDs. In your case the Guid seems not to be generated or it is not valid due to some configuration( IIS , load balancer or some values for the ASP.NET caching) . It seems that you use  SlidingExpiration and  ASP.NET caching for pages where SetETagFromFileDependencies is called. This method  creates an ETag by combining the file names and last modified timestamps for all files on which the handler is dependent. ETag values are unique identifiers that are generated by the server and changed every time the object is modified.

    All the best,
    Ivan Dimitrov
    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. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    23 Feb 2010
    Link to this post
    Hi Ivan, thanks for the response,

    But I must admit, I'm not sure what I should be doing about this. Is this a problem that can be sorted out, is this something caused by Asp.net or Sitefinity?

    Regards,
    Jacques
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    23 Feb 2010
    Link to this post
    Hello J.Hoventer,

    Thank you for getting back to us.

    Could you please try to turn off ETags for the website and see what the result would be. You can take a look at the following blog post for reference: IIS7 Deployments calls for ETag Usage Review if using, take a look at the last comment for insight on who to "disable" ETag.

    Best wishes,
    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