Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: OutOfMemoryException when creating a TaskService with wrong password

$
0
0
Hello,

recently I get an OutOfMemoryException when I instantiate an object of TaskService (giving a wrong password) and my windows account got blocked (I cannot login anymore) :/

In a first call I get "Access Denied" .. in a subsequent call I get "OutOfMemoryException"

Call:
            TaskService ts = new TaskService(
                Credentials.ServerName,
                Credentials.Username,
                Credentials.AccountDomain,
                Credentials.Password);
Exception:

System.OutOfMemoryException
bei Microsoft.Win32.TaskScheduler.V2Interop.TaskSchedulerClass.Connect(Object serverName, Object user, Object domain, Object password)
bei Microsoft.Win32.TaskScheduler.TaskService.Connect()
bei Microsoft.Win32.TaskScheduler.TaskService.EndInit()
bei Microsoft.Win32.TaskScheduler.TaskService..ctor(String targetServer, String userName, String accountDomain, String password, Boolean forceV1)


Any idea?


Thanks!

MuhaNERD

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>