401 Unauthorized trying to read SPList Attachment - owssrv.dll
From: Chris Kane (ChrisKane_at_discussions.microsoft.com)
Date: 04/25/05
- Next message: Mike Walsh: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Previous message: Alan Lim: "Re: Anonymous access"
- Next in thread: Mike Walsh: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Reply: Mike Walsh: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Reply: David Wang [Msft]: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 25 Apr 2005 08:51:02 -0700
We have written a class that enumerates the items in a WSS list and then
attemptes to open the attachment for each item. We have written two classes,
one to impersonate a user and read in the list information and the other to
be called by the first which actually opens the attachment. Our code fails
when it tries to open the attachment in the second class with a 401 -
Unauthorized error from IIS on http://localhost/_vti_bin/owssrv.dll. What's
strange is that I can use IE to open the URL to the attachemnt without any
problems. I noticed in the IIS logs that when I open the URL, I can see the
domain\password passed to IIS from IE. However, when our code tries to
access the same URL, no user information is passed, causing the 401. We have
impersonated a valid user in our code, so why does IIS not see it?
Thanks!
- Next message: Mike Walsh: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Previous message: Alan Lim: "Re: Anonymous access"
- Next in thread: Mike Walsh: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Reply: Mike Walsh: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Reply: David Wang [Msft]: "Re: 401 Unauthorized trying to read SPList Attachment - owssrv.dll"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|