Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ASP.NET Core 5 for Beginners

You're reading from   ASP.NET Core 5 for Beginners Kick-start your ASP.NET web development journey with the help of step-by-step tutorials and examples

Arrow left icon
Product type Paperback
Published in Dec 2020
Publisher Packt
ISBN-13 9781800567184
Length 602 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (5):
Arrow left icon
Jeffrey Chilberto Jeffrey Chilberto
Author Profile Icon Jeffrey Chilberto
Jeffrey Chilberto
Ed Price Ed Price
Author Profile Icon Ed Price
Ed Price
Andreas Helland Andreas Helland
Author Profile Icon Andreas Helland
Andreas Helland
Vincent Maverick Durano Vincent Maverick Durano
Author Profile Icon Vincent Maverick Durano
Vincent Maverick Durano
Ed Price Ed Price
Author Profile Icon Ed Price
Ed Price
+1 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Section 1 – Crawling
2. Chapter 1: Introduction to ASP.NET Core 5 FREE CHAPTER 3. Chapter 2: Cross-Platform Setup 4. Chapter 3: Dependency Injection 5. Chapter 4: Razor View Engine 6. Chapter 5: Getting Started with Blazor 7. Section 2 – Walking
8. Chapter 6: Exploring the Blazor Web Framework 9. Chapter 7: APIs and Data Access 10. Chapter 8: Working with Identity in ASP.NET 11. Chapter 9: Getting Started with Containers 12. Section 3 – Running
13. Chapter 10: Deploying to AWS and Azure 14. Chapter 11: Browser and Visual Studio Debugging 15. Chapter 12: Integrating with CI/CD 16. Chapter 13: Developing Cloud-Native Apps 17. Assessments 18. Other Books You May Enjoy

Appendix

Earlier in this chapter, we showed you how to install a Windows service on your development machine. This approach was a simplified method that might not work for environments outside your machine. So, here is a more advanced way of configuring an app as a Windows service.

Installing your app as a Windows service – the advanced method

For production use, it is likely that permissions are more fine-grained and locked down. Perform the following steps instead to set up an app as a service:

  1. Log on to the Windows server where you will deploy the service.
  2. Open a PowerShell prompt, and run the following command: New-LocalUser -Name dotnetworker.
  3. You need to grant permissions to the service account you just created in order to enable it to start the services. Follow these steps:

    a. Open the Local Security Policy editor by running secpol.msc.

    b. Expand the Local Policies node and select User Rights Assignment.

    c. Open the Login as a service policy.

    d. Select...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime