Using ASP.NET 5 MVC6

Stimulsoft Reports.WEB discussion
Post Reply
anerling
Posts: 28
Joined: Wed Jul 16, 2014 6:28 am

Using ASP.NET 5 MVC6

Post by anerling »

Hello Stimulsoft,

is the Stimulsoft Reports.Web compatible with the new ASP.NET 5 MVC 6 ?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Using ASP.NET 5 MVC6

Post by Alex K. »

Hello,

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

Thank you.
anerling
Posts: 28
Joined: Wed Jul 16, 2014 6:28 am

Re: Using ASP.NET 5 MVC6

Post 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
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Using ASP.NET 5 MVC6

Post 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.
anerling
Posts: 28
Joined: Wed Jul 16, 2014 6:28 am

Re: Using ASP.NET 5 MVC6

Post 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"
Attachments
projectJson.png
projectJson.png (5.36 KiB) Viewed 4002 times
missing.png
missing.png (15.06 KiB) Viewed 4002 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Using ASP.NET 5 MVC6

Post 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.
alireza0909
Posts: 1
Joined: Sun Feb 28, 2016 9:11 pm

Re: Using ASP.NET 5 MVC6

Post 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"
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Using ASP.NET 5 MVC6

Post 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.
Post Reply