Ok... I'm confused now. Maybe its not the file writing. I followed the help desks steps to setup my trust level like yours.
Here is the line that give the exception:
return PageParser.GetCompiledPageInstance(url, HttpContext.Current.Server.MapPath("~/Default.aspx"), context);
This is...