c# - Storing public key in web.config file -
i trying store public key in web.config file of asp.net website follows:
<add key="public_key" value="<rsakeyvalue><modulus>zdyx4tbhsytrwdmjsxiifto0ydgk50zxth2lgl90owrshmgy16wod7azmfm8cmd/rxl3ocipltmhswybb0xzl6lnf8uji90s2tbhyemx3tkrqccw6pzfgbwwlwszhanidbibrtownimbg4ehzc5yxg3r6iyubety9xjkl1tiezu=</modulus><exponent>aqab</exponent></rsakeyvalue>"/>
this code located inside appsettings section of web.config file. unfortunately, giving me following warning along number of other errors:
warning 6 element 'appsettings' has invalid child element 'rsakeyvalue'. list of possible elements expected: 'add, remove, clear'.
how can solve problem please? thank :)
you need escape special characters (<
<
, >
>
) in case, because in current state turn web.config invalid xml.
here escaped string obtained here:
<rsakeyvalue><modulus>zdyx4tbhsytrwdmjsxiifto0ydgk50zxth2lgl90owrshmgy16wod7azmfm8cmd/rxl3ocipltmhswybb0xzl6lnf8uji90s2tbhyemx3tkrqccw6pzfgbwwlwszhanidbibrtownimbg4ehzc5yxg3r6iyubety9xjkl1tiezu=</modulus><exponent>aqab</exponent></rsakeyvalue>
Your site provides good and helpful information. It is good for newcomers. Thanks for sharing this information. I am a gamer and I would like to suggest to you an auto-clicker
ReplyDeletewhich is really interesting. Autoclicker
I get very helpful and useful information from your site . It aslo helpful for newcomers , keep going . I am a gamer and I would like to suggest to you something whichis really interesting . You may Visit here
ReplyDeleteHello,
ReplyDeleteI read your article and it is amassing. Your site provides good and helpful information. It is good for newcomers. Thanks for sharing this information. I am a gamer and I would like to suggest to you an auto-clicker
which is really interesting visit here
Hello,
ReplyDeleteThank you for sharing the very informative post. This is very useful for the understand but I have also the one website I hope you enjoy it visit here