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
Error Compiling Report - Could not find File
Re: Error Compiling Report - Could not find File
Hello.
Please, check if you have rights on next directory.
Thank you.
Please, check if you have rights on next directory.
Code: Select all
string tempDirectory = Environment.GetEnvironmentVariable("Temp");
Re: Error Compiling Report - Could not find File
Hello!
I've already checked the rights on that Directory. Our User has full access to the directory.
After restarting the server or restarting the service everything is fine for a couple of days. Then all of a sudden, printing doesn't work anymore.
I've already checked the rights on that Directory. Our User has full access to the directory.
After restarting the server or restarting the service everything is fine for a couple of days. Then all of a sudden, printing doesn't work anymore.
Re: Error Compiling Report - Could not find File
Hello.
Thank you.
Please, try to set some other directory where user have full access with next code:joro wrote:I've already checked the rights on that Directory. Our User has full access to the directory.
After restarting the server or restarting the service everything is fine for a couple of days. Then all of a sudden, printing doesn't work anymore.
Code: Select all
report.Compile(string path)