we have the problem on our live system (test systems are fine) that we sometimes receive the following error when a report is rendered "The file "C:\Windows\TEMP\ru3jtxkd.dll" could not be found". This has been going on for several months now at least. We save the c# code from the designer in our .net project and create an instance of the class. As I understand it, when we call Render(), a temporary dll is created (for reasons which are not clear to me).
- Do you know any good reason why the temporary dll can sometimes not be saved/read? If this is a security issue, I would assume that it would never be able to save/read the dll if it did not have enough rights but this issue only occurs sometimes.
- Can a report be rendered without it creating an assembly?
I guess you are going to say that an assembly is always required and the only other method is if I save my report as a .dll and then load it using GetReportFromAssembly(). Are there any other options?
Many thanks,
John K.
System.IO.FileNotFoundException: The file "C:\Windows\TEMP\ru3jtxkd.dll" could not be found.
Dateiname: "C:\Windows\TEMP\ru3jtxkd.dll"
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei 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, Boolean checkHost)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
bei System.IO.File.InternalReadAllBytes(String path, Boolean checkHost)
bei Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
bei Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
bei Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
bei Stimulsoft.Base.StiCompiler.Compile(String textToCompile, String outputAssembly, LanguageType languageType, StiOutputType outputType, String[] referencedAssemblies, List`1 resources)
bei Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
bei Stimulsoft.Report.StiReport.Compile()
bei Stimulsoft.Report.Engine.StiReportV2Builder.RenderSubReports(StiReport ownerReport, StiRenderState renderState)
bei Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
bei Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
bei Stimulsoft.Report.StiReport.Render(Boolean showProgress)