Page 1 of 1

Export report : Object reference not set to an instance of a

Posted: Sun May 08, 2016 8:55 am
by payam_skandari
Using the latest stimulsoft web.mvc version 2016.1 trial version , whenever I try to export the report to any file type ,
An ugly unhandled exception arises !!!!

the following lines are the stack trace for the exception :

Code: Select all

[NullReferenceException: Object reference not set to an instance of an object.]
   Stimulsoft.Report.Mvc.StiFileResult.WriteFile(HttpResponseBase response) +133
   System.Web.Mvc.FileResult.ExecuteResult(ControllerContext context) +296
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +39
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +74
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +388
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +72
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +303
   System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +155
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +184
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +136
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +40
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +40
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +47
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +136
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +47
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +136
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +45
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +47
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +136
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +40
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9644097
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
The Controller action to respond to export request conforms to the examples provided as follows :

Code: Select all

 public FileResult ExportReport()
        {
                    return StiMvcViewer.ExportReportResult();
        }

public ActionResult ViewerEvent()
        {
            return StiMvcViewer.ViewerEventResult();
        }

Re: Export report : Object reference not set to an instance

Posted: Mon May 09, 2016 7:18 am
by Alex K.
Hello,

Can you please send us a simple project which reproduce the issue for analysis.

Thank you.

Re: Export report : Object reference not set to an instance

Posted: Wed May 11, 2016 5:54 am
by payam_skandari
Hi,
I used your sample html MVC project . Without any change or manipulation !

I was about to buy this product , but the some of vital functionalities do not work .

Re: Export report : Object reference not set to an instance

Posted: Wed May 11, 2016 11:42 am
by Alex K.
Hello,

Please try to check the sample from the following link:
https://github.com/stimulsoft/Samples-A ... TML-CSharp

Also, please try to check the last prerelease build:
http://admin.stimulsoft.com/GetFile.asp ... _Trial.zip

Thank you.