簡體   English   中英

webapi2 owin,我無法啟動項目

[英]webapi2 owin, I can't get a project started

我正在努力獲得一個僅安裝Web API的項目設置。 目標是部署到IIS。

我嘗試了以下方法: http : //www.asp.net/aspnet/overview/owin-and-katana/getting-started-with-owin-and-katana

https://dotnetcodr.com/2015/07/06/building-a-web-api-2-project-from-scratch-using-owinkatana-net-part-2-owin-host/

最后,我找不到有效的方法。 另外,我不了解實際需要什么。 例如,我在https://github.com/danesparza/OWIN-WebAPI-Service上做了很多以下工作

  1. 安裝包Microsoft.AspNet.WebApi.OwinSelfHost
  2. 創建了StartUp.cs文件
  3. 在啟動文件中添加了指向啟動文件的程序集屬性
  4. 添加了valuescontroller以進行簡單測試。

我沒有創建從ServiceBase擴展的APIServiceTest。

WebApi2的模板很爛。 它始終包含MVC。 我只是非常想了解owin和webapi 2.x的需求

誰能幫我或指出我在Visual Studio 2015中可以使用的功能?

一如既往,謝謝! 黃綠色

您是否嘗試過本教程?

http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/

我最近對它的理解很好地說明了這一點,並取得了絕對的成功。

另外,您可以在此處下載其代碼庫:

https://github.com/tjoudeh/AngularJSAuthentication

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM