CaKaL
CaKaL

Reputation: 402

Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0,

I use ASP.NET MVC3 .NET4 Framework. My project is working on local but I send files to server and is doesn't work there. In my server file is v2 now. If i send v2 file to server i get

Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0,...

error

Upvotes: 0

Views: 5894

Answers (1)

MANISHDAN LANGA
MANISHDAN LANGA

Reputation: 2237

In ASP.NET MVC 4, the namespace is not System.Web.WebPages.Razor, but System.Web.Razor That worked for me, change your web.config.

still not resolved then Verified that .csproj file contains for ALL referenced assemblies, so it will always take it from Bin folder, instead of GAC.

Upvotes: 2

Related Questions