MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Remote application that accesses the object model (MOSS)

  Asked By: Sonny    Date: Jul 21    Category: MOSS    Views: 1528

I am trying to run an windows app using the sharepoint API(new SPSIte
(url)) to access the Sharepoint site.

But this win app runs at a location which has no sharepoint but in
the same domain as the sharepoint server.

when I try run this SPSite site =new SPSite("http://...") it throws
an error
System.IO.FileNotFoundException: The Web application at http://...
could not be found. Verify that you have typed the URL correctly. If
the URL should be serving existing content, the system administrator
may need to add a new request URL mapping to the intended
Is it not possible to use the MOSS Object model from remote servers?
Is webservices the only option?

Is there a MOSS dev pack I can install which can help me with this



3 Answers Found

Answer #1    Answered By: Sharonda Mcfarland     Answered On: Jul 21

Depending on what you are trying to do with your Windows App, you can use the
SharePoint services; http://servername/_vti_bin/lists.asmx

Answer #2    Answered By: Cory Brooks     Answered On: Jul 21

...and yes, the OM can only run  on the server, for remote  operations we
must use web  Services. If you cannot find an OOTB web service to do
what you want, you can write your own web service using the OM, then
have your client connect to that.

Answer #3    Answered By: Ruth George     Answered On: Jul 21

You can not use the sharepoint  Object model  on anything other than the
SharePoint Server. To access  SharePoint data from a remote  application
you need to use SharePoint's XML web  Services.

Didn't find what you were looking for? Find more on Remote application that accesses the object model (MOSS) Or get search suggestion and latest updates.