c# - ASP.NET MVC 4 Updates Causing Access Issues for MediaFormatters -
My project has a custom mediaformer, as long as the ASPNET MVC4 update was working fine last night. Now I get the following error from my WebPia project? I have all the DLS deployed in my bin folder, so system systems should not be used. I tried to save the signature of CanReadType
from the public but I got an error.
Derivative method 'CanReadType' type 'project. Access to MediaFormatters.JsonNetFormatter 'Assembly' project, version = 1.0.0.0, culture = neutral, publicKeyToken = null 'can not be reduced.
Installing Microsoft. Espanet Web API Client version: 4.0.30506.0 should fix your problem. It seems you used a very old version of System.Net.Http.Formatting. The new version of MVC 4 update GACs System.Net.Http.Formatting caused the runtime error. After updating your mediaformer, you get a compilation error because your project still references the old version.
Comments
Post a Comment