<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>taskscheduler Forum Rss Feed</title><link>http://www.codeplex.com/taskscheduler/Thread/List.aspx</link><description>taskscheduler Forum Rss Description</description><item><title>New Post: Hung Scheduled Task Won't Stop</title><link>http://taskscheduler.codeplex.com/discussions/443928</link><description>&lt;div style="line-height: normal;"&gt;Hello,&lt;br /&gt;
&lt;br /&gt;
We've been using this API to manage scheduled tasks (mostly by enabling them and disabling them) on a number of remote servers during software deployments, and it works quite well the majority of the time.&lt;br /&gt;
&lt;br /&gt;
Occasionally, however, we run into a situation where a scheduled task gets &amp;quot;hung&amp;quot; (remains in a &amp;quot;Running&amp;quot; state perpetually, even though it's not actually doing any work). This happens most often on servers with slower connections, although it happens on faster servers as well with a decreased regularity.&lt;br /&gt;
&lt;br /&gt;
I've been able to recreate the situation relatively easily by creating the conditions outlined here:&lt;br /&gt;
&lt;a href="http://blogs.technet.com/b/rspitz/archive/2010/11/07/scheduled-tasks-appear-hung-in-the-running-state-on-windows-server-2003-based-systems.aspx" rel="nofollow"&gt;http://blogs.technet.com/b/rspitz/archive/2010/11/07/scheduled-tasks-appear-hung-in-the-running-state-on-windows-server-2003-based-systems.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
While in this state, we can't stop the task (either through the Task.Stop() API call or through the Windows Scheduled Task interface) and are forced to restart the Task Scheduler service to free it up. &lt;br /&gt;
&lt;br /&gt;
Since the Windows interface doesn't seem to allow us to stop tasks in this condition I don't have much hope for the API, but I have to ask: Has anyone here encountered this before and found a way to deal with it and/or avoid it when using this API?&lt;br /&gt;
&lt;/div&gt;</description><author>mattbbpl</author><pubDate>Thu, 16 May 2013 15:29:50 GMT</pubDate><guid isPermaLink="false">New Post: Hung Scheduled Task Won't Stop 20130516032950P</guid></item><item><title>New Post: show hidden tasks and get all tasks in root and all subfolders(server 2012, 2008)</title><link>http://taskscheduler.codeplex.com/discussions/443358</link><description>&lt;div style="line-height: normal;"&gt;I was using the GetTasks method.&lt;br /&gt;
Thanks, don't know why I missed that :) I have now all tasks and I can toggle if I wanna see the ones that are hidden.&lt;br /&gt;
&lt;br /&gt;
I now will try to see if I can search for a task by name and list that. &lt;br /&gt;
&lt;/div&gt;</description><author>cptrico</author><pubDate>Mon, 13 May 2013 21:21:56 GMT</pubDate><guid isPermaLink="false">New Post: show hidden tasks and get all tasks in root and all subfolders(server 2012, 2008) 20130513092156P</guid></item><item><title>New Post: show hidden tasks and get all tasks in root and all subfolders(server 2012, 2008)</title><link>http://taskscheduler.codeplex.com/discussions/443358</link><description>&lt;div style="line-height: normal;"&gt;You must be trying to use the GetTasks method. There is an easier way. Please see the &amp;quot;Enumerate all tasks&amp;quot; sample code on the &lt;a href="https://taskscheduler.codeplex.com/wikipage?title=Examples" rel="nofollow"&gt;Examples&lt;/a&gt; page.&lt;br /&gt;
&lt;/div&gt;</description><author>dahall</author><pubDate>Sun, 12 May 2013 16:38:25 GMT</pubDate><guid isPermaLink="false">New Post: show hidden tasks and get all tasks in root and all subfolders(server 2012, 2008) 20130512043825P</guid></item><item><title>New Post: show hidden tasks and get all tasks in root and all subfolders(server 2012, 2008)</title><link>http://taskscheduler.codeplex.com/discussions/443358</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
This is very cool. I am trying to setup an example console app that will list all tasks from root and subfolders. I have come so far that is has displayed the first tasks, but I can see it excludes the hidden. It requires regex it said. ? can some please help me in getting all tasks also the hidden and maybe how to retrive all tasks beneth layers of subfolders recursively.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance. &lt;br /&gt;
&lt;/div&gt;</description><author>cptrico</author><pubDate>Sat, 11 May 2013 20:07:35 GMT</pubDate><guid isPermaLink="false">New Post: show hidden tasks and get all tasks in root and all subfolders(server 2012, 2008) 20130511080735P</guid></item><item><title>New Post: Cannot have windows with handles (eg NativeWindow) when running at boot in system account???</title><link>http://taskscheduler.codeplex.com/discussions/442968</link><description>&lt;div style="line-height: normal;"&gt;I don't know if this will work, but I would try registering the task using the System or Local Service account and then assigning the EventTrigger or SessionStateChangeTrigger to call whatever action you need to take place. Make sure your action does not require access to resources (networking, files, etc.) that may not be available to the account under which you registered the task.&lt;br /&gt;
&lt;/div&gt;</description><author>dahall</author><pubDate>Thu, 09 May 2013 15:21:32 GMT</pubDate><guid isPermaLink="false">New Post: Cannot have windows with handles (eg NativeWindow) when running at boot in system account??? 20130509032132P</guid></item><item><title>New Post: COMException connecting to Windows 2012 Task Scheduler remotely</title><link>http://taskscheduler.codeplex.com/discussions/404768</link><description>&lt;div style="line-height: normal;"&gt;As I mentioned, I don't have a system to test this on, but I have an idea for someone to try. Instead of trying to get the Definition, will someone try getting the Xml and see if an exception is ever thrown? For example,&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;var ts = new TaskService(IP address, userId, domain, password);
foreach (Task task in ts.RootFolder.Tasks)
{
  Console.Writeline(task.Xml);
}&lt;/code&gt;&lt;/pre&gt;

My theory is that the 1.3 library chokes on parsing the 1.4 XML. While Microsoft may not chose to fix this, I may be able to work around it in my code. I'm also curious if there are XML results that have the 1.3 version (or earlier) as then the library could just exclude those it can't understand and work with those it can.&lt;br /&gt;
&lt;/div&gt;</description><author>dahall</author><pubDate>Thu, 09 May 2013 14:54:31 GMT</pubDate><guid isPermaLink="false">New Post: COMException connecting to Windows 2012 Task Scheduler remotely 20130509025431P</guid></item><item><title>New Post: Cannot have windows with handles (eg NativeWindow) when running at boot in system account???</title><link>http://taskscheduler.codeplex.com/discussions/442968</link><description>&lt;div style="line-height: normal;"&gt;I want to have an app that waits for the windows GUID_MONITOR_POWER_ON event that is picked up through WndProcs ... so we need a window :( ... but these cannot seem to be created at the login screen before a user logs in as it only seems to work when the &amp;quot;run only when user is logged in&amp;quot; option is ticked&lt;br /&gt;
&lt;br /&gt;
Now I don't need any interface visible to the user at all ... but this seems to be the ONLY way of picking up when windows turns your screen off and on ... so I am hoping I can solve this issue ... any ideas?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;/div&gt;</description><author>i00</author><pubDate>Wed, 08 May 2013 15:15:10 GMT</pubDate><guid isPermaLink="false">New Post: Cannot have windows with handles (eg NativeWindow) when running at boot in system account??? 20130508031510P</guid></item><item><title>New Post: COMException connecting to Windows 2012 Task Scheduler remotely</title><link>http://taskscheduler.codeplex.com/discussions/404768</link><description>&lt;div style="line-height: normal;"&gt;Hi dahall,&lt;br /&gt;
Thank you for your effort, is there any progress with this issue ?&lt;br /&gt;
&lt;br /&gt;
I think that you are right, I suspect that the issue is caused by the underlying Task Scheduler COM library, I fear that this scenario is not supported.&lt;br /&gt;
Can we find some workaround for this limitation ?&lt;br /&gt;
&lt;br /&gt;
Windows 8 is able to talk to Windows 7/2008’s Task Scheduler - just the other way around is not working today.&lt;br /&gt;
This is very surprising. my expectation would be that the ITaskService::Connect function negotiates the protocol that is used to talk between Windows 7/2008 and 8 - similar to what SMB does. (E.g. if one endpoint “speaks” Task Scheduler 1.3 and the other 1.4, then they should fall back to version 1.3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Yossi&lt;br /&gt;
&lt;/div&gt;</description><author>yossizrahia</author><pubDate>Wed, 08 May 2013 15:00:15 GMT</pubDate><guid isPermaLink="false">New Post: COMException connecting to Windows 2012 Task Scheduler remotely 20130508030015P</guid></item><item><title>New Post: Need a ExecutionTimeLimit???</title><link>http://taskscheduler.codeplex.com/discussions/442908</link><description>&lt;div style="line-height: normal;"&gt;The default value for that property is 72 hours. To set it for indefinite execution time, set the value to TimeSpan.Zero.&lt;br /&gt;
&lt;/div&gt;</description><author>dahall</author><pubDate>Wed, 08 May 2013 14:29:07 GMT</pubDate><guid isPermaLink="false">New Post: Need a ExecutionTimeLimit??? 20130508022907P</guid></item><item><title>New Post: Need a ExecutionTimeLimit???</title><link>http://taskscheduler.codeplex.com/discussions/442908</link><description>&lt;div style="line-height: normal;"&gt;How do I make the task not have a ExecutionTimeLimit ... it seems that it is required???&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Kris&lt;br /&gt;
&lt;/div&gt;</description><author>i00</author><pubDate>Wed, 08 May 2013 06:40:05 GMT</pubDate><guid isPermaLink="false">New Post: Need a ExecutionTimeLimit??? 20130508064005A</guid></item><item><title>New Post: The request is not supported 0x80070032</title><link>http://taskscheduler.codeplex.com/discussions/276408</link><description>&lt;div style="line-height: normal;"&gt;I am having the same problem connecting to a 2003 Server&lt;br /&gt;
The request is not supported. (Exception from HRESULT: 0x80070032)&lt;br /&gt;
&lt;br /&gt;
my code is fairly simple, I'm just trying to connect at the moment &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;string strUsername = ConfigurationManager.AppSettings[&amp;quot;Username&amp;quot;];
            string strPassword = ConfigurationManager.AppSettings[&amp;quot;Password&amp;quot;];
            string strServer = ConfigurationManager.AppSettings[&amp;quot;Server&amp;quot;];
            string strDomain = ConfigurationManager.AppSettings[&amp;quot;Domain&amp;quot;];

            using (TaskService ts = new TaskService(strServer, strUsername, strDomain, strPassword))
            {
                foreach (Task task in ts.RootFolder.Tasks)
                {
                    string strName = task.Name;
                }
            }&lt;/code&gt;&lt;/pre&gt;

has anyone found the source of this problem or a solution?&lt;br /&gt;
&lt;br /&gt;
thanks&lt;br /&gt;
&lt;/div&gt;</description><author>VitusWerd</author><pubDate>Tue, 07 May 2013 14:52:44 GMT</pubDate><guid isPermaLink="false">New Post: The request is not supported 0x80070032 20130507025244P</guid></item><item><title>New Post: Error during Enabling/Disabling task</title><link>http://taskscheduler.codeplex.com/discussions/442540</link><description>&lt;div style="line-height: normal;"&gt;Those are restrictions from the Microsoft library. Once a task is registered with a stored password, it must have that password specified with each re-registration. The RegisterChanges method cannot handle this type of update.&lt;br /&gt;
&lt;/div&gt;</description><author>dahall</author><pubDate>Sat, 04 May 2013 16:35:10 GMT</pubDate><guid isPermaLink="false">New Post: Error during Enabling/Disabling task 20130504043510P</guid></item><item><title>New Post: Error during Enabling/Disabling task</title><link>https://taskscheduler.codeplex.com/discussions/442540</link><description>&lt;div style="line-height: normal;"&gt;(Win8 x64, .NET 4.0) I get the following error when I try to enable or disable a task using VB.NET:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;An unhandled exception of type 'System.Security.SecurityException' occurred in Microsoft.Win32.TaskScheduler.dll&lt;br /&gt;
&lt;br /&gt;
Additional information: Tasks which have been registered previously with stored passwords must use the TaskFolder.RegisterTaskDefinition method for updates.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The code I use is very simple:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;Dim t As Task = ts.GetTask(originaltask.Path)
            t.Enabled = True
            t.RegisterChanges()&lt;/code&gt;&lt;/pre&gt;

I don't want to prompt for user name &amp;amp; password for enabling/disabling tasks.&lt;br /&gt;
&lt;br /&gt;
What can I do?&lt;br /&gt;
&lt;/div&gt;</description><author>defiler007</author><pubDate>Sat, 04 May 2013 08:47:50 GMT</pubDate><guid isPermaLink="false">New Post: Error during Enabling/Disabling task 20130504084750A</guid></item><item><title>New Post: no task scheduler is created when deploy on IIS server</title><link>http://taskscheduler.codeplex.com/discussions/441641</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div dir="ltr"&gt;
&lt;div&gt;
&lt;div&gt;Hi Dahall,&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;
I found my solution already. The problem is that I only implement that locally not on a remote methodology.&lt;br&gt;
&lt;/div&gt;
Thank you so much for your response.&lt;br clear="all"&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;br&gt;
-- &lt;br&gt;
Sincerely Yours,&lt;br&gt;
&lt;br&gt;
Sereyboth Van&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>vsrboth</author><pubDate>Fri, 03 May 2013 02:36:33 GMT</pubDate><guid isPermaLink="false">New Post: no task scheduler is created when deploy on IIS server 20130503023633A</guid></item><item><title>New Post: TriggerEditDialog StartBoundary is not showing 24h format.</title><link>http://taskscheduler.codeplex.com/discussions/441722</link><description>&lt;div style="line-height: normal;"&gt;In looking at the documentation for CurrentCulture, I think you are correct. I will make the change and include it in the next release.&lt;br /&gt;
&lt;/div&gt;</description><author>dahall</author><pubDate>Mon, 29 Apr 2013 16:24:16 GMT</pubDate><guid isPermaLink="false">New Post: TriggerEditDialog StartBoundary is not showing 24h format. 20130429042416P</guid></item><item><title>New Post: Scheduling a remote task using TaskLogonType.Password results in COMException</title><link>http://taskscheduler.codeplex.com/discussions/396294</link><description>&lt;div style="line-height: normal;"&gt;-&lt;br /&gt;
&lt;/div&gt;</description><author>ThiloL</author><pubDate>Mon, 29 Apr 2013 14:26:09 GMT</pubDate><guid isPermaLink="false">New Post: Scheduling a remote task using TaskLogonType.Password results in COMException 20130429022609P</guid></item><item><title>New Post: no task scheduler is created when deploy on IIS server</title><link>http://taskscheduler.codeplex.com/discussions/441641</link><description>&lt;div style="line-height: normal;"&gt;Please look at other discussions for hints regarding how to get IIS permissions set so that local and remote tasks can be managed. This is very likely a permissions problem.&lt;br /&gt;
&lt;/div&gt;</description><author>dahall</author><pubDate>Sat, 27 Apr 2013 16:48:10 GMT</pubDate><guid isPermaLink="false">New Post: no task scheduler is created when deploy on IIS server 20130427044810P</guid></item><item><title>New Post: TriggerEditDialog StartBoundary is not showing 24h format.</title><link>http://taskscheduler.codeplex.com/discussions/441722</link><description>&lt;div style="line-height: normal;"&gt;I look sourcecode. I saw&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;switch (value)
                    {
                        case FullDateTimePickerTimeFormat.ShortTime:
                            dateTimePickerTime.Format = DateTimePickerFormat.Custom;
                            dateTimePickerTime.CustomFormat = System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.ShortTimePattern;
                            dateTimePickerTime.Visible = true;
                            break;
                        case FullDateTimePickerTimeFormat.Hidden:
                            //dateTimePickerTime.Value = dateTimePickerTime.Value.Date;
                            dateTimePickerTime.Visible = false;
                            break;
                        case FullDateTimePickerTimeFormat.LongTime:
                        default:
                            dateTimePickerTime.Format = DateTimePickerFormat.Custom;
                            dateTimePickerTime.CustomFormat = System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat.LongTimePattern;
                            dateTimePickerTime.Visible = true;
                            break;
                    }&lt;/code&gt;&lt;/pre&gt;

and i added my application&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
Dim ci As CultureInfo
            ci = CType(Thread.CurrentThread.CurrentUICulture.Clone(), CultureInfo)
            ci.DateTimeFormat.LongTimePattern = &amp;quot;HH:mm:ss&amp;quot;
            ci.DateTimeFormat.ShortTimePattern = &amp;quot;HH:mm&amp;quot;
            Thread.CurrentThread.CurrentUICulture = ci&lt;/code&gt;&lt;/pre&gt;

But I think your code need to use  CurrentCulture . not CurrentUICulture&lt;br /&gt;
&lt;br /&gt;
it's ok for me now.&lt;br /&gt;
&lt;/div&gt;</description><author>dev_umut</author><pubDate>Fri, 26 Apr 2013 21:45:59 GMT</pubDate><guid isPermaLink="false">New Post: TriggerEditDialog StartBoundary is not showing 24h format. 20130426094559P</guid></item><item><title>New Post: TriggerEditDialog StartBoundary is not showing 24h format.</title><link>http://taskscheduler.codeplex.com/discussions/441722</link><description>&lt;div style="line-height: normal;"&gt;Hi. Thanks for great wrapper. I couldnt set 24h format for time display on triggerEditDialog. How can i do this?&lt;br /&gt;
&lt;/div&gt;</description><author>dev_umut</author><pubDate>Fri, 26 Apr 2013 20:54:22 GMT</pubDate><guid isPermaLink="false">New Post: TriggerEditDialog StartBoundary is not showing 24h format. 20130426085422P</guid></item><item><title>New Post: no task scheduler is created when deploy on IIS server</title><link>http://taskscheduler.codeplex.com/discussions/441641</link><description>&lt;div style="line-height: normal;"&gt;I am setting task scheduler from a button inside a update panel.&lt;br /&gt;
&lt;br /&gt;
when I run my project locally, everything is working very fine, but when I deploy my web app to IIS server and I create task scheduler from a button inside a update panel, the tasks wont be able to create.&lt;br /&gt;
&lt;br /&gt;
I have no idea about it because there is no error or anything.&lt;br /&gt;
&lt;/div&gt;</description><author>vsrboth</author><pubDate>Fri, 26 Apr 2013 08:28:29 GMT</pubDate><guid isPermaLink="false">New Post: no task scheduler is created when deploy on IIS server 20130426082829A</guid></item></channel></rss>