Forum How do I...?

Access is Denied from ASP.NET using Filter

khurwitz
I'm struggling to get the following code running:

var prince = new Prince(@"C:\Program Files (x86)\Prince\Engine\bin");
Response.Filter = new PrinceFilter(prince, Response.Filter);
Response.AddHeader("Content-Type", "application/pdf");

I am trying to return the requested HTML document as a PDF to the user.

No matter what I do, I get the following exception:

Access is denied -- Please check system permission to run Prince.

I am running the application locally under Windows 7 - ASP.NET Development Server. I have even tried to adjust my "zones" under code access security so they all have full trust, put full trust in my Web.config, given "Everyone" full control on the folder where Prince.exe is located, etc. Nothing seems to work. I've been fighting this for several hours. Any advice would be GREATLY appreciated.
mikeday
I'll follow up in the other thread.