User-546255406 posted
Hi,
I am using asp net regiis to encrypt 'appsettings' in web.config but encryption does not encrypt key/value if it's value contains '&'. If I remove '&' then it works well.
e.g,
<appsettings >
<add key="testuserpassword" value="&+!@47v*k#"/>
</appsettings >
I am using below commands
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis.exe -pef "appSettings" <%WebConfigPath%>
I got below error:
-------------------------------------------------------------------------
an error occurred while parsing entity name. Line 73, position 36.
---------------------------------------------------------------------------
Any idea why asp net regiis encryption does not encrypt password with '&'
Regards,
surya