The solution to the error reported by MVC swagger.

Error Message: Not supported by Swagger 2.0: Multiple operations with path ‘xxxx.aspx’ and method ‘POST’

 

Solution:

Step 1: Find the SwaggerConfig page and quote: using System.Linq;

Step 2:

Find about 175 lines of code, is the comment state, uncomment. Then execute it can be solved.

c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First());

 

Similar Posts: