1

I am trying to use SpeechLib on my personal website. It's a very simple app that saves some text to a wav file - standard stuff. Works great on the dev machine. But all hell breaks loose when I deploy it to the shared host.

Sometimes I get prompted for user name and password at the time of writing the wav file. Sometimes, I get the "Security exception". The site has full trust and I can write a simple txt file from my app without any issues.

On scouring the internet, I realized that the SpeechLib component temporarily writes a file to:

C:\Users\XX\AppData\Roaming\Microsoft\Speech\Files\UserLexicons

I verified this on the dev machine. It indeed does.

So, my guess was that on the shared host, ASPNET does not have rights to write to that folder(?). So, I contaced the hosting service only to be told I have to upgrade to Virtual Private Server. I am not sure if they know what they are talking about.

Has anyone gotten SpeechLib to work on the shared host. Here's the exact same issue I am facing:

http://www.eukhost.com/forums/f41/interop-speechlib-dll-6743/

Any thoughts?

4

2 回答 2

2

我不知道该产品,但我会搜索(或联系他们)一种将其配置为使用不同临时目录的方法。与购买托管公司相比,您更有可能得到您想要的东西。

但是,我完全理解他们为什么要您升级(而且不仅仅是为了更多的钱)。

在这种情况下,C:Users\XX 目录对于共享主机中的每个人来说可能是同一个目录,因为它是 Asp.Net 运行的任何帐户的目录,而不是每个登录的用户的目录。

在私有服务器或虚拟私有服务器中,您将是该环境中唯一运行的服务器,因此您可以访问用户目录(这样做仍然不是一个好主意)。

不知道这是否会有所帮助,但这就是我将如何处理它。

于 2009-11-24T01:40:50.063 回答
1

本质上,任何写入磁盘的内容都需要获得许可才能这样做。

如果您的主机不允许您写入磁盘,那么您需要更改主机。

于 2009-11-26T15:01:09.537 回答