Asp.Net VNext Windows service -


i want try moving vnext asp.net mvc 3, used windows service project (http://www.interworks.com/blogs/banderton/2009/10/30/long-running-tasks-aspnet) doesn't seem work on vnext, because doesn't have proper system.servicemodel reference , cant add dll. there way around? recommend other ways run long tasks such big file import/calculations vnext?

generally, no - not because of feature-set in asp.net vnext (it's been possible since .net 1.0) because of permissions: process needs run under high-privilege security context or able impersonate such user account in order control windows services.

w3wp.exe (the application pool hosting process, , extension, application pool , applications within it) typically run under least-privilege user-account (often nt authority\network service or custom user account enough permissions write website's root directory, database server, , not else (in recent versions of windows further reduced concept of "service account" worker-process , pools run under).

the easiest solution create user-account necessary privileges control services , run application pool process under user-account, don't recommend this.

consider, instead, creating new windows service controls other service (or if it's own service, in-proc) uses form of ipc communicate asp.net application shut down , perform other tasks. might want @ named-pipes, example.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -