.NET create scheduled task on server fails with E_ACCESSDENIED

后端 未结 4 859
北荒
北荒 2021-01-06 13:35

I have an ASP.NET website (in C#) that takes in user data and then attempts to create a windows scheduled task. Of course, this works great on the DEV machine, but fails to

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-06 14:01

    Are you writing something to the eventlog ? It is possible that your component (which is hosted in IIS i presume ? ) has no access to the write something in the eventlog.

    This is merely a guess ~ a while ago, I've been faced with a similar problem, and I've solved it in this way:

    Click

提交回复
热议问题