PrintToPrinter from ASP.Net

From: Martin (x_at_y.z)
Date: 10/31/04

  • Next message: Phil Wright: "Re: PrintReport option in RDC"
    Date: Sun, 31 Oct 2004 12:42:08 -0000
    
    

    Hi,

    I get the error Error in File
    C:\DOCUME~1\DELL\ASPNET\LOCALS~1\Temp\temp_590ea2bc-26f0-4fb6-b1ce-53315f43d
    e8c.rpt: Request cancelled by the user.

    I am using impersonation to ensure Crystal Reports has rights to print to
    printer although intrigingly I note the path specified in the error does not
    reflect the impersonation, although the diagnostic
    Label3.Text= System.Security.Principal.WindowsIdentity.GetCurrent().Name;

    Does indicate impersonation is correctly configured. Perhaps impersonation
    does not cover this area of functionality??

    <authentication mode="Windows"/>

    <!-- AUTHORIZATION

    This section sets the authorization policies of the application. You can
    allow or deny access

    to application resources by user or role. Wildcards: "*" mean everyone, "?"
    means anonymous

    (unauthenticated) users.

    -->

    <authorization>

    <allow users="*"/> <!-- Allow all users -->

    <deny users="?"/>

    <!-- <allow users="[comma separated list of users]"

    roles="[comma separated list of roles]"/>

    <deny users="[comma separated list of users]"

    roles="[comma separated list of roles]"/>

    -->

    </authorization>

    <identity impersonate="true"/>

    Also unticked "Anonymous access" in authentication modes for this web app in
    iis (5.1 on xp pro)

    Any ideas?

    Thanks

    Martin


  • Next message: Phil Wright: "Re: PrintReport option in RDC"

    Relevant Pages

    • asp.net impersonation
      ... When a Web Service is configured to use windows authentication with no ... When I turn on impersonation and add authorization for user domain ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: question
      ... what would happen if I set ther username and password under: ... I guess you don't need it :-) With impersonation ASP.NET Web ... Maybe this is the reason of a login prompt. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: asp.net impersonation
      ... the deny entry should be the last in the authorization element. ... impersonation the client can successfully assess the web service. ... When I turn on impersonation and add authorization for user domain ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: question
      ... Okay, I guess you don't need it :-) With impersonation ASP.NET Web ... Set up an access rule for specific group (your user must be a member ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Browser control with impersonation
      ... We are thinking about running our app with restricted rights and increase ... I don't see why the browser control behaves strange when ... I am aware of the 'RevertToSelf' risk when doing impersonation ... Our application runs with administrator rights, ...
      (microsoft.public.win32.programmer.kernel)