Unhandled Exception when trying to run the Policy Evaluator LASR export.

Article:TECH163965  |  Created: 2011-07-05  |  Updated: 2011-09-27  |  Article URL http://www.symantec.com/docs/TECH163965
Article Type
Technical Solution


Environment

Issue



When trying to run the Policy Evaluator LASR export an Unhandled Exception is returned.


Error



C:\Program Files (x86)\Risk Automation Suite\SFPolicyEvaluator>PolicyEvaluator.exe -analyzenow
 
 Unhandled Exception: System.Configuration.ConfigurationErrorsException:
 Failed to decrypt using provider 'GideonProtectedConfigurationProvider'. Error
 message from the provider: Root element is missing. (C:\Program Files (x86)\Risk
 Automation Suite\SFPolicyEvaluator\PolicyEvaluator.exe.config line 4) ---> System.
 Xml.XmlException: Root element is missing.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean prese
rveWhitespace)
    at System.Xml.XmlDocument.Load(XmlReader reader)
    at System.Xml.XmlDocument.LoadXml(String xml)
    at GideonTechnologies.GideonProtectedConfigurationProvider.Decrypt
 (XmlNode encryptedNode)
    at System.Configuration.ProtectedConfigurationSection.DecryptSection
 (String encryptedXml, ProtectedConfigurationProvider provider)
    at System.Configuration.Internal.InternalConfigHost.System.
 Configuration.Internal.IInternalConfigHost.DecryptSection(String encryptedXml,
 ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection
 protectedConfigSection)
    at System.Configuration.Internal.DelegatingConfigHost.DecryptSection (String encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection)
    at System.Configuration.Internal.DelegatingConfigHost.DecryptSection (String encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection)
    at System.Configuration.BaseConfigurationRecord.CallHostDecryptSection (String encryptedXml, ProtectedConfigurationProvider protectionProvider,
 ProtectedConfigurationSection protectedConfig)
    at System.Configuration.BaseConfigurationRecord.DecryptConfigSection
 (ConfigXmlReader reader, ProtectedConfigurationProvider protectionProvider)
    --- End of inner exception stack trace ---
    at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[]  keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord
 sectionRecord, Object parentResult)
    at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord
 factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg,
 Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
    at System.Configuration.BaseConfigurationRecord.GetSectionRecursive (String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
    at System.Configuration.BaseConfigurationRecord.GetSection(String configKey,
 Boolean getLkg, Boolean checkPermission)
    at System.Configuration.Configuration.GetSection(String sectionName)
    at System.Configuration.Configuration.get_ConnectionStrings()
    at DatabaseLibrary.DatabaseBaseConfiguration..ctor(String ConfigSectionName)
    at PMEval.PMEval._Main()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
 
 


Cause



The command prompt was not being run with elevated privileges


Solution



When opening the command prompt choose to run as Administrator.




Article URL http://www.symantec.com/docs/TECH163965


Terms of use for this information are found in Legal Notices