Giter Site home page Giter Site logo

Comments (5)

PaulCoetser avatar PaulCoetser commented on July 30, 2024

This is exactly what I'am also struggling to get to work.

I've been trying for 3 days non stop, but also no luck. I'am just trying it with my own "test" service but your steps above is exactly what I've done and get the same results.

It gives this error straight away so it does not appear to be a timeout issue. There is also no info in the event log.

It works 100% when you run it through VS IDE in debug mode

from dotnetcore.windowsservice.

Sepaphoria avatar Sepaphoria commented on July 30, 2024

Update
I was able to get it to work outside of the IDE. I had to target a specific runtime in my project.json (win10-x64 in my case) so my own console application would generate an exe. I then did the publish, navigated to the publish directory and didn't use dotnet to run it. Instead I ran the exe with action:install and it worked!

I hope that helps you, I know I was struggling a bit with this.

from dotnetcore.windowsservice.

PaulCoetser avatar PaulCoetser commented on July 30, 2024

Thank you so much. I will give this a try!

from dotnetcore.windowsservice.

PeterKottas avatar PeterKottas commented on July 30, 2024

Morning guys, thanks Sepaphoria, that definitely works :) that's actually what I was doing with all my services so I never even encountered this, gave it a shot yesterday and the indeed is a problem with running even the simplest code with dotnet. I have an idea on what I could try but for now feel free to use that *.exe approach. Portable apps seem to work just fine. I'll let you both know when I have any news about this. @PaulCoetser I will use this issue as it specifically meant to solve this problem.

from dotnetcore.windowsservice.

PeterKottas avatar PeterKottas commented on July 30, 2024

Hi @Sepaphoria & @PaulCoetser . Good news. I've fixed the problem and the solution is now available via nuget. Release version is 1.0.13. Would be great if you could try it so that I can close the issue :) There's also one minor fix. I've seen the service fail to reinstall from time to time saying the service is marked for deletion. This is now handled via retries and all works well.

from dotnetcore.windowsservice.

Related Issues (20)

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.