Page 1 of 1

Using ASP.NET 5 MVC6

Posted: Thu Apr 09, 2015 7:39 am
by anerling
Hello Stimulsoft,

is the Stimulsoft Reports.Web compatible with the new ASP.NET 5 MVC 6 ?

Re: Using ASP.NET 5 MVC6

Posted: Thu Apr 09, 2015 9:40 am
by Alex K.
Hello,

Must be compatible, you can download the Trial version and check the compatibility with your project.

Thank you.

Re: Using ASP.NET 5 MVC6

Posted: Thu Apr 09, 2015 9:54 am
by anerling
I am using the HTML 5 Viewer of the Stimulsoft Reports.Web 2014.3 Trial version the StiMvcMobileViewer.GetReportSnapshotResult() and other StiMvcMobileViewer functions raises exceptions.

Exception:
"The type 'ActionResult' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."

The problem is in the new ASP.NET 5 System.Web.Mvc is unavailable and replaced with Microsoft.AspNet.Mvc

Re: Using ASP.NET 5 MVC6

Posted: Thu Apr 09, 2015 10:16 am
by Vladimir
Hello,

Please try to add the following code to Web.Config file:

Code: Select all

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

Re: Using ASP.NET 5 MVC6

Posted: Thu Apr 09, 2015 11:25 am
by anerling
I am sorry, but in ASP.NET vNext there is no Web.config

And when i adding System.Web.Mvc to the project.json i got a new warning:

"Warning CS1701 Assuming assembly reference 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' used by 'Stimulsoft.Report.MvcMobile' matches identity 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' of 'System.Web.Mvc', you may need to supply runtime policy"

Re: Using ASP.NET 5 MVC6

Posted: Thu Apr 09, 2015 11:48 am
by Vladimir
Hello,

Unfortunately at the moment we have no quick answer, as we are currently testing a new release 2015.1
We are interested in adapting our product to vNext, please send us a request to support@stimulsoft.com, after the release we will deal with that issue.

Thank you.

Re: Using ASP.NET 5 MVC6

Posted: Sun Feb 28, 2016 9:13 pm
by alireza0909
And when i adding System.Web.Mvc to the project.json i got a new warning:

"Warning CS1701 Assuming assembly reference 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' used by 'Stimulsoft.Report.MvcMobile' matches identity 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' of 'System.Web.Mvc', you may need to supply runtime policy"

Re: Using ASP.NET 5 MVC6

Posted: Mon Feb 29, 2016 7:23 am
by HighAley
Hello.

You should use MVC 4.0.0.1 and later.
Sorry, but our latest builds don't support older versions of MVC.

Thank you.