netDumbster | Net Fake SMTP Server clone of the popular Dumbster
kandi X-RAY | netDumbster Summary
kandi X-RAY | netDumbster Summary
netDumbster is a .Net Fake SMTP Server clone of the popular Dumbster. netDumbster is based on the API of nDumbster (and the nice C# Email Server (CSES) written by Eric Daugherty.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of netDumbster
netDumbster Key Features
netDumbster Examples and Code Snippets
Community Discussions
Trending Discussions on netDumbster
QUESTION
I am writing some unit test for an ApiController
. I continue to get multiple System.MissingMethodException
exceptions for methods in the System.Web.Http
namespace.
Message: System.MissingMethodException : Method not found: 'System.Net.Http.HttpRequestMessage System.Web.Http.ApiController.get_Request()'.
Message: System.MissingMethodException : Method not found: 'System.Threading.Tasks.Task`1 System.Web.Http.IHttpActionResult.ExecuteAsync(System.Threading.CancellationToken)'.
The test project compiles just fine, has the correct using statements, package references, and bindings. However, as soon as it tries to run, one of the above exceptions are thrown (whichever is first encountered, depending on how the code is structured). It may also be worth noting that when System.Web.Http
methods are not used, the test project runs just fine.
I was hoping this question had my answer, but I cannot find any discrepancies. I have uninstalled/reinstalled multiple times. Verified both projects use the same version (5.2.7.0). Verified that version is being used via viewing the Modules during debug. And verified that the reference path for both projects point to the correct nuget packages folder:(...\Main\src\packages\Microsoft.AspNet.WebApi.Core.5.2.7\lib\net45\System.Web.Http.dll)
Below is the package and binding info, if anything else is needed please let me know. I've already wasted a couple days on this, any help would be greatly appreciated.
Main Project - packages.config
...ANSWER
Answered 2019-May-13 at 20:44After working through several possibilities with the help of the people above. I decided to start from scratch, adding in each dependency until the error was recreated. I found that adding in the Moq library is where the issue begins. This seems to something specific to using Moq with .Net 4.6.1. You can read the details on their page here.
The solution turned out to be quite simple though. Add the following to your test project's .csproj:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install netDumbster
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page