```
Magick: Postscript delegate failed `C:\CCP\CCP_363.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/713
at ImageMagick.MagickImageCollection.HandleReadException(MagickException exception)
at ImageMagick.MagickImageCollection.Read(String fileName, MagickReadSettings readSettings)
```
Problem starts after once read timeout and thread abort in ASP.NET application. Its already kept to 300ms timeout.
Subsequent try gets following.
```
Magick: unable to create temporary file `C:\CCP\CCP_363.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/400
at ImageMagick.MagickImageCollection.HandleReadException(MagickException exception)
at ImageMagick.MagickImageCollection.Read(String fileName, MagickReadSettings readSettings)
```
PDF Size: 829kb
PDF Pages: 17
```
Magick: unable to extend cache `C:\Windows\TEMP\magick-3700Zf3OhYnRtPra17': No space left on device @ error/cache.c/OpenPixelCache/3691
```
It create more than 1.3GB temp files. Its not removing temp files after writing Tiff. I just cleared about 10Gb+ temp files of different tests. But the issue remains is lots of time taken for conversion along with unexpected errors as noted above.
Comments: ** Comment from web user: ozmosis **
Thanks dlemstra!
Changing the temp directory with MagickNET.SetTempDirectory worked perfectly!
However, when deploying to the server, we get an error reading the dll from the C:\Windows\Temp directory:
```
[UnauthorizedAccessException: Отказано в доступе. (Исключение из HRESULT: 0x80070005 (E_ACCESSDENIED))]
System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence) +0
System.Reflection.Assembly.LoadFile(String path) +178
ImageMagick.AssemblyHelper.LoadAssembly(String cacheDirectory, String tempFile) +103
ImageMagick.AssemblyHelper.LoadAssembly() +330
[InvalidOperationException: Failed to load embedded x64 assembly: unable to load file "C:\Windows\TEMP\Magick.NET.7.0.0.0010\Magick.NET-Q16-x64.dll"]
ImageMagick.MagickNET.SetTempDirectory(String path) +361
System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback) +45
Door3.AssetServer.Web.WebApiApplication.Application_Start() +79
[HttpException (0x80004005): Failed to load embedded x64 assembly: unable to load file "C:\Windows\TEMP\Magick.NET.7.0.0.0010\Magick.NET-Q16-x64.dll"]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12600621
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): Failed to load embedded x64 assembly: unable to load file "C:\Windows\TEMP\Magick.NET.7.0.0.0010\Magick.NET-Q16-x64.dll"]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12617668
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12457285
```
I noticed you last mentioned in this thread that you would provide a way to change the location for the dll. Is this something that's available yet?
> "It seems you are not allowed to load an assembly from the temp directory. The AnyCPU version of Magick.NET detects if it needs the x86 or the x64 version of the library and saves that dll to the temp directory. It then tries to load that library but it looks like it is not allowed to do that. Maybe I should add a method that will allow you to specify the folder that is being used for that. Can you contact me through CodePlex so I can send you a development version of Magick.NET that has this new option?"
https://magick.codeplex.com/discussions/542952
Thanks again!! I love ImageMagick!!!!!!!!