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

Notification

Icon
Error

Options
Go to last post Go to first unread
vmrocha  
#1 Posted : Friday, March 18, 2016 11:14:11 AM(UTC)
vmrocha

Rank: Member

Groups: Guest
Joined: 1/10/2016(UTC)
Posts: 15

Thanks: 7 times
I'm trying to use GraphicsMill library on a web application but I'm getting the following error.

Quote:
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.

Code:
Dim psdProcessor = New PsdProcessor()


Am I missing something?

Here is a full stacktrace:

Quote:
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()

Edited by user Friday, March 18, 2016 11:36:48 AM(UTC)  | Reason: Not specified

vmrocha  
#2 Posted : Friday, March 18, 2016 11:58:01 AM(UTC)
vmrocha

Rank: Member

Groups: Guest
Joined: 1/10/2016(UTC)
Posts: 15

Thanks: 7 times
I was able to solve the issue by using Path.GetTempPath()

Code:
Dim psdProcessor As New PsdProcessor(Path.GetTempPath())
Fedor  
#3 Posted : Friday, March 18, 2016 10:05:56 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Guest
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Thank you for the problem report.

We will improve the error text in the next release.
Best regards,
Fedor Skvortsov
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.