FatAntelope icon indicating copy to clipboard operation
FatAntelope copied to clipboard

Error when creating Transformed File

Open divakaraj opened this issue 3 years ago • 3 comments

Microsoft.Web.XmlTransform.XmlNodeException: 'No element in the source document matches '/configuration/runtime/assemblyBinding/dependentAssembly[27]''

Inner Exception: XmlTransformationException: No element in the source document matches '/configuration/runtime/assemblyBinding/dependentAssembly[27]

Rename the file extension from .txt to .config and try running the app against the files with the option to generate the transformed file. Files : old.txt new.txt

Error Screenshot : image

divakaraj avatar Aug 05 '22 18:08 divakaraj

Thanks @divakaraj for submitting the issue. I'm still investigating - but appears to be two problems.

One if which is that the <assemblyBinding> element has a unqualified namespace defined: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

Which breaks that standard XPATH expressions that name-based paths like: /configuration/runtime/assemblyBinding/dependentAssembly[27]

There isn't a straightforward way to address this, but I'm looking at how I can add support for paths inside different namespaces. As well as fix another small bug I found causing the wrong index [27] to be referenced.

CameronWills avatar Aug 26 '22 02:08 CameronWills

Thanks @CameronWills

divakaraj avatar Sep 13 '22 03:09 divakaraj

Hi @CameronWills Was there any fix found for this ? Appreciate the help . Thanks in advance

divakaraj avatar Nov 28 '22 16:11 divakaraj