Re: MVC 4
Posted: Thu Nov 21, 2013 6:10 am
Hello.
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?
Thank you.
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?
Thank you.