Walkthrough for show report in MVC

Stimulsoft Reports.WEB discussion
Post Reply
adageamar
Posts: 4
Joined: Mon Sep 21, 2015 11:20 am

Walkthrough for show report in MVC

Post by adageamar »

I am new to this, and according to the steps I had created a project and added references to DLL, but still after than when I use stireport viewer in razor engine, It will show namespace issue as not found, what should I do, is there any basic walkthough available so I can easily learn from it.

Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Walkthrough for show report in MVC

Post by HighAley »

Hello.

Please, read the Showing Reports section of the Programming Manual.

If you have any problem with our product, please, send us more detailed description of it.

Thank you.
adageamar
Posts: 4
Joined: Mon Sep 21, 2015 11:20 am

Re: Walkthrough for show report in MVC

Post by adageamar »

Html.Stimulsoft() shows error as System.Web.Mvc..HtmlHelper does not contain any definition for "Stimulsoft", how should I resolve that.
And if I write code as follows;
@using Stimulsoft.Report;
@{
StiMvcViewerOptions opt = new StiMvcViewerOptions();
Html.Stimulsoft().StiMvcViewer(opt);
}

Still giving exception as Stimulsoft namespace name not found
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Walkthrough for show report in MVC

Post by HighAley »

Hello.

Please, add the Stimulsoft.Report.Mvc namespace to the Web.config in Views folder using next code:

Code: Select all

  <system.web>
    <pages>
      <namespaces>
        <add namespace="Stimulsoft.Report.Mvc" />
      </namespaces>
    </pages>
  </system.web>
Thank you.
adageamar
Posts: 4
Joined: Mon Sep 21, 2015 11:20 am

Re: Walkthrough for show report in MVC

Post by adageamar »

I had add above code into web.config and now getting error as "Value cannot be null. Parameter name: key ", why this error is occuring.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Walkthrough for show report in MVC

Post by HighAley »

Hello.

You should add next section to Web.config file in the root folder:

Code: Select all

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.1" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
Thank you.
Post Reply