Xml post with ServerXMLHTTP timeout

I am working on two sites. One of them is a classic asp site that posts xml to a new asp.net website (.net 3.5). The classic asp site uses the msxml serverxmlhttp file in vbscript to send this xml. This all works until I make the seemingly unrelated changes on the asp.net site.

When I add a few lines of code that uses System.Speech.Synthesis to generate a wav file from text, it is at times classified as a serverxmlhttp.send command. As far as I can tell, the asp.net page is working fine, it does it after a few new lines of code with no problem (wav file is created). Several lines of speech code causing the problem are executed well before the timeout.

It seems that the asp.net page was actually sending some sort of confirmation to the classic page that is no longer being sent. I should also point out that the speech code was throwing an exception saying it should be asynchronous, which I fixed by adding Async = "true" to. However, it works when async = "true", it is only the speech lines that break it. "Problem code" is just

SpeechSynthesizer speaker = new SpeechSynthesizer();
speaker.Volume = 100;
speaker.SelectVoiceByHints(System.Speech.Synthesis.VoiceGender.Female, System.Speech.Synthesis.VoiceAge.Adult, 0);

try
{
    speaker.SetOutputToWaveFile("c:\\test\\output.wav");
}
catch (Exception ex)
{
    retVal = false;
}

speaker.Speak(msgText);
speaker.SetOutputToDefaultAudioDevice();

      

Does anyone have any suggestions on what might be wrong or what I can use to help debug this?

+1


source to share


1 answer


It seems that the asp.net page was actually sending some sort of confirmation to the classic page which no longer gets posted

It looks like you should research it more so that you can tell us the reaction of the server response before and after. Also please include an exception.



My guess is that these APIs won't work well in the maintenance process. I have no idea actually. I'm wondering about the exception, you don't know what you did async.

0


source







All Articles