473,320 Members | 2,094 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,320 software developers and data experts.

Process Running under Wrong Credentials

I have a web service that launches Winword. (I know that MS does not
recommend this, but I think I've worked around most of the potential
problems.)

Anyhow, my problem is this: when word tries to print, I get an error that
there are no printers installed.

I've set up DCOMCNFG to run Word under a ficticious account (OfficeAutoAcct)
which DOES have printers installed.
But when I watch the task manager during this, Winword is running under
ASPNET.

I've set the folder security to use OfficeAutoAcct for this web service.
I've set dcomcnfig to use OfficeAutAcct.
I can't figure out why it's running under ASPNET...
Any ideas?

Also, is there any other way to print a Word .Doc file without actually
running Word?

Thanks,
---Selden

Nov 21 '05 #1
1 1543
Hi,

I have also found that when you do com interop from within a
webservice/webpage that the com component gets created under the ASPNet
accout regardless of who you impersonate in the web.config file. What we
did was create a com+ application and drop the DLL in there, but I don't
think you could do that with the office dll, but you could try. The other
option you have is to run the application on Windows 2003 server where the
com component will run under the account you specify.

Hope this helps.

Cheers
Paul

"Selden McCabe" <sm*****@integrantInc.com> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
I have a web service that launches Winword. (I know that MS does not
recommend this, but I think I've worked around most of the potential
problems.)

Anyhow, my problem is this: when word tries to print, I get an error that
there are no printers installed.

I've set up DCOMCNFG to run Word under a ficticious account (OfficeAutoAcct) which DOES have printers installed.
But when I watch the task manager during this, Winword is running under
ASPNET.

I've set the folder security to use OfficeAutoAcct for this web service.
I've set dcomcnfig to use OfficeAutAcct.
I can't figure out why it's running under ASPNET...
Any ideas?

Also, is there any other way to print a Word .Doc file without actually
running Word?

Thanks,
---Selden

Nov 21 '05 #2

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

Similar topics

1
by: Mike S. Nowostawsky | last post by:
I am getting this error when I try to run a program in my cgi-bin directory (don't know what I'm still missing to make it work): *** Authentication required! This server could not verify that...
6
by: Dmitri Shvetsov | last post by:
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external...
12
by: GTi | last post by:
I have small program that always must be running when a user is logged on. Since users can close this program I must create a program that always check if this program is running. So I created a...
2
by: Matthew Lee | last post by:
I am using a C# / ASP.NET application to fire an XCOPY job from the webserver to a UNC share. This setup works fine when copying to a local machine but refuses to work on the remote copy. The...
1
by: Simon Harvey | last post by:
Hi all, A new project I'm working on requires a high level of security - possibly around the same level used by banks as its deling with highly confidential medical info. I'm thinking about...
3
by: Jørn A. | last post by:
I'm working on a web based user interface for a job scheduling system (running scripts). The system is using a non-windows scheduler software, but it's installed and running as a windows...
0
by: andrewcw | last post by:
I have seen examples in .NET 2.0 of calling another process such as this http://www.theserverside.net/tt/articles/showarticle.tss?id=NewSecurityFeatures using System.Diagnostics.ProcessStartInfo...
3
by: Rico | last post by:
Hello, I have a windows service that I have created in VB 2005. I have it installed, and running, but it's not functioning correctly. When I try to "Attach to process", my service is greyed...
4
by: DubSport | last post by:
I am trying to get my .net page to run a simple batch file on my IIS server. I want it to run with specified credentials. It appears to start the program cmd.exe as the correct user (shows up in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.