Printing from ASP.NET code behind

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Gravy (Gravy_at_discussions.microsoft.com)
Date: 01/19/05


Date: Wed, 19 Jan 2005 03:45:03 -0800

I have a requirement that I need to print a crystal report from ASP.NET.

Now, the problem I have is that the default account for ASPNET_WP.EXE is
ASPNET under windows XP. I want to change this to another account that has a
printer setup on. In W2k3 I know it is possible to change the process
identity but is it possible to do the same in XP?

One thing I don't want to do is to change the machine.config file, I only
want this one web site to run with this different user account.

I did read that if you set the Application Protection (in IIS) to high then
it is possible to change the identity of the resulting COM+ package this is
created. However, having changes this setting to High my web app still uses
the one ASPNET_WP.exe process (when looking at Task Manager). The new COM+
package for this site isn't activated either.

Can anyone tell me what I'm doing wrong? Why don't I see more than one
ASPNET_WP.EXE? Is there a better way to give me ASP.NET the ability to print
without user intervention?

Thanks for any help.



Relevant Pages

  • RE: OSD Image Deployment via SMS advertisement (cannot connect to
    ... I rebuilt my test machine, advertised my package to it, and it's now ... showing the new software account as the username when trying to deploy the ... put in the advanced client network access account field. ... OS Deployment advertisement failed to install OS Deployment agent!. ...
    (microsoft.public.sms.swdist)
  • RE: OSD Image Deployment via SMS advertisement (cannot connect to
    ... One log tells you the account that is being used ... test machine and push the package again. ... OS Deployment advertisement failed to install OS Deployment agent!. ... Raising event: ...
    (microsoft.public.sms.swdist)
  • Re: MSSecure.cab
    ... My Sync Host is my Site Server. ... >> permission to the SMSCliToknAcct& local account. ... >> Package Data Source directory and the package object. ... >>> Richard Threlkeld ...
    (microsoft.public.sms.admin)
  • Re: Scheduling a simple local package wont stick
    ... Well my domain account is the owner, and it is member of the local ... Where do I find out if this Sql server service account has the necessary ... - When you run the DTS package yourself, it runs with your credentials, ... DTS packages do not retain a schedule. ...
    (microsoft.public.sqlserver.dts)
  • Re: Printing from ASP.NET code behind
    ... the problem I have is that the default account for ASPNET_WP.EXE is ... > want this one web site to run with this different user account. ... > package for this site isn't activated either. ... When you succeed in printing from code-behind, it will be on the server, ...
    (microsoft.public.dotnet.framework.aspnet)