Click here to Skip to main content
15,307,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi when i want to create a report with stimulsoft, that give me this erro:

first my code:
C#
public ActionResult CreateReport()
    {


        StiReport report = new StiReport();
        string path = Server.MapPath("~/App_Data/Reports/Report1.mrt");
        report.Load(path);
        return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);

    }


and error is in line 42:
HTML
Server Error in '/' Application.
Value cannot be null.
Parameter name: value
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.ArgumentNullException: Value cannot be null.
Parameter name: value

Source Error:


Line 40:             string path = Server.MapPath("~/App_Data/Reports/Report1.mrt");
Line 41:             report.Load(path);
Line 42:             return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);
Line 43: 
Line 44:         }


Source File: d:\ASP MVC4 Tamrin\WorkWithJavaScript\WorkWithJavaScript\Controllers\HomeController.cs    Line: 42 
Posted
Updated 14-May-14 20:06pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900