This error occurs when the application cannot access the voice to use SpeechSynthesizer. The first possible reason is the absence of any established votes in the system. This is most likely not a problem, but you should still double-check it by doing something like the following code:
SpeechSynthesizer ssTest = new SpeechSynthesizer();
System.Diagnostics.Debug.WriteLine(ssTest.GetInstalledVoices().Count);
Assuming the above number returns a number above 0, the problem is probably the more complex problem when setting the security settings of your application.
SpeechSynthesizer, SetOutputToWaveFile, , . (, -, SpeechSynthesizer), -. IIS . , , , , : , LocalSystem.
, , .