Native dll in c# web app

Benjamin Gilbert bgilbert at cs.cmu.edu
Wed Jun 15 03:00:30 EDT 2016


On Mon, Jun 13, 2016 at 09:59:45PM +0000, Peter via openslide-users wrote:
> I try to make a .net webapp for a openslide viewer.  Openslide depends on
> 20 native c++ libraries which i cannot reference in the c# project (visual
> studio 2015).  (iconv.dll, libtiff-5.dll, ...)
> 
> It keeps saying that those libraries are not a valid COM assembly.  Or
> that they do not have an entry point.
> 
> In a normal C# app, I simply would copy the dlls to the /bin folder.  Then
> they are loaded when the program starts.  However, this does not work for
> a webapp (it keeps saying that openslide or one of its dependencies is not
> found).

Hi Peter,

I'm not very familiar with Visual Studio, but you may be able to fix this by
having it copy the DLLs for you:

    http://stackoverflow.com/a/35960868/
    http://stackoverflow.com/a/5107759/

Does that work?

--Benjamin Gilbert


More information about the openslide-users mailing list