ASP.net Unable to load DLL 'Magick.NET-Q16-x64.Native.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

a 夏天 提交于 2019-12-24 01:15:46

问题


I am using image Magick to create images from Stream. I am getting the error mentioned in title on following lines.

 var image = new MagickImage();

It is an issue with ImageMagick or something else. Dont know how to solve this!!


回答1:


Workaround: assign user to application pool identity with extra privileges.

Solution (worked for me)

  1. Manually set temp directory MagickNET.SetTempDirectory(@"C:\Windows\Temp\");
  2. Give user of Application Pool Identity write permissions to it. In my case I've provided for "Users" group write permission.


来源:https://stackoverflow.com/questions/40219890/asp-net-unable-to-load-dll-magick-net-q16-x64-native-dll-access-is-denied-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!