dotnet / dotnet/dotnet-api-docs

XmlDsigXPathTransform sample fails

Open
#3,275 0 comments 0 reactions 0 assignees View on GitHub
area-System.Security doc-bug Pri3
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Moved from https://github.com/aspnet/Docs/issues/5641
cc @rpetrusha
See [XmlDsigXPathTransform Class
](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.xml.xmldsigxpathtransform?view=netframework-4.7)

test sample. Copy from [this bug](https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/200269)

-----------------------
Problem Description
-----------------------
Description: After MS16-035 security update this code from MSDN doesn't work:

`[Edit: here is the dotnet link]` See [XmlDsigXPathTransform Class
](https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.xml.xmldsigxpathtransform?view=netframework-4.7)

https://msdn.microsoft.com/library/system.security.cryptography.xml.xmldsigxpathtransform.xmldsigxpathtransform%28v=vs.110%29.aspx

`[Edit - not needed to repo]`
Repro Steps:- Install MS16-035
- compile and execute exampkle from: https://msdn.microsoft.com/it-it/library/system.security.cryptography.xml.xmldsigxpathtransform.xmldsigxpathtransform%28v=vs.110%29.aspx

Impact:Unable to verify XML signed document

---------------------------

Run sample and you get the following output:

```
New XML file created.
XML file signed.
Verifying signature...
The XML signature is not valid.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.