Creating reports and dashboards | Stimulsoft community forum
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
sbd_jeff wrote:I'm getting the below error when I include your assemblies with a MVC 4 Razor 2 project. Please advise.
System.InvalidCastException: [A]System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to System.Web.WebPages.Razor.Configuration.HostSection. Type A originates from 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll'. Type B originates from 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll'.
Sorry, but we don't see our assemblies in the Exception.
How did you come to a conclusion that this exception connected with our assemblies?
Also, your project requires some other dependent DevExpress libraries.
We installed the latest 13.1.8 version and reconfigure your project. Please see the attached archive.
I have added that project that I showed you with the Value is null error. I have also added the DevExpress Zip File within this Stimulsoft.Test.zip so you can add the DevExpress references from there. Below is the link to the DropBox to where you can get the zip file.