Video Screencast Help

EV PST Task Locator fails

Created: 12 Jul 2013 • Updated: 12 Jul 2013 | 7 comments
This issue has been solved. See solution.
I am running EV 10.0.3 on Windows 2008 R2
Since I upgraded from EV 9.0.2 to 10.0.3, when I run the PST Locator Task, it starts and stops almost immediately and I get the following:
 
Event ID: 40969
 
Unable to access Configuration File settings.
File: E:\Program Files\Enterprise Vault\PstLocatorTask.exe.Config
Section: managedProcess
Reason: Configuration system failed to initialize
 
 
Event ID: 40966
 
A program fault has raised an exception.
 
Exception: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element. (E:\Program Files\Enterprise Vault\PstLocatorTask.exe.Config line 6)
Diagnostic: 
Type: System.Configuration.ConfigurationErrorsException
Reference: 
 
Command Line: "E:\Program Files\Enterprise Vault\PstLocatorTask.exe" -URL:tcp://172.27.8.203:56145/135fe6ec_35b6_48df_bc5b_5ebf018a0475/KVS.EnterpriseVault.ProcessManager29037087 -
 
CUSTOM:1FDCCE5E4BBCFCC47A4C67DE0FB25BB831012200AMERVAULT01|False|0|1|0|0| 
Application Domain: PstLocatorTask.exe
Process Id: 16900
Thread Id: 13176
Stack Trace:    at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
   at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
   at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
   at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) 
 
 
 
Event ID: 40967
 
1FDCCE5E4BBCFCC47A4C67DE0FB25BB831012200AMERVAULT01 - Restarting failed process.
 
The process has failed abnormally and will be restarted automatically. 
 
 
This is the Contents of PstLocatorTask.exe.Config
 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <runtime>
    <generatePublisherEvidence enabled="false" />
  </runtime>
  <configSections>
    <section name="PSTSettings" type="System.Configuration.DictionarySectionHandler" />
  </configSections>
</configuration>
 
 
 
Any help is appreciated. Thank you.
 
Operating Systems:

Comments 7 CommentsJump to latest comment

JesusWept3's picture

Change it from this

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <runtime>
    <generatePublisherEvidence enabled="false" />
  </runtime>
  <configSections>
    <section name="PSTSettings" type="System.Configuration.DictionarySectionHandler" />
  </configSections>
</configuration>

To this
 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="PSTSettings" type="System.Configuration.DictionarySectionHandler" />
  </configSections>
  <runtime>
    <generatePublisherEvidence enabled="false" />
  </runtime>
</configuration>
SOLUTION
Leonardo Fernandez 2's picture

Well, that did then trick. Do you know what would of flipped the <runtime> and <configSections>?

JesusWept3's picture

truly no idea
to be honest in mine on 9 SP3 it just has the <configuration><runtime></runtime></configuration> settings
and on my 10 SP3 lab its the same, it doesn't have the configSections part, so i've no idea where that came from.

So whatever added it just put it in the wrong place, no idea why or how that could have happened
And for what its worth, the error tells you what you need to do, it just doesn't seem very clear at the beginning

Exception: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element.

So in this case you had
<configuration><runtime></runtime><configSections></configSections></configuration>

And its saying it *must* be <configuration><configSections></configSections> ...... 
This would be the same for any .NET application
 

Rob.Wilcox's picture

Sounds like the copy and paste for the generatepublisherevidence just happened to go in the wrong place?

Leonardo Fernandez 2's picture

Is there a way I can tell PST locator to search only in a specific location for PSTs. I remember adding a regedit in the past, in earlier version of EV, for this. But i can't remember what it was.

Leonardo Fernandez 2's picture

Can I add entries like this to the config file: <add key="SharesToAvoid" value = "\\servername\E$"/>, to restrict PST locator to a specific drive? I would prefer to restrict it to a specific folder though, if possible.

Leonardo Fernandez 2's picture

Rob.Wilcox: yeah, your right, I should of, sorry about that :) I don't search users' PCs for PSTs. When we find them, we copy them to a folder on the EV server named UserPSTs, on the P: drive and search there. That's why I thought i could configure the PST locator to search for PSTs only in this folder.