MVC4 App "Unable to load DLL 'libmp3lame.32.dll'

后端 未结 4 1091
星月不相逢
星月不相逢 2020-12-11 04:57

I am trying to use the NAudio.Lame library in an MVC4 application and am getting the error:

Unable to load DLL \'libmp3lame.32.dll\': The specified module co         


        
4条回答
  •  隐瞒了意图╮
    2020-12-11 05:26

    I made it work by having the LameDLLWrap assembly as a separate one, rather than embedding it in the main assembly. Since I know that my target system is 32 bit, I can afford having a single assembly -- this is simpler for me than playing with PATH on the hoster's machine.

    Here's what I did:

    1. Cloned the source
    2. Checkout the Experimental branch
    3. Removed the embedded assemblies from the main project
    4. Set the reference to the wrapper to Copy Local
    5. Recompiled everything

提交回复
热议问题