问题描述
我有一个项目,使用NAudio从mp3转换为wav。 (使用 WaveFormatConversionStream.CreatePcmStream()
方法) 它在我的开发机器上工作正常,但现在我尝试在一个新的新服务器,并抛出这个错误:
我认为NAudio在这里需要的一些依赖关系不在新服务器上。它是什么,我应该从哪里安装?
服务器是一个新鲜的Amazon EC2 Windows 2008 32位实例,包含Web服务器和应用服务器角色安装
运行Windows 2008 R2,使用Naudio检测Wav和Mp3文件的长度,我遇到了问题。
我通过以下方式解决了这个问题:
本质上,安装桌面体验功能。
以上将需要重新启动服务器。
一旦安装了上述,需要启用任何进一步的,问题已解决。
I've got a project that uses NAudio to convert from mp3 to wav. (using the WaveFormatConversionStream.CreatePcmStream()
method)
It worked fine on my development machine but now I'm trying it on a fresh new server and its throwing this error:
I assume there is some dependency that NAudio needs here that isn't on the new server. What is it and where should I install it from?
Server is a freshly-hatched Amazon EC2 Windows 2008 32-bit instance with 'web server' and 'app server' roles installed.
Running Windows 2008 R2, using Naudio to detect the length of Wav and Mp3 files, i ran into the same problem.
I solved this by following this: https://technet.microsoft.com/en-us/library/cc772567.aspx
Essentially, install the "Desktop Experience" feature.
The above will require a restart of the server.
Once the above was installed, i needed to enable nothing further, the problem was resolved.
这篇关于NAudio错误:“NoDriver call acmFormatSuggest”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!