WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Schedule Tasks to run interactively without being logged in

 
   Home -> Windows Other -> Setup RSS
Next:  Multiple Language User Interface Windows 2000 Pro  
Author Message
nikeshp4tel

External


Since: Apr 26, 2007
Posts: 2



(Msg. 1) Posted: Thu Apr 26, 2007 5:11 am
Post subject: Schedule Tasks to run interactively without being logged in
Archived from groups: microsoft>public>windowsnt>setup (more info?)

Hi all,

I running overnight tests which uses windows form. If I run the tests
in command prompt when i'm logged in, the tests work pefectly fine.
However if I schedule the task through Scheduled Tasks wizard and run
at midnight when no one is logged in i get the follwoing error:

System.InvalidOperationException : It is invalid to show a modal
dialog or form when the application is not running in UserInteractive
mode. Specify the ServiceNotification or DefaultDesktopOnly style to
display a notification from a service application.


To overcome this I've tried to schedule it running the AT command
using the /interactive command. This woks perfectly fine if you use
the default user login for the AT command which is the local system.
However I do not want to run the task under local system because
before I run the tests I need to check out some files using cvs which
requires my user login details. So i change the default account of
the AT scheduler to be my account. This works fine but the tests seem
to freeze when it attempts to load up dialogue boxes. For some reason
they do not appear and my tests hang around looking for them.

If it works for local system but hangs for my user login, there must
be some internal permissioning that prevents my login from displaying
these dialogues. Has any1 come across this or has any1 got any ideas
to over come this?

Any help will be much appreciated.

Nik
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows Other -> Setup All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET