Giter VIP home page Giter VIP logo

owin-webapi-service's Issues

This package does not support the .net core.

My project is .net core project. When I install Microsoft.AspNet.WebApi.OwinSelfHost I am getting warning. I need a requirement where I want to dockerize the test. If this is not .net core or standard compatible then I can't dockerize it.

Authentication OWIN/WebAPI windows service

Dan,

I ran across your post on OWIN/WebAPI windows service example and learned a lot from it. I want to thank you for a well written post. I was able to follow and create my own windows service hosted in OWIN. However, I am now trying to add some basic authentication to the API. Have you done this? DO you have any sample code you can share with me or you can add to your article? I have seen some stuff out there on authentication with OWIN but nothing with on WebAPI windows service that is hosted by OWIN.
Thank you

Cannot start service: system.io.filenotfoundexception

Hi! When I run the service via net start, I get an error on the Event Log stating "Could not load file or assembly 'Microsoft.Owin, Version=2.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'"

How do I set the required assemblies for the service to run?

Thanks in advance!

Controller 404

This isnt working for me, the program isnt location the WebApi Controller...

JSON from PostMan...
{
Message: "No HTTP resource was found that matches the request URI 'http://localhost:9000/api/testing/getall'."
MessageDetail: "No type was found that matches the controller named 'testing'."
}

Deploy Web API on server

I have followed your tutorial and everything is working locally.
When I try to connect to the web api remotely, I am getting this Error: TimedOut (0x274c)
The port is listening accordingly to the one defined in the application as well as the urlacl set by the netsh command. Any ideas?

Link to post on creating a custom assemblies resolver

Hello,

Thank you for taking the time to put together this resource. It is now popular and at the top of search results for anyone looking to host WebAPI in a Windows Service. Please consider adding a link describing how to create a custom assemblies resolver into your discussion on discovering WebAPI controllers. I really liked the following article, which is simple, works great, and even goes in depth:

http://www.strathweb.com/2013/08/customizing-controller-discovery-in-asp-net-web-api/

I think this will help anyone else who finds this repo to get started even quicker. You could even include a sample assemblies resolver. I personally never heard of this, and unfortunately there are lots of things called "assembly resolvers" which don't refer to the concept you meant. For example:

etc..

Thank you for consideration despite an old repo.

service should be running forever

in your main you are using APIServiceTest, which is ok for testing, but its not running the service forever as part of windows service.

static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new APIServiceTest()
};
ServiceBase.Run(ServicesToRun);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.