This article is a mirror article of machine translation, please click here to jump to the original article.

View: 211545|Reply: 58

[Source] The IAppBuilder interface does not have a UseWebApi method

  [Copy link]
Posted on 1/10/2017 2:19:22 PM | | | |
I'm using Microsoft's owin as a host service for webapi:

The code is as follows:

app. UserWebApi can't be pointed out, and then I found that there is no such method in the interface, and then common sense is written: app. Use(config);

There is a key point in this step, that is, the app. UseWebApi(config) method will prompt that it cannot be found, as shown in the figure below:



Finally, find the error:

"The type 'System.Web.Http.HttpConfiguration' does not match any known middleware pattern."


Solution:

Tourists, if you want to see the hidden content of this post, pleaseReply


As shown in the following figure: The webAPI interface is successfully accessed.






Previous:. .Net platform
Next:Use OWIN to serve as a WebAPI host
Posted on 3/2/2018 10:07:02 AM |
kankan                                 
Posted on 4/28/2019 2:05:07 PM |
Study, study
Posted on 3/24/2019 3:56:05 PM |
Let me take a look, look at it, look at the bird's eye view, the one that opens so quickly and healthily, David  
Posted on 5/25/2017 10:49:58 AM |
Learn to learn
Posted on 12/12/2017 3:41:44 PM |
Learn to learn
Posted on 2/28/2018 2:27:35 PM |
Learn, learn, learn, learn, learn
Posted on 3/2/2018 10:04:25 AM |
Look
Posted on 3/12/2018 11:08:11 AM |
Learn, learn, learn
Posted on 3/15/2018 12:28:26 AM |
It was great, very good, very good, very good, very good
Posted on 3/15/2018 8:25:05 AM |
Learn it, thank you
Posted on 3/19/2018 9:45:57 AM |
Learn it, thank you
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com