IMHO, this is slightly "off-topic" question for this list and you might want to ask Microsoft Support about .Net and Visual Basic things. But you might find the section 3.2 from the xmlsec library FAQ usefull: http://www.aleksey.com/xmlsec/faq.html Aleksey