10-31-2007 02:44 PM
10-31-2007 05:12 PM
11-01-2007 12:26 AM
Hi Jes,
Recently, while trying to get a test-app to work for any domain login, I used "Scheduled Tasks" to run an EXE on startup - it ran with local "admin" rights. Seems like there might be some possibility here - using Scheduled Ttasks - assuming it's not what your doing already!
Cheers.
11-01-2007 02:37 AM
@jesse Larsen wrote:
Hi,I've been doing some testing with the smtp functions of labview. Everything seems to be working great as an executable, sending emails to my mail server. I knew it wouldn't work as soon as I logged off my computer though, since exe's can't run without a user. But I've read on many sites (misc, microsoft, even this forum) about setting this exe to run as a service. This helps a little, the service runs and does what it's supposed to do EXCEPT sending the email. As long as a user is logged on, the service works and sends emails, but as soon as I log off, the smtp portion starts to fail.Here is the error ID and message I get out of it:62.000000
TCP Open Connection in NI_SMTPEmail.lvlib
:SMTP Email Open Session.vi:3->NI_SMTPEmail.lvlib
:SMTP Email Send Message Charset.vi:2->NI_SMTPEmail.lvlib
:SMTP Email Send Message.vi:1->ViceVersaLogReader.viViceVersaLogReader.vi is the vi that I created to send the emails.I've made sure to have the service run as either local system or my admin account, neither helps.Anything else I can try?thanks,-Jes
Error 62 sounds really like a permission problem. TCP Open Connection is a LabVIEW primitive and ultimately goes to the Winsock library which refuses to allow creating a connection so there is not really to much you could do in terms of debugging inside LabVIEW. Probably the Windows firewall is disallowing to connect to low ports (<=1024) when no user is logged in. There certainly needs to be some way somehow to circumvent that for a service but I wouldn't know of the top of my head.
Try to investigate into that direction on the Microsoft and MSDN site.
Rolf Kalbermatter
11-01-2007 08:03 AM
11-01-2007 08:05 AM
12-22-2007 02:51 PM
Hi Jesse,
Did you ever find a solution or work-around for this? What OS are you using? (I'm unable to reproduce this under Win2K.) I'm using raw-socket pings for another app, and XP required a registry-hack to allow Domain Users to send pings (Admins weren't restricted.) If this problem was socket-permissions related, maybe so is the registry-hack. Google "AllowUserRawAccess" if interested.
Cheers!
12-23-2007 03:30 AM
tbd wrote:
Hi Jesse,
Did you ever find a solution or work-around for this? What OS are you using? (I'm unable to reproduce this under Win2K.) I'm using raw-socket pings for another app, and XP required a registry-hack to allow Domain Users to send pings (Admins weren't restricted.) If this problem was socket-permissions related, maybe so is the registry-hack. Google "AllowUserRawAccess" if interested.
01-07-2008 10:02 AM