Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2004

Tip: Looking for answers? Try searching our database.

Process Running under Wrong Credentials

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Selden McCabe - 03 Sep 2004 17:38 GMT
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
Paul Roberts - 04 Sep 2004 01:48 GMT
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

> 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
[quoted text clipped - 18 lines]
> Thanks,
>    ---Selden

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.