473,854 Members | 1,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DCOM errors while running as domain user - scheduled task

Hi guys,

I'm having a bit of a problem getting a VB .NET console app to run happily
as a scheduled task. The app itself generates a bunch of word documents on a
file share on another server by reading from a template file and inserting
text at bookmark locations (with details pulled from a table in the
database). I'm running the app under a regular domain account that isn't an
administrator on the server. The read/execute permissions are set on the
console app/directory just fine, and likewise for the export folder on the
file share on the other server.

Firstly, here's a bit of background on the problem and what I've tried so
far:

- Running the console app from a command prompt (logged in as the user with
a Start -> Run -> runas /user:DOMAIN\use rname cmd) results in the
application running just fine. It writes the files out to the share no
problems at all.
- Running the console app as a scheduled task (with the correct domain user
profile details) results in an "0xe0434f4d " error showing up in the task
scheduler, and the following error in the System event log (Event ID 10003):

Access denied attempting to launch a DCOM Server. The server is:
{000209FF-0000-0000-C000-000000000046}
The user is <username>/<domain>, SID=S-1-5-<etc...>

After this we edited the DCOM permissions by doing the following:

* Start -> Run -> dcomcnfg.exe
* Expand "Component Services"
* Expand "Computers"
* Right-click "My Computer" -> Properties
* Default COM security tab
* Edit both "Access Permissions" and "Launch Permissions", adding in the
user running the scheduled task in both sections.

This got rid of that DCOM error, and the scheduled task attempted to run.
Unfortunately now I faced a new error when the app tries to access the Word
object. The code in question is:

Dim objWord As New Microsoft.Offic e.Interop.Word. Application
objWord.Display Alerts = WdAlertLevel.wd AlertsNone
objWord.Documen ts.Add() <------ Exception thrown on this line

The exception message is:

There is insufficient memory. Save the document now.

at Microsoft.Offic e.Interop.Word. Documents.Add(O bject& Template, Object&
NewTemplate, Object& DocumentType, Object& Visible)
at AutomatedRetryL etters.Automate dRetryLetters.M ain() in
AutomatedRetryL etters.vb:line 52

Needless to say, there's plenty of available memory. Also, if I add the
domain user as a local administrator on the machine it works without a
problem.

Does anyone have any suggestions as to what I could do next? I'm not keen on
leaving this account as an administrator on the box as it has no real need.
Jul 22 '05 #1
2 5858
did you ever figure this one out on your own? I am having a very similar
problem and cannot find any help on the issue anywhere. Thanks.
Aug 11 '05 #2
The original post was actually made on my behalf, and no...no solution thus
far I'm afraid. Still running under a local admin account to keep it working
unfortunately.

- James

"keith moran" wrote:
did you ever figure this one out on your own? I am having a very similar
problem and cannot find any help on the issue anywhere. Thanks.

Aug 12 '05 #3

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

Similar topics

0
1287
by: exchange | last post by:
I'm running a VB.net exe which reads a xml document via a URL using the XmlDocument Load method under framework 1.1. It runs correctly via a scheduled task running as user admin who is a member of the administrators group. However if I change the scheduled task to run as another user who is also a member of the administrators group it fails on the xml load with "The underlying connection was closed: Unable to connect to the remote...
0
4150
by: Erik Anderson | last post by:
There is a COM object (written in ATL) that I have been using for a little while (in scheduled events mostly) that I am very interested in getting to run inside of an ASP page. This site uses Windows (domain) authentication. The error message that I am getting at this point is the following: Error Type: Server object, ASP 0177 (0x80070002) 80070002 /teamwork/_private/auth-ng.inc, line 9
5
6383
by: Sergey V | last post by:
Having following problem 1. Client: ASP application with anonymous access to be running as DOMAIN\my_user on WinXP 2. Server: DCOM NT Service runs on remote host (W2K Server) under the same account DOMAIN\my_user security within server is initialized using hr = CoInitializeSecurity(&appid, -1, NULL, NULL, 0, 0, 0, EOAC_APPID, NULL);
12
2560
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current one is a permission error. The project is a VC++ Web Service. It works fine when the service is hosted on the old W2K dev machine, but on the new XP machine I get a permission error when the service tries to open a text file on the Windows...
3
709
by: David Olive | last post by:
Hi guys, I'm having a bit of a problem getting a VB .NET console app to run happily as a scheduled task. The app itself generates a bunch of word documents on a file share on another server by reading from a template file and inserting text at bookmark locations (with details pulled from a table in the database). I'm running the app under a regular domain account that isn't an administrator on the server. The read/execute permissions are...
4
3247
by: RSH | last post by:
I have an application that creates an Access version of a SQL Server database and then it moves the resulting database to an ftp server for the client to download and run reports against etc. The application is dynamic in nature and requires user input, but the point is that it isn't a one off application. I would like to be able to modify the application to receive the params via the commandline and somehow run automatically off of a set...
2
4746
by: mscurto | last post by:
Is there a way to set up access to open and run a query in a particular database at a particular time each day? This would be run from a Windows 2000 desktop.
6
2042
by: Mantorok | last post by:
Hi all I have a console application that runs every night via a scheduled task, there is a try-catch block in my Main class, whenever an error is caught it is written to a log file and then emailed to several people. The application is run using a domain service account, if the program is successful it emails this result fine. The problem is, the catch doesn't seem to perform correctly if the program fails, all I end up with is an...
2
4180
by: kplkumar | last post by:
Hi all I am fairly new to windows scheduler. I have an .exe console application that needs to be run 1st of every month. I created a scheduled task in Windows Schduler and called the .exe. The application is supposed to pull some report data and make a webservice call to sent out this data.
0
9901
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10682
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10758
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10371
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9513
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7915
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5942
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4562
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3187
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.