Dynamic compilation errors

From: Steve (sly_at_openroad.ca)
Date: 10/22/04


Date: Fri, 22 Oct 2004 11:16:05 -0700

Hi

I'm receiving the following error whenever a new build is placed onto our
production server:

Timed out waiting for a program to execute. The command being executed was
"c:\winnt\microsoft.net\framework\v1.1.4322\vbc.exe"
@"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\root\f315a746\1e2bd43d\famzuazo.cmdline".

STACK TRACE:

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.Compiler.CodeCompiler.FromFileBatch(CompilerParameters
options, String[] fileNames)

at System.CodeDom.Compiler.CodeCompiler.FromDomBatch(CompilerParameters
options, CodeCompileUnit[] ea)

at System.CodeDom.Compiler.CodeCompiler.FromDom(CompilerParameters options,
CodeCompileUnit e)

at
System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.C
ompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e)

at System.Web.Compilation.BaseCompiler.GetCompiledType().

It seems to happen only to random pages within our application. It looks
like the cmdline file is being locked and doing an IISReset would solve the
problem temporarily. After the next build this problem re-surfaces.

I've searched the web for this problem and it seems that a lot of people
experience similar errors but there are not very many solutions. Some
people suggest it involves IISLockdown which we have on our server. I've
made sure that I've given proper permissions to all ASP.NET directories but
it still doesn't work. We have 2 apps with different security models
experiencing this behaviour. One app uses windows authentication with
impersonation and the other just used standard windows authentication.
We've made sure that both the aspnet account and the impersonated accounts
have full access to the .NET framework directories (and temp directories).

Also, I recently read that it may be an antivirus software which is locking
the cmdline file. We do have Norton Corporate edition running on our server
but I'm unsure as to whether this is the cause of the problem.

If anyone has any suggestions and/or comments, they would greatly be
appreciated. Thank you.

Steve



Relevant Pages

  • Help: OWSADM hangs when executing from C# web service
    ... admin user and providing the login credentials through the ... string output = process.StandardOutput.ReadToEnd; ... For some reason when I execute the Startmethod then the OWSADM hangs ... The machine is running Windows Server 2003 Enterprise edition. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Impersonate second session require restart of IIS
    ... 2000 Server with latest security pacx and service pacs) ... Cannot execute a program. ... (IntPtr userToken, String cmd, String currentDir, ... (CompilerParameters options, String compilerDirectory, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • SQL Connection Problem
    ... An error has occurred while establishing a connection to the server. ... database location within the applications App_Data directory. ... Boolean& failoverDemandDone, String host, String failoverPartner, String ... user, String password, Boolean trusted, String connectionString) +68 ...
    (microsoft.public.dotnet.framework.aspnet)
  • server-side JavaScript: Prototypes of built-in classes, objects and functins
    ... Session object (disk-based session variables for data persistence ... File class (manipulation of files on server, ie. open, close, read, ... //Methods Cgi.queryCgi.postCgi.anyby default return an empty string if requested var not found ...
    (comp.lang.javascript)
  • Re: App_data - ASPNETDB.MDF
    ... is only because I want my site work, without exception. ... Server Error in '/' Application. ... serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 ...
    (microsoft.public.dotnet.framework.aspnet)