Hi,
I'm trying to use ICodeCompiler.CompileAssemblyFromSource to compile C#
source code (in a string) into assembly dynamically. This works fine in
a console program, but fails under ASP.NET, the compilation error I got
is CS1619: "Cannot create temporary file
'c:\WINDOWS\system32\CSC201E.tmp' -- Access is denied. "
It seems that the C# compiler tries to create some temp file in my
system32 dir, and ASP.NET's process doesn't have the permission to do
so. So how do I tell C# compiler to use a proper place for temp file? I
tried to set CompilerParameters.TempFiles, but it doesn't work.
Thanks
Jim