On Nov 18, 2:28*pm, Brent White <bwh...@badgersportswear.com> wrote:
> On Nov 18, 3:01*am, Alexey Smirnov <alexey.smir...@gmail.com> wrote:
>
>
>
>
>
> > On Nov 18, 4:19*am, Brent White <bwh...@badgersportswear.com> wrote:
>
> > > On Nov 17, 3:30*pm, Alexey Smirnov <alexey.smir...@gmail.com> wrote:
>
> > > > On Nov 17, 8:48*pm, Brent White <bwh...@badgersportswear.com> wrote:
>
> > > > > I am probably too dense to figure it out for myself, so I am asking
> > > > > here. *I am writing an ASP.NET page in VB.NET 2005 that will allow a
> > > > > user to scan (using a Windows CE based scanner with IE trying to
> > > > > impersonate a Windows XP session) items to an order, then print to a
> > > > > network printer. *I had some great help from vbCity in how to print
> > > > > the document. *From a PC running Windows XP, it works great. *From the
> > > > > scanner, which does not have a LAN login, it works until the page
> > > > > tries to output the text string to the printer.
>
> > > > Check current identity from XP and CE to see what you get. I suppose
> > > > you run application under different identity on CE.
>
> > > > <%= User.Identity.Name %>
>
> > > I'm not sure how to do that. *Do I need to include a login name and
> > > password?
>
> > Put it somewhere in aspx page. This is just a test output of the name
> > of current user. Even better if you check WindowsIdentity. Make a new
> > aspx file add
>
> > <%@Page%>
> > Hello, <%=System.Security.Principal.WindowsIdentity.GetCurrent().Name
> > %>
>
> > put it to your server and open from XP box and then from CE.- Hide quoted text -
>
> > - Show quoted text -
>
> I did that, and the CE program welcomes me as OLDJOMAR\ASPNET
>
> I get BADGER\bwhite from my XP box
>
> How do I change it so it always authenticates as a network user (one
> without admin rights, of course)- Hide quoted text -
>
> - Show quoted text -
Hi Brent,
this shows me that from CE you run the site under local server account
(OLDJOMAR\ASPNET) which probably has no access to the printer.
You might want to take a look at
http://support.microsoft.com/kb/306158
http://msdn.microsoft.com/en-us/library/aa302377.aspx
I don't know how you login on CE. If there is no personal account, you
can try to impersonate the IIS Authenticated Account or User (see link
#1)
The second link contains descriptions of the principal and identity
objects used by ASP.NET, as well as their expected values under
various combinations of IIS and ASP.NET authentication schemes.