Permalink
Browse files

Fixed Access Denied issues with Impersonate mode on platforms like Sh…

…arePoint
  • Loading branch information...
1 parent f4c7945 commit 0b467980d165006a652fa28c887290b90628bae7 @RobertTheGrey RobertTheGrey committed May 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Spark/Compiler/BatchCompiler.cs
@@ -78,6 +78,7 @@ public Assembly Compile(bool debug, string languageOrExtension, params string[]
CompilerResults compilerResults;
var basePath = AppDomain.CurrentDomain.SetupInformation.DynamicBase ?? Path.GetTempPath();
+ compilerParameters.TempFiles = new TempFileCollection(basePath); //Without this, the generated code throws Access Denied exception with Impersonate mode on platforms like SharePoint
if (debug)
{
compilerParameters.IncludeDebugInformation = true;

0 comments on commit 0b46798

Please sign in to comment.