Lee Crowe
Apr 27, 2011
  3461
(4 votes)

IMPORTANT: .ASPX file caching/compilation issues caused by my open source assemblies

The Problem

Some of us over the last few months have been experiencing issues within our EPiServer sites where when we have been changing .aspx, .ascx and other files within our web application the changes have not been reflected when viewing the pages in our web browsers.

Today I noticed an issue that was logged against my FilteredPageReference assembly http://episerverfpr.codeplex.com/workitem/list/basic. which pointed at the assembly causing the compilation/caching issues we have been experiencing

The Cause

The search and replace plugin I developed last year uses embedded resources and custom resource path provider classes.  During development I had issues with my ResourcePathProvider class and more specifically the GetCacheDependency method within it.

I was retrieving exceptions when browsing to some of my virtual resources telling me that the folder they lived in didn’t exist.  At the time to resolve the issue I created a cache dependency against the web.config.

Unfortunately the result of this has caused the issues mentioned above.

The Solution

I have updated all of the projects that have been affected by the issue, new versions of the assemblies can be downloaded using the following links:

Sorry Guys and Gals Sad smile

I apologise if this has caused some of you some headaches.  It certainly has caused myself and my colleagues headaches over the last few months.

What more can I say, this is software development and bugs creep in but all should be sorted now!

Apr 27, 2011

Comments

seth@blendinteractive.com
seth@blendinteractive.com Apr 27, 2011 04:45 PM

Thanks for the update and especially being so open about it. Glad to know there is a resolution!

Deane Barker
Deane Barker Apr 27, 2011 04:46 PM

Thanks for this, Lee. It had become a big problem for us. I really appreciate you stepping up and posting the solution.

Erik Nordin Wahlberg
Erik Nordin Wahlberg Apr 27, 2011 04:51 PM

I'm using https://www.coderesort.com/p/epicode/wiki/GoogleAnalyticsAPI which also uses embedded resources via a handler. Wonder if this is the issue in my case... If it is, I will send you some big big love! :)

Stefan Forsberg
Stefan Forsberg Apr 28, 2011 08:20 AM

Very well handled Mr Crowe!

Apr 28, 2011 01:21 PM

Yay, its the same issue with the GoogleAnalyticsAPI-code as well...!!

The code should of course check against the virtualPath before handing out the NeverExpiresCacheDependency, just like is done in the other methods...(!)

Good catch!!!

/johan

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024