Hi Oleg and community,
Occasionally we encounter the below error.
This started occurring after upgrading to the newer version. Previously
we were encountering the similar error around the caching naming
collision issue (on rare occasions): "couldn't open file as it was
already opened". After upgrading I now run in to the below error on
semi rare occasions. It is occurring more frequent than the previous
mentioned issue, but not enough to narrow in on the issue. The below
example (UpdateLastProcessedFileId.cs) was not run in concurrency
however the abstract class (CSWrapper.cs) is leveraged in all scripts
which are executing concurrently.
I know this is a long shot but
any guesses what this could be? I tried digging into
csscript.CSExecutor.ProcessCompilingResult() but I didn't see anything
jumping out at me. Not sure if this matters but this is running on both
Windows Server 2003 (x64) and 2008 (x64). The below example is from an
03 server.
C# Script execution engine. Version 3.6.0.0.
Copyright (C) 2004-2013 Oleg Shilo.
Error: Specified file could not be compiled.
csscript.CompilerException: (0,0): error CS1504: Source file
'c:\Documents and Settings\SvcDMA3_SCRA\Local
Settings\Temp\CSSCRIPT\Cache\1710766447\i_CSWrapper_-1603028500.cs'
could not be opened ('The system cannot find the file specified. ')
(0,0): error CS1504: Source file 'c:\Documents and
Settings\SvcDMA3_SCRA\Local
Settings\Temp\CSSCRIPT\Cache\1710766447\UpdateLastProcessedFileId.attr.g.cs'
could not be opened ('The system cannot find the file specified. ')
at csscript.CSExecutor.ProcessCompilingResult(CompilerResults
results, CompilerParameters compilerParams, ScriptParser parser, String
scriptFileName, String assemblyFileName, String[]
additionalDependencies)
at csscript.CSExecutor.Compile(String scriptFileName)
at csscript.CSExecutor.ExecuteImpl()