Using the PKMCDO COM object to access Sharepoint 2001

Posted on 2005-05-16
Last Modified: 2008-01-09

I think trhis is the right place but its a very specific PKMCDO question I think.  Has anyone used this much.  PKMCDO is a COM object used to access Sharepoint 2001 folders and documents.  I have a console app which uses the object to do some essential maintenance.  It works fine from XP and Windows 2000 server but it askes for logon credentials from 2003 server.  As I want to run it as a scheduled job this is bad!  

Does any one know if there is a simple way to get the logon details to pass through when using the open method (it operates in a very similar way to an ADO open)?  Is there any way to do this without storing the password somewhere.  


Question by:gringogordo
    LVL 6

    Accepted Solution

    hm, check you internet zone settings on Windows2003 server, in which zone is the SPS server(it would be best if it was in local intranet) (internet explorer/tools/internet options), also check security settings for that zone.
    do you have to supply the credentials if you visit the site with internet eplorer

    Author Comment

    This is definately along the right lines.  I have 2 test servers and it 'fixed' the problem on one but not the other.  The other one does not now ask for logon credentials through the browser but does when the console app hits the SharepointDocument.Open method.  

    Do you have any ideas about this?  I have been through the IE options tabs looking for discrepancies but I haven't found one yet.  I will look at what hotfixes have been applied now but I'm not convinced this will provide the answer.


    Author Comment

    Apologies, I have just drilled down to the document library and I do get prompted for my credentials through the browser.

    Thanks - the whole thing looks like a fairly stiupid question now.

    Oh well!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now