This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Access to the path 'FontCache' is denied.

vmrocha#30928
I'm trying to use GraphicsMill library on a web application but I'm getting the following error.

An exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll but was not handled in user code

Additional information: Access to the path 'FontCache' is denied.


When I try to create a new instance of PsdProcessor.

Dim psdProcessor = New PsdProcessor()


Am I missing something?

Here is a full stacktrace:

Unhandled Exception: System.ServiceModel.FaultException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the path 'FontCache' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at Aurigma.GraphicsMill.Templates.FontResolver..ctor(String cachePath)
at Aurigma.GraphicsMill.Templates.PsdProcessor..ctor()
vmrocha#30929
I was able to solve the issue by using Path.GetTempPath()

Dim psdProcessor As New PsdProcessor(Path.GetTempPath())
Fedor#30930
Thank you for the problem report.

We will improve the error text in the next release.