none
Can't set PropagatedNamespaces for XmlDsigC14NTransform RRS feed

  • Question

  • Can't set PropagatedNamespaces for XmlDsigC14NTransform. This is my source code:

    XmlDsigC14NTransform^ c12n = gcnew XmlDsigC14NTransform();

    System::Collections::Hashtable^ hashtable = gcnew System::Collections::Hashtable();

    hashtable->Add("xsi", "http://namespace");

    c12n->PropagatedNamespaces = hashtable;

    Under c12n on the last line it says:

    System::Collections::Hashtable ^System::Security::Cryptography::Xml::PropagatedNamespaces::get()
    
    Error: property "System::Security::Cryptography::Xml::PropagatedNamespaces" (declared in "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Security.dll") has no 'set' accessor

    This is very weird because in XmlDsigC14NTransform Class description it says "Gets or sets a Hashtable object that contains the namespaces that are propagated into the signature" under PropagatedNamespaces property.

    I'm using Visual Studio 2013 and the project has been set for NET Framework 4.0.

    Is there any way around it?

    Friday, March 6, 2015 9:38 AM

Answers

  • Hello,

    >>This is very weird because in XmlDsigC14NTransform Class description it says "Gets or sets a Hashtable object that contains the namespaces that are propagated into the signature" under PropagatedNamespaces property.

    In my opinion, this description should be correct, as we can see, it says:

    The PropagatedNamespaces property is set automatically during signature computation and checking, but before transforms are invoked.

    So I think the Set function is automatically done during signature computation and could not be set manually. However, from its provided description and syntax, it might make people confused, I have submit a feedback to this MSDN site:

    http://feedback.msdn.com/forums/257782-msdn-feature-suggestions/suggestions/7186278-transform-propagatednamespaces-mismatch-between-i

    You could vote it so that its priority could be improved.

    >> Is there any way around it?

    Since as it describes, this property is set automatically during signature computation, manual action is not possible.

    Regards,

    Fred.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Andrius Dee Monday, March 9, 2015 8:32 AM
    Monday, March 9, 2015 3:29 AM
    Moderator

All replies

  • Hello,

    >>This is very weird because in XmlDsigC14NTransform Class description it says "Gets or sets a Hashtable object that contains the namespaces that are propagated into the signature" under PropagatedNamespaces property.

    In my opinion, this description should be correct, as we can see, it says:

    The PropagatedNamespaces property is set automatically during signature computation and checking, but before transforms are invoked.

    So I think the Set function is automatically done during signature computation and could not be set manually. However, from its provided description and syntax, it might make people confused, I have submit a feedback to this MSDN site:

    http://feedback.msdn.com/forums/257782-msdn-feature-suggestions/suggestions/7186278-transform-propagatednamespaces-mismatch-between-i

    You could vote it so that its priority could be improved.

    >> Is there any way around it?

    Since as it describes, this property is set automatically during signature computation, manual action is not possible.

    Regards,

    Fred.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Andrius Dee Monday, March 9, 2015 8:32 AM
    Monday, March 9, 2015 3:29 AM
    Moderator
  • Voted. Btw, why is the Microsoft Feedback site doesn't support Live login?

    Monday, March 9, 2015 6:00 AM
    Answerer
  • Thanks for the clarification. I wish I could set it manually, though.
    Monday, March 9, 2015 8:32 AM