I've got a web app that needs to use an unmanaged DLL file.
I'm trying to use the solution suggested on this related question.
The problem that I'm encountering is that the unmanaged DLL is trying to be loaded before the Application_Start of my global.asax file, which is setting my path to include the location of the unmanaged DLL file, therefore the app crashes immediately.
I would really like to keep the act of setting the PATH in my code so that my solution can be deployed to a new server without having to have local access to setup the PATH outside of publishing my solution.
Is there someway that I can force my Application_Start code to execute prior to my other DLL files being loaded?