A System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to [B] System.Web.WebPages.Razor.Configuration.HostSection

Source: Internet
Author: User
Tags stack trace

A System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to [B] System.Web.WebPages.Razor.Configuration.HostSection. Type A originates from "System.Web.WebPages.Razor, version=2.0.0.0, Culture=neutral, publickeytoken=31bf3856ad364e35" (In the context "Default" In the "C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_2.0.0.0__31bf3856ad364e35\ System.Web.WebPages.Razor.dll "location). Type B originates from "System.Web.WebPages.Razor, version=3.0.0.0, Culture=neutral, publickeytoken=31bf3856ad364e35" (In the context "Default" In the "C:\Users\JimDeng\AppData\Local\Temp\Temporary ASP. NET Files\root\6591f712\57f6afbd\assembly\dl3\199130ac\ 5d367934_02f5d001\system.web.webpages.razor.dll "location).
8. Stack Trace

The reason for this is that the reference was updated, but the configuration file was not updated and the version of the Web. config file needed to be updated manually (including the view below)

A System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to [B] System.Web.WebPages.Razor.Configuration.HostSection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.