Page 1 of 1
Reporting application doesn't work if built with ILMerge
Posted: Thu Jan 16, 2014 7:56 am
by alk
I tried to build our reporting application using ILMerge utility. The assembled application doesn't work and returns null-ref exception when initializing forms. I ran through the STI sources quickly and discovered that STI visual components use hardcoded assembly name for retrieval of resources, e.g. Stimulsoft.Report, Stimulsoft.Controls etc. Evidently, this approach doesn't work in ILMerged app because assemblies are eliminated except main application exe.
To my mind, it's not the best solution forcing customers to some particular deployment scenario.
It seems that it's not a question but rather bugreport or request for change, I just haven't found any issue tracking facility where I could submit the issue.
Re: Reporting application doesn't work if built with ILMerge
Posted: Thu Jan 16, 2014 10:19 am
by Alex K.
Hello,
Could you explain your issue in more details?
Also can you please send us a sample project which reproduce the issue for analysis.
Thank you.
Re: Reporting application doesn't work if built with ILMerge
Posted: Thu Jan 16, 2014 11:51 am
by alk
Hello again,
thank you for the quick reply.
There's an utility from Microsoft, ILMerge (
http://research.microsoft.com/en-us/peo ... merge.aspx) what merges multiple .NET assemblies into a single assembly. As a result we obtain a single exe file instead of .exe + bunch of dlls.
I guess, the issue is reproducible with any project which uses Sti controls with resources (icons/bitmaps), i.e. StiViewerControl etc. The error happens when trying to retrieve the resource by assembly name via calling StiImageUtils.GetImage. One more note - the problem happens in case when we do not register Sti dlls in GAC, but assemble them into the resulting assembly, instead.
Re: Reporting application doesn't work if built with ILMerge
Posted: Thu Jan 16, 2014 12:16 pm
by Alex K.
Hello,
It is diffcult to say something without a sample.
Can you please send us a sample project or step by step guide how to reprodce the issue.
Thank you.
Re: Reporting application doesn't work if built with ILMerge
Posted: Thu Jan 16, 2014 12:34 pm
by alk
Well, do you have any simplest example projects, e.g. for northwind database? I could update it to reproduce the issue then.
Re: Reporting application doesn't work if built with ILMerge
Posted: Fri Jan 17, 2014 11:32 am
by Alex K.
Hello,
You can try to reproduce on any sample from Samples in our installation pack.
Thank you.
Re: Reporting application doesn't work if built with ILMerge
Posted: Mon Jan 20, 2014 1:15 pm
by alk
Hello Aleksey,
I prepared a sample project regarding the issue. Would you like to share your e-mail to let me send the archive, because forum's mail prohibits zip attachments.
Re: Reporting application doesn't work if built with ILMerge
Posted: Tue Jan 21, 2014 3:57 am
by Andrew
Hello,
Please send the archive to
support@stimulsoft.com and refer to this forum thread.
Thank you.