Page 1 of 1
Walkthrough for show report in MVC
Posted: Mon Sep 21, 2015 12:17 pm
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
Re: Walkthrough for show report in MVC
Posted: Mon Sep 21, 2015 1:51 pm
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.
Re: Walkthrough for show report in MVC
Posted: Mon Sep 21, 2015 3:22 pm
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
Re: Walkthrough for show report in MVC
Posted: Tue Sep 22, 2015 7:45 am
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.
Re: Walkthrough for show report in MVC
Posted: Wed Sep 23, 2015 7:01 am
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.
Re: Walkthrough for show report in MVC
Posted: Wed Sep 23, 2015 11:30 am
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.