[英]webapi2 owin, I can't get a project started
I'm struggling getting a project setup to host only web api an owin. 我正在努力获得一个仅安装Web API的项目设置。 The goal is to deploy to IIS. 目标是部署到IIS。
I've tried the following: http://www.asp.net/aspnet/overview/owin-and-katana/getting-started-with-owin-and-katana 我尝试了以下方法: 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://dotnetcodr.com/2015/07/06/building-a-web-api-2-project-from-scratch-using-owinkatana-net-part-2-owin-host/
In the end, I'm not finding things that work. 最后,我找不到有效的方法。 Plus I'm not understanding what is actually needed. 另外,我不了解实际需要什么。 For example, I did much of the following on https://github.com/danesparza/OWIN-WebAPI-Service 例如,我在https://github.com/danesparza/OWIN-WebAPI-Service上做了很多以下工作
I did not create APIServiceTest which is extended from ServiceBase. 我没有创建从ServiceBase扩展的APIServiceTest。
The template for WebApi2 sucks. WebApi2的模板很烂。 It always includes MVC. 它始终包含MVC。 I'd just really like to understand what's need for owin and webapi 2.x 我只是非常想了解owin和webapi 2.x的需求
Can anyone help me or point me to something that works within visual studio 2015? 谁能帮我或指出我在Visual Studio 2015中可以使用的功能?
As always, thank you! 一如既往,谢谢! Kelly 黄绿色
Have you tried this tutorial? 您是否尝试过本教程?
http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/ http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/
It´s very well explained I recently followed it and lead to absolute success. 我最近对它的理解很好地说明了这一点,并取得了绝对的成功。
Also, you can download its codebase here: 另外,您可以在此处下载其代码库:
https://github.com/tjoudeh/AngularJSAuthentication https://github.com/tjoudeh/AngularJSAuthentication
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.