StiCompiler.Compile throws COMException

Stimulsoft Reports.NET discussion
Post Reply
FrankFroese
Posts: 6
Joined: Tue Jan 02, 2007 8:25 am
Location: Starnberg, Germany

StiCompiler.Compile throws COMException

Post by FrankFroese »

We are running Stimulsoft Reports.Net for many years on lots of computers. In our reports we use the compile mode. Currently we are running an older Reports.Net version 2020.4.2.0.

On most of our computers everything is running fine and without any problems. But on some Win11 Dell PCs within our application StiCompiler.Compile() throws a COMException (0xD0000003). Even the original stimulsoft designer cannot compile on this computers.

I think it must have to do with some policy settings on these computers. But I can't find settings that are responisble for this exception. UMCI (user mode code integrity) is on audit mode.

Any idea, where I can search for the reason of these COMException?

Code: Select all

System.Runtime.InteropServices.COMException: Ausnahme von HRESULT: 0xD0000003
   bei System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   bei System.CodeDom.Compiler.FileIntegrity.MarkAsTrusted(SafeFileHandle safeFileHandle) 
   bei Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources) 
   bei Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources) 
   bei System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources) 
   bei Stimulsoft.Base.StiCompiler.Compile(String textToCompile, String outputAssembly, LanguageType languageType, StiOutputType outputType, String[] referencedAssemblies, List`1 resources)
Frank
Post Reply