Object reference not set to an instance of an object

Stimulsoft Reports.NET discussion
Post Reply
booksys
Posts: 1
Joined: Tue Dec 25, 2012 12:23 am

Object reference not set to an instance of an object

Post by booksys »

I am unable to figure this strange behaviour. I have spent more than 10 hrs and tried so many different things but still getting same error. Now strange thing is that it works when I run locally on my machine but when running on my webhosting I get this error. I am able to run other reports created using stimultsoft but this particular report gives me this error on my webhosting server. I am unable to figure, let me know if you can figure this out.

I am using version: 2012.2.1400
on ASP.NET Full Trust (4.0 integrated)

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:
StiReport report = new StiReport();
report.Load(Server.MapPath("monthly_sales.mrt"));
report.RegBusinessObject("Commision", GetTransactions());
StiWebViewer1.Report = report;
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Object reference not set to an instance of an object

Post by HighAley »

Hello.

Is there a medium trust level set on your server?
If so, please, read next article from our Knowledge base http://stimulsoft.helpserve.com/index.p ... icleid=376

Thank you.
Post Reply