ASP.NET Web Application - on deploy, System.Speech.dll object not getting set to an instance of an object

前端 未结 1 1099
渐次进展
渐次进展 2021-01-22 18:49

I have an ASP.NET web application that uses System.Speech to transform text to a WAV file. It works fine locally but when I deploy it to the server, I get the below error messa

相关标签:
1条回答
  • 2021-01-22 19:15

    What user account is the code running under when executed from ASP.NET? If the Speech API is touching the registry like the call stack suggests, it possibly has different permissions than the account you used to run the code manually.

    If you can't just make the application pool for your site run with the same account you log into the machine with, I've had some success using Process Monitor to track down this kind of problem before. Basically, execute the code that fails while Process Monitor is running and look for 'ACCESS DENIED' in the 'Result' column (or anything else that looks suspicious). Quickly switching the application pool to use your standard user account will be the fastest way to rule out security or permission related problems though.

    0 讨论(0)
提交回复
热议问题