.net - Assembly Redirection not working as expected -
I am trying to implement powerful signaling in my project assemblies.
My project output is persistent in XML and has been made as a type of mention (before signing): typestr = "XYZ.PQR, MyWidget , After signing the public key with token with all sovereigns, 622edca63ee1770c, version = 1.0.2406.20198, culture = neutral, public keynote = zero "
I & lt; Assembly binding & gt; Block my app.config file as follows:
& lt; Assembly binding & gt; & Lt; DependentAssembly & gt; & Lt; Legacy ID name "" MyWidget "publicKeyToken =" 622edca63ee1770c "culture =" neutral "/> & bt; binding redirects older version =" 1.0.2406.20198 "Newverson =" 0.1.27.10695 "/>
I still get the error:
The file or the assembly could not be loaded ' EPGWidget, variant = 1.0.2406.20198, clear definition of assembly = neutral, public keytone = 622 agcasi 63b17 'or one of its dependencies, assembly reference Does not match. (Exception from HRESULT: 0x80131040)
When there is a piece of code:
type type = type .Gettype (typester)
The following is executed. However, it works for:
typestr = "XYZ.PQR, MyWidget" < / Pre>
If you are serial in the form of xml, then what kind of information is there? Objectives of XML from the serialization One of the remove type mate Is it an array or something else? There may be better ways to sort this data.
Legislators do not redirects, AFAIK work with string-based reflections; If it does not match the correct name, then it does not match. The last example does not specify signature details, which allows it to accept any.
Personally, I try to fix the issue of keeping type information in XML - this is probably an easy, more appropriate, fight to fight
Comments
Post a Comment