Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Object Model, Anonymous Access, 401 Unauthorized

6 views
Skip to first unread message

Jim

unread,
Oct 22, 2009, 12:02:38 PM10/22/09
to
I've implemented some code that's supposed to use the SP object model
to create a document library and a set of folders. The code is solid
- I've implemented it on 10 or so environments and haven't had a
problem. I'm running into a problem on an SSL environment.

The code is run within a website accessed from a MS CRM server.
The website resides beneath the SharePoint website, which uses https.
The requirements were for the document library to be created by the
app pool identity.

When I hit the page that accesses the object model to create the
document library (call it sp.aspx), it just displays 401
UNAUTHORIZED. Doing some logging, the code is impersonating as the
app pool identity fine and the error hits when the code hits
CreateDocumentLibrary.

Anyone have any clue as to what's going on?

Thanks,
Jim

Jim

unread,
Oct 22, 2009, 12:04:31 PM10/22/09
to
Something I forgot to mention here - the website I'm using to call the
object model is set to anonymous access. The code works fine if I
enable Basic Authentication, but if I do that, the document libraries
get created as the user hitting sp.aspx which is unacceptable.

Danish Aftab@discussions.microsoft.com Syed Danish Aftab

unread,
Nov 5, 2009, 2:47:03 AM11/5/09
to
Use Share point webservice in order to access document libaray.
take a look

http://www.codeproject.com/KB/sharepoint/Dynamic_SharePoint.aspx


"Jim" wrote:

> .
>

0 new messages