Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:47:35+00:00 2026-06-17T05:47:35+00:00

I have a ASP.NET application that does text to speech TTS. The code works

  • 0

I have a ASP.NET application that does text to speech TTS. The code works fine on local machine but when I deploy it on windows 2008 R2 server Enterprise 64 bit, the application pool just crashes. The application is made of v4.0 .NET framework. I am using IIS 7 on server. Below is the error when application pool crashes.

Service Unavailable

HTTP Error 503. The service is unavailable.

Here is the code which should I added ealier

        MemoryStream ms = new MemoryStream();

        context.Response.ContentType = "audio/wav";

        Thread t = new Thread(() =>
        {
            SpeechSynthesizer ss = new SpeechSynthesizer();
            ss.SetOutputToWaveStream(ms);
            ss.Speak(context.Request.QueryString["tts"]);
        });
        t.Start();

        t.Join();
        ms.Position = 0;
        ms.WriteTo(context.Response.OutputStream);
        context.Response.End();

Any help will be appreciated

Thanks

Here is more details of Exception

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/17/ROOT

Process ID: 5340

Exception: System.UnauthorizedAccessException

Message: Retrieving the COM class factory for component with CLSID {A832755E-9C2A-40B4-89B2-3A92EE705852} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

StackTrace:    at System.Speech.Internal.Synthesis.VoiceSynthesis.Speak(Prompt prompt)
   at System.Speech.Synthesis.SpeechSynthesizer.Speak(Prompt prompt)
   at TTS.<>c__DisplayClass3.<ProcessRequest>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

I have given full permission to IIS_USRS to file C:\Program Files (x86)\Microsoft Speech SDK 5.1\Bin\TTSEng.dll. Now the error has changed to

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/17/ROOT

Process ID: 2816

Exception: System.InvalidOperationException

Message: No voice installed on the system or none available with the current security setting.

StackTrace:    at System.Speech.Internal.Synthesis.VoiceSynthesis.Speak(Prompt prompt)
   at System.Speech.Synthesis.SpeechSynthesizer.Speak(Prompt prompt)
   at TTS.<>c__DisplayClass3.<ProcessRequest>b__0()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

I dont have any sound device on my server. Is this exception correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:47:36+00:00Added an answer on June 17, 2026 at 5:47 am

    Try following

    1. Is IIS running
    2. Default website running
    3. App pool and ASP.Net version
    4. Access is appropriate
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.Net Application that sends text messages to mobile phones. It does
I have a ASP.NET web application that creates a text file report and then
I have an ASP.NET application that is hosted in timezone A and is being
I have an ASP.NET application that uses a custom .NET library (a .DLL file).
I have an ASP.NET application that calls other web services through SSL (outside the
I have a small conundrum where I have an asp.net application that's using forms
I have a database on SQL Server 2008. I have an ASP.NET application that
I have a asp.net web application that uses C#. It logs in on a
I have an ASP.NET MVC3 application that I have built and it has two
I have a ASP.NET Webforms application that is being used with Motorola Tablets (Android

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.