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 245837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:07:19+00:00 2026-05-11T21:07:19+00:00

On my personal website, i would like to make it pronounce something I solved

  • 0

On my personal website, i would like to make it “pronounce” something

I solved the “concept” problem, as in here, and on my desktop it works smoothly when launched from visual web developer. Creates a file, and then an embedded player in the page will play it. Perfect.

So, I uploaded it on the server… I get this error 500:

Server Error in ‘/sapi’ Application.
Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))
Description: An unhandled exception
occurred during the execution of the
current web request. Please review the
stack trace for more information about
the error and where it originated in
the code.

Exception Details:
System.UnauthorizedAccessException:
Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))

ASP.NET is not authorized to access
the requested resource. Consider
granting access rights to the resource
to the ASP.NET request identity.
ASP.NET has a base process identity
(typically {MACHINE}\ASPNET on IIS 5
or Network Service on IIS 6) that is
used if the application is not
impersonating. If the application is
impersonating via , the identity
will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated
request user.

(…)

Source Error:

See it below

Source File:
c:\mypath\sapi\myfile.aspx.cs
Line: 21

Stack Trace:

[UnauthorizedAccessException: Access
is denied. (Exception from HRESULT:
0x80070005 (E_ACCESSDENIED))]
SpeechLib.SpVoiceClass.Speak(String
Text, SpeechVoiceSpeakFlags Flags) +0
prova.Button1_Click(Object sender,
EventArgs e) in
c:\mypath\sapi\prova.aspx.cs:21
System.Web.UI.WebControls.Button.OnClick(EventArgs
e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
+13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +1565

Version Information: Microsoft .NET
Framework Version:2.0.50727.3053;
ASP.NET Version:2.0.50727.3053

This is the source

Source Error:

Line 19: myfile.Open(@"C:\mypath\sapi\gen\hi.wav",SpeechStreamFileMode.SSFMCreateForWrite,false);

Line 20: voice.AudioOutputStream = myfile;

Line 21: voice.Speak("Hi",SpeechVoiceSpeakFlags.SVSFDefault);

I get error on line 21, Voice.speak

That probably means that the aspnet worker user has not some right permission

The generation folder has all the right permissions: an empty file is created.

So, i have to give permission of execute to some system dll?

Do you know which dll? It is not bin\Interop.SpeechLib.dll, on this one the aspnet user has full control

Ps: i have full control on the (windows) server (i mean, access by RDC, is not a shared hosting)

  • 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-05-11T21:07:19+00:00Added an answer on May 11, 2026 at 9:07 pm

    I got it working by setting the AppPool as working as “Local System” and by setting in the machine.config to work as SYSTEM account

    Of course i feel that as a security issue, as i am hosting my personal website on the (small) company server (Employees are explicitly authorized to do so by the company owner)

    Maybe this is not a good solution?

    I set this setting only for this webapp, and i am not so good at coding (so there are lots of bugs in my code, measured in 100 WTFs/minute (haha)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with an artist to make her personal website. She would like
I am starting to set up a personal website, and I would like it's
I am redesigning my personal / development website , and trying to make it
So I started using Git together with this workflow to make a personal website
I've just recently been studying JQuery to use on a personal website. Something I
I'm updating my personal blog and I would like to start reviewing the movies
I'm building a small-scale website (a personal one) in which each page would have
I have my personal website at www.yassershaikh.com, now I am planning to setup a
Is it possible to use my personal website/blog to login to sites that use
I'm in the proccess of creating my own web profilo and personal website. I

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.