I am trying to work with an example from a Steve Sandersons video.
http://channel9.msdn.com/Events/TechDays/Techdays-2012-the-Netherlands/2159
Much like the guy on this issue - Failed to load the HttpControllerConfigurationAttribute type after upgrading to RTF Asp.Net MVC 4. - My version works with ApiController, but I need either DbDataController or LinqToEntitiesController, however, at runtime, both causes the following:
Could not load type 'System.Web.Http.Controllers.HttpControllerConfigurationAttribute' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
I do not use HttpControllerConfigurationAttribute. Here is my code.
namespace MvcApplication5.Controllers { public class DataServiceController : DbDataController<MSEnterpriseEntities> { public IQueryable<MS_Substations> GetUtilities() { return DbContext.MS_Substations.OrderBy(x => x.SubId); } public void InsertUtility(MS_Substations utility) { InsertEntity(utility); } public void DeleteUtility(MS_Substations utility) { DeleteEntity(utility); } public void UpdateUtility(MS_Substations utility) { UpdateEntity(utility); } } }
I know that the HttpControllerConfigurationAttribute has been removed from System.Web.Http - I do not know how to fix the problem.
What exactly (for the "mannequins" version) do I need to do to fix this problem?
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1433581/More articles:PHP Based Access Control Lists - securityGet the maximum depth of the selected node in the DOM using jQuery - jqueryTinyMCE (or JCE) - How to get the current node name and html content - tinymcehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1433579/nservicebus-concurrent-access-to-saga-data&usg=ALkJrhgrApg4ubs8yjEGIcshXkThNO8c-gHow to port Borland C ++ 5.02 application to Windows 7? - c ++How to rename container name in azure windows? - c #ZF2 Routing as in ZF1 - zend-frameworkGets CSRF Link Protection - csrfcannot make grizzly log work, nothing is written to log4j log - logginghttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1433586/mapping-a-collection-of-enums-to-a-single-varchar-column&usg=ALkJrhhkNcHSuzOeLtVAt-XGYGAP_-FYPAAll Articles