NullReferenceException during report generation on production environment

Stimulsoft Reports.NET discussion
Post Reply
Lukasz
Posts: 2
Joined: Wed Aug 20, 2008 3:04 pm

NullReferenceException during report generation on production environment

Post by Lukasz »

We wanted to test Reports.net in our hosting environment before we purchase.

We've used trial version to test it.
Locally everything works great but on hosting environment (partial trust) we've get following error:

---

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Stimulsoft.Report.Components.StiBookmark.PrepareBookmark(StiBookmark bookmark) +186
Stimulsoft.Report.Render.StiRenderProvider.Render(StiReport report, StiRenderState state) +1230
Stimulsoft.Report.StiReport.Render(StiRenderState renderState) +880
Stimulsoft.Report.StiReport.Render(Boolean showProgress) +48
ReportRef.ReportGenerator.ProcessRequest(HttpContext context) in d:\Dokumenty\Visual Studio 2008\Projects\ReportRef\ReportRef\ReportGenerator.ashx.cs:33
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

---

What might be the couse of such behaviour?

We tried with simple report and StimulReportWebDemo2005 from samples directory. The result is always the same.

Is trial version somehow 'protected' from using it on public server?
Or maybe partial trust is the cause?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

NullReferenceException during report generation on production environment

Post by Vital »

Hello,
We wanted to test Reports.net in our hosting environment before we purchase.

We've used trial version to test it.
Locally everything works great but on hosting environment (partial trust) we've get following error:


Is trial version somehow 'protected' from using it on public server?
Or maybe partial trust is the cause?
Problem in partial trust mode. Please try set to false following static property before report rendering:

Code: Select all

StiOptions.Engine.FullTrust
If this does not help please send us information about configuration of your hosting.

Thank you.
Post Reply