MESUT ÇAKIR | Tüm yazılar etiketlendi 'asp.net'

ASP.NET MVC 4 Projenizi ASP.NET MVC 5 Yapmak !

Asp.NET MVC 4'den Asp.NET MVC 5'e geçerken dll değiştirmek yeterli olmuyor. Ben ReCaptcha yüklemek isterken 5 versiyonu istedi ve otomatik yükseltim. Bu nedenle aşağıdaki hatayı almaya başladım.

[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' 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'. Type B originates from 'System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Users\MyName\AppData\Local\Temp\Temporary ASP.NET Files\root\63e7ff36\a1cb775d\assembly\dl3\8f568c18\9b7ddacf_d04dcf01\System.Web.WebPages.Razor.dll'.
Sonrasında; 
http://stackoverflow.com/questions/22793322/asystem-web-webpages-razor-configuration-hostsection-cannot-be-cast-to-web
kaynağına eriştim. Buradan edindindiğim bilgiler ile;
http://www.asp.net/mvc/overview/releases/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2 bu linke ulaştım. 

Bu linkler sayesinde çözüme ulaştım.

Kısaca Root içerisindeki web.config içerisindeki kullanımları değiştirdim.
Views\web.config içerisindeki kullanımları değiştirdim.

Değişimleri nasıl yapacağınız ikinci verdiğim linkte yer almaktadır. 

sorunu aşamazsanız iletişim kurabiliriz.