473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Running Console application from Windows Service on Win2k03

I am attempting to launch a console application from a service under a
different set of credentials running on Windows Server 2003.

I am getting an error "0xC06D007E: Module not found." from the called
executable.

In event viewer I am seeing a two entries of below separated by 2 seconds:
Event Type: Failure Audit
Event Source: Security
Event Category: Privilege Use
Event ID: 577
Date: 4/23/2007
Time: 2:50:55 PM
User: LINWAD1X\nodeuser
Computer: LINWAD1X
Description:
Privileged Service Called:
Server: NT Local Security Authority / Authentication Service
Service: LsaRegisterLogonProcess()
Primary User Name: LINWAD1X$
Primary Domain: HEWITT-NA
Primary Logon ID: (0x0,0x3E7)
Client User Name: nodeuser
Client Domain: LINWAD1X
Client Logon ID: (0x0,0x869B0FF)
Privileges: SeTcbPrivilege

- Need to run service with greater privileges and console app with minimal
- VB6 console application seems to work fine
- VB.Net and C# applications both fail even if they do absolutely nothing.
(empty Main)
- Exception occurs during the startup of .Net app before any code gets
control. Thus cannot debug.
- Seems to work fine on Windows XP (There are lots of other differences
though)
- Not using Process.Start because it seems to be tied to the desktop found
some other code that does impersonation and calls 'CreateProcessAsUserW'.
- The program runs fine if "Run As..." from Explorer.

Thanks in advance
Steve
Apr 23 '07 #1
0 1594

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chris | last post by:
Hi, Currently, I have a console application written in C# and an unmanaged legacy DLL written in VC++ 6.0. In the DLL's previous application, when an event occurs in the DLL, a windows message...
1
by: Clifton Griffin | last post by:
Ok, I have a proxy server written in c#. Because I'm maintaning two versions (a console application for debugging and a windows service for deployment) I got the console application working,...
2
by: Chris Podmore | last post by:
I don't know if this is the correct newsgroup but I couldn't find one for Windows Services Is it possible to check that a Windows Service is still running from another machine The idea being a...
1
by: Bernie Yaeger | last post by:
I'm primarily a vb .net developer, doubling (as many of us have to) as a sql 2000 dba. I'm having difficulty running a vb.net exe as a sql agent job. I figured out that sql 2000 can't really...
8
by: nadeem_far | last post by:
Hello All, These days I am working on a console application that will register for certain events and do some processing based on the event notification. Now, all the objects are being created...
4
by: jimmy | last post by:
Hi, I am running a query in a .NET windows service which takes a long time to execute. The query times out. The same query doesn't time out from a console application. I have put the...
12
by: Dilip | last post by:
Hi All I have a server based C# console application. This application must hide its console window when its launched out on the field. So I dutifully P/Invoke'd FindWindow/ShowWindow...
2
by: tom.sikes | last post by:
We wrote some code (utility stuff) that is intended to run as part of either a windows service, a console app or a windows app. What I'd like to do is when it is running as a service have it log...
3
by: Cor Pruim | last post by:
I have a very strange problem. I have written a Windows Service with VS2003 in vb.net. This service does some calculations and after that it needs to produce some Excel reports by getting data from...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.