string xxxx= "F5BE3CEC-81DE-46C5-BA32-49A61039BEE9"; passing this Guid as parameter to a method . i want use unsured Config .. how to get this string from unsecured config ?
*This post is locked for comments
string xxxx= "F5BE3CEC-81DE-46C5-BA32-49A61039BEE9"; passing this Guid as parameter to a method . i want use unsured Config .. how to get this string from unsecured config ?
*This post is locked for comments
Hi navauyht,
Please do remember to close this thread (and your previous threads) when you get the answer to your question by marking the helpful suggested answer. This will help other looking for the help on the same/similar issue.
Hope you understand.
Hi ,
Please have a look below reference -
https://sandeepkolarveettil.wordpress.com/2012/11/10/how-to-read-unsecure-configuration/
XML should look like below -
<?xml version="1.0" encoding="utf-8"> <Settings> <setting name="ReportExc_ReportExecutionService"> <value>localhost/.../ReportExecution2005.asmx</value> </setting> <setting name="GUIDVALUE"> <value>F5BE3CEC-81DE-46C5-BA32-49A61039BEE9</value> </setting> </Settings>
Hi,
you can access the value in plugin constructors. You can build your unsecure configuration in XML.
Example: <?xml version="1.0" encoding="UTF-8"?>
<guid>
<value>F5BE3CEC-81DE-46C5-BA32-49A61039BEE9</value>
</note>
//Use if you have both secure and unsecure configrations
public PluginConstructor(string unsecureConfig, string secureConfig)
{
//Load the unsecure configuration in xml doc
xmlDoc = new XmlDocument();
xmlDoc.LoadXml(unsecureConfig);
}
//Use for unsecure config
public PluginConstructor(string unsecureConfig)
{
xmlDoc = new XmlDocument();
xmlDoc.LoadXml(unsecureConfig);
}
Thanks,
Abhishek
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156