error in code that writes and compiles a dll on the fly help please

  • Thread starter on on via DotNetMonster.com
  • Start date
O

on on via DotNetMonster.com

Certain times in the day when I get a lot of hits to my site I get the
following error (code creates dynamically compiled dll help please) any
input as to why the error is generated. Can anyone decipher the error
below? I would appreciate any help

Thanks!!

System.Runtime.InteropServices.ExternalException: Cannot execute a
program. The command being executed was
"c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /noconfig
@"C:\WINDOWS\TEMP\e6w6xcyq.cmdline". at
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(IntPtr
userToken, String cmd, String currentDir, TempFileCollection tempFiles,
String& outputName, String& errorName, String trueCmdLine) at
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(IntPtr userToken,
String cmd, String currentDir, TempFileCollection tempFiles, String&
outputName, String& errorName, String trueCmdLine) at
System.CodeDom.Compiler.CodeCompiler.Compile(CompilerParameters
options, String compilerDirectory, String compilerExe, String
arguments, String& outputFile, Int32& nativeReturnValue, String
trueArgs) at System.CodeDom.Compi

ler.CodeCompiler.FromFileBatch(CompilerParameters options, String[]
fileNames) at
System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters
options, String[] sources) at
System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters
options, String source) at
System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource
(CompilerParameters
options, String source)
 
A

Alex Feinman [MVP]

You probably want to post this to microsoft.public.dotnet.framework.aspnet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top