Home Can't find unmanaged library on ASP.NET server
Reply: 0

Can't find unmanaged library on ASP.NET server

user1072
1#
user1072 Published in June 25, 2018, 4:05 am

I'm working on my .net web application that need to execute some methods from unmanaged library. I used amazon web services for deploy. I found the path, where my application placed after deploy:

C:\inetpub\wwwroot\

It has bin folder with my unmanaged dll:

C:\inetpub\wwwroot\bin\Assimp32.dll

To allow my application use unmanaged dll's, I added this folder to environmental variable PATH. Here is my PATH variable:

"C:\inetpub\wwwroot\bin"

I set this variable every time in my "global.asax.cs":

  protected void Application_Start(object sender, EventArgs e)
        {
            System.Environment.SetEnvironmentVariable("PATH", Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin"));
        }

But I got not found error: "The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

I made all steps, described here

Any ideas to fix it? :(

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.350175 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO