我正在浏览我维护的MVC应用程序上的一些爬网错误,并发现一个看似它应该有效的URL的404错误.
URL的格式为: /gifts/{categoryName}/{productName}/{productId}/
出于某种原因,当productName设置为值"con"时,我只得到404错误.任何其他值(不同或相同长度的字符串),它似乎工作正常.
有没有人见过这样的事情呢?
在对同一个类中的泛型方法进行方法调用时,我收到以下异常:
System.MissingMethodException:找不到方法:'System.Threading.Tasks.Task`1 System.Net.Http.HttpContentExtensions.ReadAsAsync(System.Net.Http.HttpContent)'
方法调用如下:
CarMdRootMessage<List<v20.CarMdDiagnosticReport>> report = this.CarMdGet<List<v20.CarMdDiagnosticReport>>(string.Format("report/diagnostic?uploadID={0}", string.Join(",", uploadIds)));
Run Code Online (Sandbox Code Playgroud)
看起来像"Microsoft.AspNet.WebApi.Client"NuGet包在项目之间不同步的问题,但是现在我已经将它们全部放在5.2.3上并且仍然存在问题.
我还认为这可能是一个.NET 4.5问题所以我已经将所有项目升级到.NET 4.5.2,但我仍然遇到错误.
谁看过这个吗?