Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native dll not found due to iis shadowing #2

Open
oliverjanik opened this issue Nov 24, 2015 · 1 comment
Open

Native dll not found due to iis shadowing #2

oliverjanik opened this issue Nov 24, 2015 · 1 comment

Comments

@oliverjanik
Copy link

I installed this lib using nuget into a ASP.NET mvc site and ran it locally. It failed with an missing dll exception.

I suspect this is due to iis shadowing.

@ryno1234
Copy link
Contributor

Experienced something similar. The search path would be the ASP net temporary directory. I solved this by adding the following:

    public static class MediaInfoHelper
    {
        [DllImport("kernel32.dll", SetLastError = true)]
        static extern bool SetDllDirectory(string lpPathName);

        // .... etc.
    }

And calling the SetDllDirectory() to add to the search path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants