I'm working on an old MVC project which uses.aspx views. Whenever I run the code I get this runtime error.
I have checked the references and added System.Web.WebPages.Razor version 2.0.0.0 since I'm unable to find the version mentioned here.
Also, I have added DependentAssembly to the web.config file like below.
But I'm still getting this error and even in the aspx pages I can see this issue. Can someone help me with this? I tried adding asp.net.webpage from NuGet. But I couldn't find it.
Thanks inadvance.
If someone is still looking for an answer for this issue just install ASP.NET MVC 3 RTM framework from here MVC3 framework and that will fix the issue. Once you install it you should be able to see below programs installed under AddOrRemove program (control panel -> program and features)
Sorry about not to updating the answer soon.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.