Error Compiling Report - Could not find File
Posted: Tue Jul 31, 2012 7:30 am
Hello!
During the last days we experience quite some problems while trying to print a report. It seems that Stimulsoft is compiling its reports to %appdata%\local\temp. After that, the report cannot be found and a System.IO.Exception "Could not ifnd file ..." occurs. When it happened the first time, we restarted the Server and everything was fine. Today even a restart does not help. We disabled the virus scan as well, just in case it would block the creation of the report file.
Can you help me please?
Stimulsoft Version: 2012.1.1205.0
OS: Windows Server 2008 R2
.Net 4.0
Our Software is running as a windows service. The service user has sufficient security rights in the mentioned path.
This is the complete Exception that we got:
InnerException:
Could not find file 'C:\Users\username\AppData\Local\Temp\5avsodx4.dll'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
at Stimulsoft.Base.StiCompiler.Compile(String textToCompile, String outputAssembly, LanguageType languageType, StiOutputType outputType, String[] referencedAssemblies, List`1 resources)
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile()
best regards
joro
During the last days we experience quite some problems while trying to print a report. It seems that Stimulsoft is compiling its reports to %appdata%\local\temp. After that, the report cannot be found and a System.IO.Exception "Could not ifnd file ..." occurs. When it happened the first time, we restarted the Server and everything was fine. Today even a restart does not help. We disabled the virus scan as well, just in case it would block the creation of the report file.
Can you help me please?
Stimulsoft Version: 2012.1.1205.0
OS: Windows Server 2008 R2
.Net 4.0
Our Software is running as a windows service. The service user has sufficient security rights in the mentioned path.
This is the complete Exception that we got:
InnerException:
Could not find file 'C:\Users\username\AppData\Local\Temp\5avsodx4.dll'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
at Stimulsoft.Base.StiCompiler.Compile(String textToCompile, String outputAssembly, LanguageType languageType, StiOutputType outputType, String[] referencedAssemblies, List`1 resources)
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile()
best regards
joro