问题
I am Using NAudio for getting MP3 file information as well merging 2 or more MP3 files. It works fine on localhost but when I publish the site on AZURE it throws error "NoDriver calling acmFormatSuggest"
回答1:
I assume that you are trying to use something that is not installed on the machine in Azure - in your case it is ACM MP3 decoder. On a client Windows it can be pre-installed, but i do not think that server Windows can have it. Also i suspect that something like that will not be allowed to run on Azure Web Apps (it looks like you are trying to use that).
So, i would suggest you to use Virtual Machine for that and install needed components here or use something software-based. I have found:
new Mp3FileReader(stream,wave=> new DmoMp3FrameDecompressor(wave))
It looks like it can be used in your case. Could you please try?
回答2:
As Alex has said, it is because the MP3 codecs (both ACM and DMO) are not present on the server. Your options are to find a way to install them, or to use a fully managed MP3 decoder such as NLayer instead.
来源:https://stackoverflow.com/questions/36713713/nodriver-calling-acmformatsuggest-on-azure