jeudi 19 mai 2016

When I Use VS2015 and Develop MVC3 Program, there have been some strange problems

There is a MVC3 program developed and compile using VS2012. It's OK and deployed is also OK.

But when I use VS2015 compile,http://ift.tt/1Ttd6T1,not error,just warning。

but when deploy,It can't run.The error http://ift.tt/20dbnBP.The error text is

[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=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=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\7c2060f6\6145b34e\assembly\dl3\9036b7c7\fc8023c0_73fecb01\System.Web.WebPages.Razor.DLL'.

So,I Know I should be good to learn English, but now what should I do?

Aucun commentaire:

Enregistrer un commentaire