Could not load file or assembly 'System.Web.Mvc' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Asked
Active
Viewed 103 times
0
-
I've already done the respective things like checking the assembly versions, reinstalling the reference files , etc . But I'm getting the same error. – Nikhil Jun 29 '16 at 11:48
-
See [this answer](https://stackoverflow.com/a/35991676/181087). – NightOwl888 Jun 29 '16 at 14:05
-
thank you soo much .the error has been solved. But the new problem is that , the application is working properly on local host but when I upload it on Filezilla server it's giving the same error – Nikhil Jun 30 '16 at 10:41
-
You should use the Publish feature of Visual Studio to export a compiled web site. Right-click on the project, choose `Publish...` and then fill in the options. You can either publish it directly to an FTP location or to a local directory first and then upload it with an external FTP client. Also, be sure the references in your published `web.config` file are correct and change them in `Web.Debug.config` or `Web.Release.config` if they are not. – NightOwl888 Jun 30 '16 at 11:42
-
This is may code in MVC Controller: [HttpGet] public ActionResult Product(ProductClass Prod,string Category) { var cat = (from p in sd.ShoeProducts where p.CID == Category select p).ToList(); DataSet ds = Prod.GetAllBrands(); ViewBag.Brands = ds.Tables[0]; return View(cat.ToList()); } – Nikhil Jul 01 '16 at 10:32
-
and this is written in view – Nikhil Jul 01 '16 at 10:33
-
– Nikhil Jul 01 '16 at 10:34
-
Please don't add code to comments. Instead, you should edit your answer to add the code and any other necessary information. Also, be aware that if you indent by 4 spaces, the code will be formatted automatically. – NightOwl888 Jul 01 '16 at 10:35