Asp.Net VNext Service for Windows

I want to try switching to VNext from Asp.Net MVC 3, I used the Windows service project ( http://www.interworks.com/blogs/banderton/2009/10/30/long-running-tasks-aspnet ), but this doesn't seem to work on VNext because it doesn’t have the correct link System.ServiceModeland I can’t add the dll. Is there any way? Would you recommend other ways to run long tasks like large file / computation import using VNext?

+4
source share
2 answers

As a rule, no - not because of any set of functions in ASP.NET vNext (this was possible with .NET 1.0), but because of permissions: the process must be run in a security context with high privilege or be able to impersonate such a user account for managing Windows services.

w3wp.exe(the process of hosting the application pool, as well as the extension, the application pool and the applications inside it) are usually performed under the user account with the least privileges (often NT AUTHORITY\NETWORK SERVICEor a user account with sufficient permissions to write to the root directory of the website, database server, and not much more (in recent versions of Windows it comes down to the concept of a "service account" in which your workflow and pools work).

- , .

Windows, ( , -proc), IPC ASP.NET, . , named-pipes.

+4
0

All Articles