Could not load file or assembly ‘System.Web.Mvc’

My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server… Server Error in “https://stackoverflow.com/” Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. … Read more

jQuery Ajax calls and the Html.AntiForgeryToken()

I have implemented in my app the mitigation to CSRF attacks following the informations that I have read on some blog post around the internet. In particular these post have been the driver of my implementation Best Practices for ASP.NET MVC from the ASP.NET and Web Tools Developer Content Team Anatomy of a Cross-site Request … Read more

Best way to implement request throttling in ASP.NET MVC?

We’re experimenting with various ways to throttle user actions in a given time period: Limit question/answer posts Limit edits Limit feed retrievals For the time being, we’re using the Cache to simply insert a record of user activity – if that record exists if/when the user does the same activity, we throttle. Using the Cache … Read more

Razor View throwing “The name ‘model’ does not exist in the current context”

After significant refactoring in my MVC 4 application, and Razor shows this error while debugging Views: The name ‘model’ does not exist in the current context. This is the offending line of code: @model ICollection<DataSourceByActive> I know that the usage of @model is correct. Why is this happening? How can I fix it? 25 Answers … Read more

What are the main disadvantages of Java Server Faces 2.0?

Yesterday I saw a presentation on Java Server Faces 2.0 which looked truly impressive, even though I am currently a happy ASP.NET MVC / jQuery developer. What I liked most about JSF was the huge amount of AJAX-Enabled UI components which seem to make development much faster than with ASP.NET MVC, especially on AJAX-heavy sites. … Read more