Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

NullReferenceException #193

@deekoulos

Description

@deekoulos

Hi @Shazwazza ,

thanks for your response here: umbraco/Umbraco-CMS#9635
Just for the record, here is the original issue description:

I am facing the same exceptions regarding ClientDependency for the third time now and have no clue how to reproduce them:

Very weird Path in the stack trace: C:\Users\Shannon\Documents...

Url: https://ourdomain/DependencyHandler.axd?s=L1NjcmlwdHMvY29tbW9uX3NjcmlwdHMuanM7L1NjcmlwdHMvdG9vbHMvanF1ZXJ5LnN0aWNreS1raXQubWluLmpzOy9TY3JpcHRzL3Rvb2xzL3RoZWlhLXN0aWNreS1zaWRlYmFyLm1pbi5qczsvU2NyaXB0cy9qUXVlcnkvanF1ZXJ5LnVub2J0cnVzaXZlLWFqYXgubWluLmpzOy9TY3JpcHRzL2pRdWVyeS9qcXVlcnkudmFsaWRhdGUubWluLmpzOy9TY3JpcHRzL2Z1bmN0aW9ucy5qczsvU2NyaXB0cy9qUXVlcnkvanF1ZXJ5LnZhbGlkYXRlLnVub2J0cnVzaXZlLm1pbi5qczsvU2NyaXB0cy90b29scy9tZGIubWluLmpzOy9TY3JpcHRzL2NvbXBhbnlQcm9maWxlLmpzOy9TY3JpcHRzL2dvb2dsZU1hcHNDb25zZW50LmpzOw

User Agent: (Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36)

Type: System.NullReferenceException

Exception Message: Object reference not set to an instance of an object.

StackTrace:

at ClientDependency.Core.CompositeFiles.CompositeDependencyHandler.ValidateRequest(HttpContext context, String& fileKey, ClientDependencyType& type, Int32& version) in C:\Users\Shannon\Documents_Projects\ClientDependency\ClientDependency\src\ClientDependency.Core\CompositeFiles\CompositeDependencyHandler.cs:line 37 at ClientDependency.Core.CompositeFiles.CompositeDependencyHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) in C:\Users\Shannon\Documents_Projects\ClientDependency\ClientDependency\src\ClientDependency.Core\CompositeFiles\CompositeDependencyHandler.cs:line 94 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

As you mentioned, I recreated the issue here instead, since this is not an Umbraco issue.

I am currently using Umbraco 8.10.1. with CD v1.9.9 and CDMVC5 v1.9.3. So CD is used by its latest version.

The first time this exception was recorder was this week on Monday. So I tried to figure out the possible cause of the issue, by checking the commits right before this Monday.

Here are some findings:

The first time any exception regarding the CD was raised, was on Friday Evening 04.12.2020:

The input is not a valid Base-64 string as it contains a   non-base 64 character, more than two padding characters, or an illegal   character among the padding characters.
--
at System.Convert.FromBase64_ComputeResultLength(Char* inputPtr,   Int32 inputLength) at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32   inputLength) at System.Convert.FromBase64String(String s) at   ClientDependency.Core.StringExtensions.DecodeFrom64(String toDecode) in   C:\Users\Shannon\Documents\_Projects\ClientDependency\ClientDependency\src\ClientDependency.Core\StringExtensions.cs:line   81 at ClientDependency.Core.StringExtensions.DecodeFrom64Url(String toDecode)   in   C:\Users\Shannon\Documents\_Projects\ClientDependency\ClientDependency\src\ClientDependency.Core\StringExtensions.cs:line   73 at   ClientDependency.Core.CompositeFiles.CompositeDependencyHandler.GetCombinedFiles(HttpContextBase   context, String fileset, ClientDependencyType type, List`1& fDefs) in   C:\Users\Shannon\Documents\_Projects\ClientDependency\ClientDependency\src\ClientDependency.Core\CompositeFiles\CompositeDependencyHandler.cs:line   297 at   ClientDependency.Core.CompositeFiles.CompositeDependencyHandler.ProcessRequestInternal(HttpContextBase   context, String fileset, ClientDependencyType type, Int32 version, Byte[]   outputBytes, OutputCachedPage page, Boolean& success) in   C:\Users\Shannon\Documents\_Projects\ClientDependency\ClientDependency\src\ClientDependency.Core\CompositeFiles\CompositeDependencyHandler.cs:line   214 at ClientDependency.Core.CompositeFiles.CompositeDependencyHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext   context) in   C:\Users\Shannon\Documents\_Projects\ClientDependency\ClientDependency\src\ClientDependency.Core\CompositeFiles\CompositeDependencyHandler.cs:line   135 at   System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

The same exception was repeated one day later. And on 7th December was the first time I recorded the NullReference Exception regarding the CD.

So I checked the commits before the first issue and found out, that on 1st of December (Friday evening) there was an auto upgrade for Umbraco Deploy, which modified the CD Config from:

<clientDependency version="1705826504" fileDependencyExtensions=".js,.css" loggerType="Umbraco.Web.CdfLogger, Umbraco.Web">
to
<clientDependency version="1386451558" fileDependencyExtensions=".js,.css" loggerType="Umbraco.Web.CdfLogger, Umbraco.Web">

I dont know if this is causing the issues, but after every Umbraco upgrade, the version numbers of CD were jumping sometimes backwards, sometimes forewards.

I just updated the version number to the last working one +1, and will observe, if the issue is gone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions