locked
Help on using Microsoft.SharePoint.DLL for PDA application ( .net compact framework ) RRS feed

  • Question

  • i am currently doing a project for my school.

    I have to create an application to upload multiple files and download file from a sharepoint portal to a PDA application using Visual Studio 2005. Language use is VB.

    The upload portion is already done and now i am doing the download portion.

    I managed to download a single file using FileStream method.

    But i was required to download the whole folder off sharepoint. I tried to use the SPFILE command and "imports microsoft.sharepoint" namespace.

    It can build succesfully but when it deploys in the PDA/emulator, theres always an error.

    Is the Microsoft.Sharepoint dll able to be used by the .net compact framework or for only desktop applications? Please reply. Urgent!

    Thanks.
    Wednesday, March 11, 2009 1:44 AM

Answers

  • The Microsoft.Sharepoint dll is built with the standard .Net libraries, and as such won't run on a Compact Framework environment.

    I would suggest trying to use the webservices to accomplish what you need.
    • Proposed as answer by TheMountain Wednesday, March 11, 2009 2:54 AM
    • Marked as answer by Matt Burnett Monday, March 16, 2009 10:36 PM
    Wednesday, March 11, 2009 2:53 AM

All replies

  • The Microsoft.Sharepoint dll is built with the standard .Net libraries, and as such won't run on a Compact Framework environment.

    I would suggest trying to use the webservices to accomplish what you need.
    • Proposed as answer by TheMountain Wednesday, March 11, 2009 2:54 AM
    • Marked as answer by Matt Burnett Monday, March 16, 2009 10:36 PM
    Wednesday, March 11, 2009 2:53 AM
  • Firstly, thanks for the quick reply.

    I can download individual files using filestream, but when I tried downloading the entire folder, the folder captured in the PDA is an invalid file type.

    I wanted to use the SPFile/SPFolder method from Microsoft.Sharepoint.DLL to view the folder's contents to download each file individually. How should I use the webservices to accomplish this?

    All help appreciated!
    Wednesday, March 11, 2009 3:22 AM
  • Any help is appreciated.  Thanks =)

    Wednesday, March 11, 2009 5:58 AM
  •  Is it possible to download whole folder off sharepoint website using PDA?
    Because main problem I cant use Microsoft.Sharepoint.dll for compact framework.
    Any help is greatly appreciated! Thanks
    Monday, March 16, 2009 3:18 AM
  • Consuming Web Services with .net compact framework
    http://msdn.microsoft.com/en-us/library/aa446547.aspx
    “Posting is provided "AS IS" with no warranties, and confers no rights.”
    Monday, March 16, 2009 10:38 PM