You are using the Application runtime, you should be using DirectX9 runtime for game and such, probably audio too... I'm not sure what you want to come up with. Most plugins are made for DirectX9 runtime. But I don't think this is related to your problem.
I use the DirectX9 runtime, however, I tried to keep this application 'clean' so I chose the Application runtime. Same error, though.